In order to keep everything neat and tidy in my document (in particular with regards to floats floating all over the place), I want each subsection to end with a \clearpage. I originally had the following redefinition for the subsection command:
\let\oldsubsection\subsection
\renewcommand{\subsection}{
\clearpage
\oldsubsection
}
However, this puts the page break before the subsection heading, which means there is a break between section headings and the first subsection headings.
Is there any way to force that page break at the end of the subsection?
\clearpage
only if the subsection counter is not zero. But first check if\FloatBarrier
from the placeins package is a better option.