Hi,
When I cross-reference figures in my thesis, the reference picks up the section numbers rather than the figure number. My figures are numbered automatically according to chapter numbers which is how I want them.
I have tried a number of things including putting the label before or after the caption, but cannot figure it out, and would appreciate some help ASPA.
Thanks,
LyX ⇒ Problem with cross-referencing figures
NEW: TikZ book now 40% off at Amazon.com for a short time.
Re: Problem with cross-referencing figures
I have figured it out. In case this has not been mentioned before:
Place the label, inside the caption box, after whatever your caption text is. I was placing the label, outside the caption box.
Place the label, inside the caption box, after whatever your caption text is. I was placing the label, outside the caption box.
Problem with cross-referencing figures
Thanks for providing the solution!hooman wrote:I have figured it out. In case this has not been mentioned before:
Place the label, inside the caption box, after whatever your caption text is. I was placing the label, outside the caption box.
The important thing is that
\label
is called after \caption
and not before. Placing it inside the caption indeed ensures this.Regards
site moderator & package author