Label is after caption!

Posted by Maxime Garcia on October 23, 2012

Very important not to mess things up, when you’re describing your figures in Latex. If you wrote:

\begin{figure}
\caption{Figure}
\label{fig:figure1}
\end{figure}

No problem, it’s working well, and linked well also.

But if you wrote:

\begin{figure}
\label{fig:figure1}
\caption{Figure}
\end{figure}

It seems to be working, but the link is not good. And could be a reference to anything else (section, subsection, chapter, and even nothing) but the figure itself.

So, “Label is after caption!”

Leave a Reply

Your email address will not be published