That's fine. I've never had a problem with that. Until now, that is. In my current (set of) documents, whenever I reference a figure label, instead of printing out the correct label, it's printing out the section number for which the figure is in!
I can't figure out what's wrong. Everything compiles well. The references to sections, subsections and equations work fine!
The problem there is that you must put the label after a caption, so the label can reference to the figure (it references to the caption, actually). See also here: http://www.latex-community.org/forum/vi ... php?t=3659
Keta wrote:The problem there is that you must put the label after a caption, so the label can reference to the figure (it references to the caption, actually).
I've been using LaTeX for something like 5 years now, but never knew that. That simply blows my mind. I always thought it was arbitrary -- how I ever avoided the problem until now is a mystery.
I have some problem when I'm writing my thesis and paper. I try to arrange \label{} right after \caption{}, that means they are in a sequence. It worked for me. Try!
Last edited by cgnieder on Sun Jan 20, 2013 3:01 pm, edited 1 time in total.