0

This question already has an answer here:

When I wrote a template, I found that if there is too many empty sections in a chapter, latex will not produce appropriate page breaks. All these sections will just be listed in a single page. Why does that happen?

\documentclass{report}

\begin{document}
\chapter{chp1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\section{sec1}
\end{document}

marked as duplicate by egreg, Joseph Wright Mar 7 '15 at 22:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    Because latex tries hard to avoid a page break after the title of a section. Put some dummy text between the sections. – Ulrike Fischer Nov 28 '14 at 9:50
  • 2
    the "text" @UlrikeFischer refers to can be invisible \mbox{} would be enough. – David Carlisle Nov 28 '14 at 10:12
  • 1
    the reason for this is given in this answer: Overfull box and broken pagination – barbara beeton Nov 28 '14 at 16:06

Browse other questions tagged or ask your own question.