[texhax] hyperref and \ContinuedFloat

Neal H. Walfield neal at walfield.org
Thu Apr 23 12:02:42 CEST 2015


Hi,

I recently upgraded to Debian Jessie (texlive 2014.20141024-2) and
noticed that my figures are numbered incorrectly.  I've identified
this as an interaction between hyperref and \ContinuedFloat.  Consider
the following MWE:

  \documentclass{article}
  
  \usepackage{hyperref}
  \usepackage{subfig}
  
  \begin{document}
  
  \begin{figure}
    \centering Figure 1.
    \caption{1}
  \end{figure}
  
  \begin{figure}
    \centering Figure 2.a.
    \caption{2.a}
  \end{figure}
  
  \begin{figure}
    \centering Figure 2.b.
    \ContinuedFloat
    \caption{2.b}
  \end{figure}
  
  \end{document}

The output is:

  Figure 1.
  Figure 1: 1

  Figure 2.a.
  Figure 2: 2.a

  Figure 2.b.
  Figure 1: 2.b

But the last figure should be Figure 2, not Figure 1!

Removing hyperref corrects this deficiency.


I searched, but I couldn't find any reports about this problem.  Where
should I report this problem?  I've cc'd the maintainer of hyperref
(Heiko Oberdiek).

If anyone knows of a better workaround than disabling hyperref, I'd
like to hear it.

Thanks!

Neal


More information about the texhax mailing list