I have a figure with subfigures defined using the subcaption package (*not the deprecated subfig or subfigure). I need the parent figure to span two pages with two subfigs on each page. I have achieved this using the \ContinuedFloat
command, however my subfigure numberings are resetting between pages instead of resuming.
Below is a minimal example:
\usepackage{graphicx,subcaption}
\begin{figure}[H]
\caption{My Figure}
\begin{subfigure}{\textwidth}
\caption{Fig 1}
\includegraphics[...]{something.jpg}
\end{subfigure}
\begin{subfigure}{\textwidth}
\caption{Fig 2}
\includegraphics[...]{something.jpg}
\end{subfigure}
\end{figure}
% allow break
\begin{figure}[H]
\ContinuedFloat % continue from previous page
\begin{subfigure}{\textwidth}
\caption{Fig 3}
\includegraphics[...]{something.jpg}
\end{subfigure}
\begin{subfigure}{\textwidth}
\caption{Fig 4}
\includegraphics[...]{something.jpg}
\end{subfigure}
\end{figure}
In this example 'Fig 3' and 'Fig 4' are incorrectly labelled (a) and (b) instead of (c) and (d).
How can I resume the subfig numbering correctly?
[H]
, it's that simple. There are very good reasons not to use it. – egreg Apr 22 '13 at 22:17[H]
is bad pagination; if there's not enough space for the object, it will go to the next page, leaving the other one with a big space to fill up. – egreg Apr 11 '16 at 17:41