tags:

views:

16

answers:

1

I have a LaTeX document with a figure and references to it:

\begin{figure}
...
\caption{...}
\label{fig:1}
\end{figure}

\ref{fig:1}

I use the hyperref package to get hyperlinks in the resulting PDF. However the link to the figure navigates to the caption leaving the figure itself out of the view. How can I make it navigate to the start of the figure instead without moving the caption to the top?

+2  A: 

Add this in your preamble

\usepackage{hyperref}
\usepackage[all]{hypcap}    %for going to the top of an image when a figure reference is clicked

Make sure that the \usepackage[all]{hypcap} is written after the hyperref package is imported.

nEm
Awesome, thanks.
vitaut