Minimal example:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{hyperref}
\usepackage{subcaption}
\begin{document}
\listoffigures
\clearpage
\begin{figure}[]
\begin{subfigure}{\textwidth}
\includegraphics{something}
\end{subfigure}
\end{figure}
\clearpage
\begin{figure}[]
\ContinuedFloat
\begin{subfigure}{\textwidth}
\includegraphics{something}
\end{subfigure}
\caption{Wrong page number and wrong hyperref in LOF}
\end{figure}
\end{document}
This results in the list of figures (LOF) linking to the second figure. Also the page number is set to the page of the second figure.
What I'd like to achieve is that page number and hyperref
are set by the first figure. Because as \ContinuedFloat
indicates: The second figure is just a continuation of the first one (in my real case the first one fills up the page so I need a second figure). And thus I also don't want to have a caption beneath the first figure.
How can I do this?