# Split subfigures over multiple pages

I have the following code for a Figure with 4 subfigures:

\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}

\begin{document}

\begin{figure}[b]
\centering
\begin{subfigure}[b]{\textwidth}
\includegraphics[width=\textwidth]{./plots/arm1.pdf}
\subcaption{$Q^{*}$ values for arm 1}
\label{fig:arm1}
\end{subfigure}
~
\begin{subfigure}[b]{\textwidth}
\includegraphics[width=\textwidth]{./plots/arm2.pdf}
\subcaption{$Q^{*}$ values for arm 2}
\label{fig:arm2}
\end{subfigure}
~
\begin{subfigure}[b]{\textwidth}
\includegraphics[width=\textwidth]{./plots/arm3.pdf}
\subcaption{$Q^{*}$ values for arm 3}
\label{fig:arm3}
\end{subfigure}
~
\begin{subfigure}[b]{\textwidth}
\includegraphics[width=\textwidth]{./plots/arm4.pdf}
\subcaption{$Q^{*}$ values for arm 4}
\label{fig:arm4}
\end{subfigure}
\caption{$Q^{*}$ values for different arms}
\label{fig:arms}
\end{figure}

\end{document}


But this way, the 4 subfigures are too large to fit on 1 page. I would like to split this over 2 pages, keeping the subcaptions a, b, ... How can I do this?

Split your figure into two figures and than to the second one immediately after \begin{figure} add command \ContinuedFloat. With this both figures will have the same caption number, however the sub captions numbering is continued from the previous figure:

\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}

\begin{document}
\begin{figure}[htb]
\centering
\begin{subfigure}[b]{\textwidth}
\includegraphics[width=0.6\textwidth]{example-image}
\subcaption{$Q^{*}$ values for arm 1}
\label{fig:arm1}
\end{subfigure}
%
\begin{subfigure}[b]{\textwidth}
\includegraphics[width=0.6\textwidth]{example-image}
\subcaption{$Q^{*}$ values for arm 2}
\label{fig:arm2}
\end{subfigure}
\caption{$Q^{*}$ values for different arms}
\end{figure}
\begin{figure}[htb]\ContinuedFloat
\centering
\begin{subfigure}[b]{\textwidth}
\includegraphics[width=0.6\textwidth]{example-image}
\subcaption{$Q^{*}$ values for arm 3}
\label{fig:arm3}
\end{subfigure}
%
\begin{subfigure}[b]{\textwidth}
\includegraphics[width=0.6\textwidth]{example-image}
\subcaption{$Q^{*}$ values for arm 4}
\label{fig:arm4}
\end{subfigure}
\caption{$Q^{*}$ values for different arms (cont.)}
\label{fig:arms}
\end{figure}
\end{document}

• When I do this, I get LaTeX Error: too many unprocessed floats. – JNevens Nov 18 '15 at 8:04
• I doubt that just this figure is cause for this. If you test my MWE, you will not receive this error. For test you (temporary) omit command \ContinuedFloat and then see, if error still persist. – Zarko Nov 18 '15 at 9:31
• @JNevens, any news? do you resolve your problem? does my answer help you? – Zarko Feb 9 '18 at 19:42