<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><blockquote type="cite"><blockquote type="cite">I just was wondering why the numbering of some Figures in my article are somewhat messed up when I change the position of \caption and \label in a Figure environment? For example:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">This<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">\begin{figure}[htb]<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">\begin{center}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  \includegraphics{fig}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  \label{fig:fig}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  \caption{caption}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">\end{center}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">\end{figure}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">generates a number of the style section-n0+fig-no while this<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">\begin{figure}[htb]<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">\begin{center}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  \includegraphics{fig}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  \caption{caption}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  \label{fig:fig}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">\end{center}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">\end{figure}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">generates only a single number (which I actually wanted to have). Is this an option or a bug? Is this MAC specific?</blockquote></blockquote><blockquote type="cite"><br></blockquote></div></blockquote><blockquote type="cite"><div><blockquote type="cite"><font class="Apple-style-span" color="#000000">H</font>owdy,</blockquote></div></blockquote><blockquote type="cite"><div><blockquote type="cite"><br></blockquote><blockquote type="cite">It's the \caption command that updates the value of the figure number and the format for the figure number so the label should always follow the \caption command.</blockquote></div></blockquote><blockquote type="cite"><div><br></div></blockquote><blockquote type="cite"><div>Herb is, of course, correct. <br><br>Also, whether figures are numbered within sections or continuously is set by the documentclass. For example, article or amsart, number figures consecutively, book or report number them within chapters.<br>You should make the numbering work as you prefer by using something like<br><br>\renewcommand{\thefigure}{\arabic{figure}}<br></div></blockquote></div><br><div>Thanks for the answers.</div><div><br></div><div>@Luis: this I was of course aware of. That was the first I tried, but didn't work either. I forgot to wrote this in my first posting. Sorry for that.</div><div><br></div><div>Jimi</div><div><br></div></body></html>