I have a little problem with hyperref's linking of captions in subfigures. Say, let subfigures be 1.1a through 1.1d and organised in 2x2 as follows:
a b
c d
When clicking in text on link to the whole figure 1.1, it points to the top of the figure (GREAT). When clicking on either 1.1a or 1.1c links, they point to the top of the respective subfigures (GREAT). However, when clicking on either 1.1b or 1.1d links, they point to the top of the respective subfigure captions (NOT GREAT).
I'm using MiKTeX 2.8 and all the packages were updated last week.
Code: Select all
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
Code: Select all
Package caption Warning: \caption will not be redefined since it's already
(caption) redefined by a document class or package which is
(caption) unknown to the caption package.
See the caption package documentation for explanation.
LaTeX Warning: Command \selectfont has changed.
Check if current package is valid.
Code: Select all
\documentclass[11pt,a4paper,oneside,final]{book}
\usepackage{caption,everysel,keyval,ragged2e,subfig}
\captionsetup{margin=10pt,font=small,labelfont=bf}
\usepackage{fancyhdr}
\usepackage[pdftex]{hyperref}
\usepackage{graphicx}
\usepackage[all]{hypcap}
Code: Select all
\begin{figure}[t!bp]
\centering
\subfloat[][Caption1.]
{\label{file1.PDF}\includegraphics[width=7cm]{file1.PDF}}
\subfloat[][Caption2.]
{\label{file2.PDF}\includegraphics[width=7cm]{file2.PDF}}
\\
\subfloat[][Caption3.]
{\label{file3.PDF}\includegraphics[width=7cm]{file3.PDF}}
\subfloat[][Caption4.]
{\label{file4.PDF}\includegraphics[width=7cm]{file4.PDF}}
\\
\newcommand*{\tempA}{Short caption}
\newcommand*{\tempB}{Description.}
\caption[\tempA]{\textbf{\tempA} -- \tempB}\label{fig:four-by-four}
\end{figure}
Thanks in advance,
emjotenel