I am not able to figure how to do this, and I did look at the etoolbox documentation
The problem is simple to explain: I use etoolbox to append a \clearpage
before any \section
in a large document so that each section starts on a new page. (it is a book style document, but the MWE below is an article)
There are few sections that are small, and I want to tell etoolbox to not do this for the following section, and then tell it to start again after the section is finished.
How to do this? what is the etoolbox or Latex command for this?
Here is a MWE
\documentclass[12pt]{article}%
\usepackage{etoolbox}\preto\section{\clearpage}
\usepackage{lipsum}
\begin{document}
\section{A}
\lipsum[75]
\section{B}
\lipsum[75]
%do not add \clearpage here, how?
\section{C}
\lipsum[75]
%now start adding \clearpage, it is ok
\section{D}
\lipsum[75]
\end{document}
Texlive 2013, Linux mint.