[Tex/LaTex] How to one keep a \section from being at the end of a page

page-breakingsectioning

Given LaTeX likeso:

\section{Heading}

Here is some text after the heading.

How could one prevent the Heading from showing up at the very bottom of the page?

In other words, how could one prevent a page-break after Heading and before the following text?

This seems to be happening in a document that I've got. If there's more information that would be helpful, I'd be happy to post more of the entire LaTeX document.

Best Answer

This should rarely happen with the standard document classes (and the better-known ones such as memoir and koma). Are you using a homegrown document class or redefining the \section command yourself?

Related Question