0

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}
Makan
  • 143
  • 2
    Welcome! Don't. This class is intended for conference/journal submission. If you override its design, you'll just annoy the copy editor. It is designed to impose house style on your document. If you aren't submitting, use a more flexible class which is designed to permit you to customise relevant aspects of its design. – cfr Jul 01 '16 at 03:39
  • 3
    The default for llncs does not follow this convention. What are you doing differently that is causing this? – Werner Jul 01 '16 at 05:18
  • @Werner it seems that you are right. I described it better with the new Edit. – Makan Jul 01 '16 at 16:33
  • 1
    @MakanTayebi: The obvious problem here is that you have \label before \caption inside your figure. You need \label after \caption. See Why does an environment's label have to appear after the caption? (duplicate) – Werner Jul 01 '16 at 16:35

0 Answers0