19 May 2009
comments powered by Disqus
Note to self: Latex and Labels
In a Latex figure environment, the \label command has to follow the \caption command. Otherwise referencing the figure will result in the section number (where the figure appeared) to be printed. Sometimes Latex is not very user friendly...\begin{figure}[!th] \centering \includegraphics[width=2.5in]{some_filename} \caption{some caption} \label{fig:some_image} \end{figure}