## Thursday, July 3, 2014

### Just in Case Your Latex Figure Number Is not Synced and Show Section Number Instead

When a label is declared within a float environment, the \ref{...} will return the respective fig/table number, but it must occur after the caption. When declared outside, it will give the section number. To be completely safe, the label for any picture or table can go within the \caption{} command, as in
\caption{Close-up of a gull\label{fig:gull}}

:)