# [texhax] Referencing a figure

Konstantin Karapetyan texnic at photonica.ru
Wed Apr 20 13:33:28 CEST 2005

Hi all,

When a figure is inserted with a caption below it, the straightforward
way to do it is:

\documentclass{article}
\usepackage{hyperref}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h]
\includegraphics{fig.png}
\caption{caption}\label{fig}
\end{figure}
\end{document}

However, when referencing to fig, the text is scrolled so as to
show the caption, while it is desired to see the figure.

Is there a way to solve this problem? The caption should remain under
the figure!

TIA!

Regards,
Konstantin.