[Tex/LaTex] figcaps and page breaks

endfloatfloatspage-breaking

I'm using figcaps to place floats at the end of an article prior to copyediting. The journal asks for each figure/table on a separate page. But figcaps puts as many figures as possible on each page. How do I override this? (Not even ugly manual hacks, like inserting \newpage at the start or end of the figure/table environment, work).

If you compile the MWE below, you'll see that both figures are located on p3, not on subsequent, separate pages.

(I've tried using endfloat but I get error messages that suggest adverse interactions. Fixing these may take some work, so I'd rather get figcaps to work if possible.)

\documentclass{article}

\usepackage{figcaps}
\printfigures
\figmarkon

\usepackage{lipsum}

\begin{document}

\lipsum[1]

\begin{figure}
    \caption{A floating figure}
    \label{float}
\medskip \em \footnotesize \lipsum[1]
\end{figure}

Check out figure \ref{float}.

\lipsum [2]

\end{document}

Best Answer

Patch the \@figurepage command that's responsible for printing the figures; the usual setting is to leave 20pt of vertical space, which we can change to \clearpage:

\documentclass{article}

\usepackage{figcaps}
\printfigures
\figmarkon
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@figurepage}{\vspace{20pt}}{\clearpage}{}{}
\makeatother

\usepackage{lipsum}

\begin{document}

\lipsum[1]

\begin{figure}
    \caption{A floating figure}
    \label{float}
\medskip \em \footnotesize \lipsum[1]
\end{figure}

Check out figure \ref{float}.

\lipsum [2]

\begin{figure}
    \caption{A floating figure}
    \label{float2}
\medskip \em \footnotesize \lipsum[1]
\end{figure}

Check out figure \ref{float2}.

\lipsum [2]

\end{document}
Related Question