My document:
\documentclass[12pt,a4paper]{mwrep}
\usepackage{polski}
\usepackage[utf8]{inputenc}
\usepackage[hidelinks,unicode]{hyperref}
\usepackage[T1,OT4]{fontenc}
\usepackage{graphicx}
\usepackage{hypcap}
\let\origfigure\figure
\let\endorigfigure\endfigure
\makeatletter
\g@addto@macro\@floatboxreset\centering
\makeatother
\begin{document}
\tableofcontents
\listoffigures
\chapter{Bzdety}\label{rozdzial-bzdety}
W rozdziale \ref{rozdzial-bzdety} ze strony \pageref{rozdzial-bzdety}
znajduje się obrazek \ref{obraz-jesien} na stronie \pageref{obraz-jesien}.
The first paragraph.
\begin{figure}
\includegraphics{a.jpg}
\caption[Opcjonalny skrócony opis do spisu obrazków]{Opis}
\label{obraz-jesien}
\end{figure}
The second paragraph.
\end{document}
hyerref makes nice hyperlinks to captions of images. I can for example create list of figures. That is nice. But every link is going to caption and image is above it so reader needs to scroll up to see it. How can I change something in preamble so clicking on such hyperrlink leads to the top of image? I don't want to change anything outside preamble unless necessary.
hyperrefshould be loaded last but right beforehypcap. It means no more\usepackagecommands can exist after\usepackage[]{hyperref}\usepackage{hypcap}. – Display Name Jul 17 '11 at 10:14draftoption has to be added to thegraphicxpackage to make your example compilable if one lacks the filea.jpg. – lockstep Jul 17 '11 at 10:38