I have figures in my document that are referenced from the text. Figures have caption and labels below them. When I click on the reference hyperlink (in PDF), I expect to jump to the top of the picture, but I jump to the caption, what is rather inconvenient.
For standard figures (as floats) I have solved it using hypcap package and its \capstart command, what works like a charm.
Code: Select all
\begin{figure}[ht]
\capstart
\begin{center}%
\includegraphics[#1, clip, keepaspectratio]{#2}
\end{center}\caption{#3}\label{fig:#2}
\end{figure}
Code: Select all
\begin{samepage}%
\begin{center}%
\includegraphics[#1, clip, keepaspectratio]{#2}%
\end{center}
\figcaption{#3}%
\label{fig:#2}
\end{samepage}
Thanx
Tom