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 have this strange issue that whenever I click on the reference link for a table or figure, I donot goto the place where figure or table is labeled, but I am always navigated to first page of the whole document. Does anyone knows what might be doing wrong.

share|improve this question
3  
I would guess you have the \label command before the \caption command in the figure. –  David Carlisle Sep 4 '12 at 11:24
    
In some places I have label inside the caption command and in some cases I have label after the caption command. Which is the best way to put labels for figures and tables ? –  nurabha Sep 4 '12 at 11:27
1  
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. –  Stephan Lehmke Sep 4 '12 at 11:35
1  
@nurava Editing down the source to the minimal form which still exhibits the problem is a big part of solving the problem; sometimes the solution becomes obvious then. No need to leave that part of problem solving to volunteers, don't you think? –  Stephan Lehmke Sep 4 '12 at 12:15
1  
@nurava We'd really like to help. It's just pretty neigh impossible without MWE. –  Stephan Lehmke Sep 4 '12 at 13:42

1 Answer 1

Does this solve your problem,

\begin{figure}[t]
\begin{center}
 \includegraphics[scale=0.6]{chapter-1/images/CPU-Trends-HerbSutter}
 \end{center}
 \caption{Flattening of of ILP and frequency based performance scaling of processors}
 \label{fig:cputrends}
\end{figure}

That is, keep caption and label inside the figure environment, but outside \begin{center} ..... \end{center}.

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.