I have two figures, one in section-, another in subsection 1-1. I used 'label' and 'refer' to refer them in paragraph.
Now, under each figure, the labels are correct, i.e., figure 1 and figure 2. However, when I refer them in text, the first refer is on (it shows 'figure 1'). However, the second refer shows figure 1.1 instead of figure 2.
Anyone can tell me how to fix this? I hope the 2nd refer shows 'figure 2'.
Thanks for your help.
Derek
Graphics, Figures & Tables ⇒ Help with refer to a figure
NEW: TikZ book now 40% off at Amazon.com for a short time.

Help with refer to a figure
Hi,
without some code it is hard to provide effective help; however, that kind of odd behaviour results from using the \label command before the corresponding \caption command. Therefore, make sure that you place the \label command after the \caption command when using the figure and table environments.
If my suggestion does not solve your problem, please post a minimal working example that allows us to reproduce your problem.
without some code it is hard to provide effective help; however, that kind of odd behaviour results from using the \label command before the corresponding \caption command. Therefore, make sure that you place the \label command after the \caption command when using the figure and table environments.
If my suggestion does not solve your problem, please post a minimal working example that allows us to reproduce your problem.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: Help with refer to a figure
I followed your suggestion, then compiled more than one times....wow, the problem solved! Thank you soooooooooooomuch!!!
I just registered in this forum and this my first post, got answer so fast....Great!
Again, thanks a lot!
I just registered in this forum and this my first post, got answer so fast....Great!
Again, thanks a lot!