Time for action – sparing an almost empty page
We shall modify our example a bit. This time, we will try to avoid a nearly empty page by squeezing their text to the preceding page.
Remove the command
\newpage
from our example and switch to11pt
base font. This time, use less filler text in the subsection:\documentclass[a4paper,11pt]{book} \usepackage[english]{babel} \usepackage{blindtext} \usepackage[a4paper, inner=1.5cm, outer=3cm, top=2cm, bottom=3cm, bindingoffset=1cm]{geometry} \begin{document} \chapter{Exploring the page layout} In this chapter we will study the layout of pages. \section{Some filler text} \blindtext \section{A lot more filler text} More dummy text will follow. \subsection{Plenty of filler text} \blindtext[3] \end{document}
Typeset, and the result will consist of two pages:
Insert this command right after the
\subsection
line:\enlargethispage{\baselineskip}
Typeset. Now our document fits in only one page:
What just happened?
We used the command \enlargethispage
to squeeze...