I am using the llncs document class.
And my figures are being numbered in a manner I do not understand. I define and place the figure like this:
\begin{figure}[h]
\includegraphics[scale=0.5]{myBirds.png}
\label{fig:thebirds}
\caption{The birds}
\end{figure}
The captions count as I expect it:
--Image--
Fig. 1. The birds
--Image--
Fig. 2. The Ants
So Latex has an idea of the correct number of figures. But when I look at the references in the text, numbers are not correct. They just show the section number. e.g. in section 7, all figures will be referred to as Figure 7.
Note: I do NOT have something like
\numberwithin{figure}{section}
llncsdoes not follow this convention. What are you doing differently that is causing this? – Werner Jul 01 '16 at 05:18\labelbefore\captioninside yourfigure. You need\labelafter\caption. See Why does an environment's label have to appear after the caption? (duplicate) – Werner Jul 01 '16 at 16:35