We love good questions
Skip to content
Post by Stefan Kottwitz » Thu Oct 21, 2021 4:03 am
\caption
\label
\documentclass{article} \usepackage{graphicx} \begin{document} \section{Introduction} \section{Figures} \begin{figure}[hb] \centering \includegraphics[height=2cm,width=3cm]{example-image} \label{fig:example}% before \caption, which is wrong \caption{An example figure} \end{figure} \section{Appendix} \begin{figure}[hb] \centering \includegraphics[height=2cm,width=3cm]{example-image} \label{fig:other}% before \caption, which is wrong \caption{Another example figure} \end{figure} % Now we get wrong reference numbers: See example figure \ref{fig:example} and another figure \ref{fig:other}. \end{document}
Post by Reader » Thu Oct 07, 2021 4:59 pm
Top