0

Good evening guys,

I am currently trying to figure out how to add a custom pagebreak inside a figure environment containing multiple subfloats (2 columns) using the subfig package, e.g.:

\begin{figure}
    \centering
    \subfloat[][1] {
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }
    \qquad
    \subfloat[][2]{
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }

    \subfloat[][3]{
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }
    \qquad
    \subfloat[][4] {
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }

    \subfloat[][5]{
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }
    \qquad
    \subfloat[][6]{
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }

    \subfloat[][7] {
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }
    \qquad
    \subfloat[][8]{
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }

    \subfloat[][9]{
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }
    \qquad
    \subfloat[][10] {
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }
    \caption{...}
    \label{...}
\end{figure}

I have tried inserting \pagebreak, \newpage, and \clearpage between figure 2 and 3 to split the figure across two pages, but none of them worked. Is this even possible? What is the best way to achieve this?

Thank you all!

2
  • You cannot split float over pages. For solution see tex.stackexchange.com/questions/278727/…. Actually, your question is duplicate to question in the given link.
    – Zarko
    Commented Apr 24, 2021 at 18:29
  • Thank you guys. In the meantime, I found the solution by myself. (see my own answer to the question below).
    – CLRW97
    Commented Apr 24, 2021 at 18:36

1 Answer 1

0

... found the solution.

\ContinuedFloat did the trick.

Example:

\begin{figure}
    \centering
    \subfloat[][1] {
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }
    \qquad
    \subfloat[][2]{
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }
\end{figure}
\begin{figure}
    \centering
    \ContinuedFloat
    \subfloat[][3]{
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }
    \qquad
    \subfloat[][4] {
        \centering
        \includegraphics[width=.45\linewidth]{...}
    }
    \caption{...}
\end{figure}

Not the answer you're looking for? Browse other questions tagged .