[Tex/LaTex] Splitting Subfigure across multiple pages

subfloats

I want to split a main figure which has four sub-figures in it. I am unable to get solution from the previous posts on the same subject and therefore had to make this post.

Best Answer

Probably the following solution is what you looking for:

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

\begin{document} 
    \begin{figure}[tb]
\begin{subfigure}[t]{0.5\hsize}
    \includegraphics[width=0.9\linewidth]{example-image}
    \caption{}
\end{subfigure}   
\begin{subfigure}[t]{0.5\hsize}
    \includegraphics[width=0.9\linewidth]{example-image}
    \caption{}
\end{subfigure}
    \caption{first part of my figure}
    \end{figure}
\clearpage   
    \begin{figure}[tb]\ContinuedFloat
\begin{subfigure}[t]{0.5\hsize}
    \includegraphics[width=0.9\linewidth]{example-image}
    \caption{}
\end{subfigure}
\begin{subfigure}[t]{0.5\hsize}
    \includegraphics[width=0.9\linewidth]{example-image}
    \caption{}
\end{subfigure}
    \caption{second part of my figure}
    \end{figure}
\end{document}

Macro \ContinuedFloat from package caption restore figure number and enable increment subfigures numbers from last subfigure in previous figure .