# ContinuedFloat, and Subfloat

In my thesis I have a lot of figures with a common caption and multiple subfigures (a,b,c..etc). I wanted to split them between the pages because I don't want to fit them all in one page, therefore I used the commands \subfloat and \ContinuedFloat. It helped, BUT:

1. The numbering of the figures started from 0, i.e. Fig.1.0 which it shouldn't.
2. The numbering was not in sequence, it started like that: Fig.1.0, Fig.1.1, Fig.1.2, then went back Fig.1.1, then Fig.1.2....etc and even in the subfigures the numbering was not in sequence, it was like: Fig.1.0 (a) and Fig.1.1 (b) instead of Fig.1.0 (b)....

This is the code I used:

%\clearpage
\begin{figure}[h!]
%\subfigure[]{
\centering
\subfloat{\includegraphics[width=1.0\columnwidth]{fig1.eps} } \,
\label{int1}}%
\end{figure}
%\clearpage
\begin{figure}[h!]
\ContinuedFloat
%\subfigure[]{
\centering
\subfloat{\includegraphics[width=1.0\columnwidth]{fig2.eps} } \,
\label{int2}}%
\caption{my figures (a) and (b).}
\label{int}
\end{figure}

Then it was a matter of copying and pasting for the other figures (and subfigures).

-
Please post a small but complete example code next time; code snippets just leave too many questions open. Furthermore your code snipped has unbalanced braces. Please note that this will be considered as impolite since every helper has to fiddle around with your code first, building a working example document for examining. But this could easily be done by yourself. – Axel Sommerfeldt Apr 13 '11 at 6:09

Unfortunately the algorithm of \ContinuedFloat offered by the subfig package is based on the assumption that every figure has a \caption. For that reason the caption package offers a command called \phantomcaption (without any arguments) since version 3.2 which does not typeset a caption but will fulfill the needs of \ContinuedFloat.

For usage with version 3.1 of the caption package one can define \phantomcaption as:

\makeatletter
\providecommand\phantomcaption{\caption@refstepcounter\@captype}
\makeatother

Since this uses \providecommand it will not break with future versions of the caption package.

BTW: The current version 3.3 of the caption package offers a \ContinuedFloat without the need of a \caption, but since the subfig package comes with its own definition of \ContinuedFloat (overriding the one defined by the caption package) you'll still need \phantomcaption when using the subfig package.

(Since the questioner did not offer a small but complete example code I will not offer a modified one.)

-
@Axel: Thank you very much for the explanation.. – Mario Apr 15 '11 at 14:45
@Axel, as I am a new user of Latex, could tell me where in the code below, I should put the \phantomcaption definition and its command \phantomcaption. – Mario Apr 15 '11 at 14:50
\begin{figure}[h!] \subfigure[]{ \subfloat{\includegraphics[width=1.0\columnwidth]{fig1.eps}}\, \end{figure} \begin{figure}[h!] \ContinuedFloat \subfigure[]{ \subfloat{\includegraphics[width=1.0\columnwidth]{fig2.eps} } \, \caption{my figures (a) and (b).} \end{figure} Thank you – Mario Apr 15 '11 at 15:03
You have to put the \phantomcaption inside the figure without \caption. And please read minimalbeispiel.de/mini-en.html – Axel Sommerfeldt Apr 16 '11 at 8:06
I found the answer to this problem, instead of using \ContinuedFloat command, we should use \TheContinuedFloat command. I found the answer in Axel's "caption" document. – Mario May 5 '11 at 15:40