[Tex/LaTex] Figure numbering in \chapter*

amsbookfloatsnumbering

I am writing my thesis using the amsbook class, when I just discovered that the Figure numbering does not reset after introducing \chapter*. In particular, I have the following skeleton:

\documentclass{amsbook}

\begin{document}

\chapter*{Introduction}
\chapter{1}
\chapter{2}
\chapter{3}
\chapter*{Conclusion}

\end{document}

I have a figure environment in my Introduction, which currently is labelled Figure 0.1.

I didn't mind this, but when I included a figure in the conclusion, it was labelled Figure 3.7, a continuation of the figure numbering from the previous chapter, which stopped at Figure 3.6.

I saw some ways to redefine the numbering or to rename the figure name, e.g., using Fig instead of Figure. However, I cannot seem to find a way to relabel the figure count to using letters instead.

I figured (no pun intended), that since I am using only one Figure in my introduction and another one in my conclusion, then just set (even manually) the figure label in my introduction as 'Figure A' and the figure in my conclusion as 'Figure B', and the rest of the figures in the main chapters as they are, i.e. Figure X.Y (X is the chapter and Y is the chronological count of the figure).

Is there a way to do this? Thanks a lot!

Best Answer

A simple way (for the \chapter* figures) is to just redefine \thefigure within the figure environments that need to be changed.

\begin{figure}
\renewcommand\thefigure{A} % Make this Figure A
...

A working example:

\documentclass[]{amsbook}

\usepackage[demo]{graphicx}

% Set counter to include Chapter
\usepackage{chngcntr} 
\counterwithin{figure}{chapter} 

\begin{document}

\chapter*{Introduction}
Content references Fig.~\ref{fig:a}
\begin{figure}[h]
\renewcommand\thefigure{A} % Make this Figure A
\centering
\includegraphics[width=3in]{test.pdf}
\caption{Caption}\label{fig:a}
\end{figure}

\chapter{One}
Content references Fig.~\ref{fig:one}
\begin{figure}[h]
\centering
\includegraphics[width=3in]{test.pdf}
\caption{Caption}\label{fig:one}
\end{figure}

\chapter*{Conclusion}
Content references Fig.~\ref{fig:b}
\begin{figure}[h]
\renewcommand\thefigure{B} 
\centering
\includegraphics[width=3in]{test.pdf}
\caption{Caption}\label{fig:b}
\end{figure}

\end{document}

introduction

chapter1

conclusion