Label is after caption!

Maxime U. Garcia 2012-10-23
less than 1 minute read

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!”

Your email address will not be published