\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}}
Source: http://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing
No comments:
Post a Comment