Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Figure numbers using the section number
Why does an environment’s label have to appear after the caption?

I have two figures in my document. Figure 1 is correctly entitled and referred, but figure 2 is entitled Fig 2, but referred as Fig 6.

\begin{figure}[!ht]
  \label{ExperimantalSetup}
  \caption{Block-scheme of the experimental setup}
  \centering
  \includegraphics[width=\columnwidth]{setup}
\end{figure}

I checked:

  • no duplicate labels,
  • no errors or warnings(excepting the image size) in compilation
  • the only list which has #6 at that point of the document is the Todo list. (But I used the same Todo package before, and had no problems with it).
  • references are not hyperlinked (not clickable).

Perhaps, there is a settings error, could you advice what to change? Any ideas why this problem can be?

share|improve this question
5  
Welcome to TeX.sx! Always place the label after or within the caption. See tex.stackexchange.com/questions/32325/… –  Torbjørn T. Jan 16 '13 at 12:44
    
Welcome to TeX.sx! Your post was migrated here StackOverflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Joseph Wright Jan 16 '13 at 12:44
add comment

migrated from stackoverflow.com Jan 16 '13 at 12:42

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Jake, barbara beeton, tohecz, David Carlisle, cgnieder Jan 16 '13 at 18:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.