Graphics, Figures & TablesHelp with refer to a figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jingpro
Posts: 4
Joined: Thu Jul 23, 2009 1:29 am

Help with refer to a figure

Post by jingpro »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Help with refer to a figure

Post by gmedina »

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.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
jingpro
Posts: 4
Joined: Thu Jul 23, 2009 1:29 am

Re: Help with refer to a figure

Post by jingpro »

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!
Post Reply