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.

I'm writing a document with some figures, each one has one label, and I'm using references. Every figure used appear at the list of figures, but not when referencing from text. When I do that, it prints "...like in Figure ??".

An example is:

GPS coordinates look like in Figure~\ref{fig:coord}.

\begin{figure}[h]
    \centering
    \includegraphics{/img/coord.png}
    \caption{GPS coordinates representation}
    \label{coord}
\end{figure}

Where is the problem here?

share|improve this question
    
Some feedback would be kind. –  Marco Daniel Dec 5 '11 at 18:41

1 Answer 1

Your label is coord but you reference via fig:coord. Both must be the same.

Moreover it is always a good practice to provide an minimal example.

\documentclass{article}
\begin{document}
GPS coordinates look like in Figure~\ref{fig:coord}.

\begin{figure}[h]
    \centering
  %  \includegraphics{/img/coord.png}
    \caption{GPS coordinates representation}
    \label{fig:coord}
\end{figure}
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.