GeneralLaTex creates new page with only few words

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Sapientum
Posts: 4
Joined: Tue Dec 11, 2007 2:15 pm

LaTex creates new page with only few words

Post by Sapientum »

Hi,

I has this textpiece that almost fits on one page. The problem is that the second page only consists of a few words. So I was wondering if there exists a command in LaTex that forces textpieces not to end with only one line/or a few words standing alone on a new page....?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

LaTex creates new page with only few words

Post by localghost »

The effects you describe are called widows and orphans. You can avoid them by adding some commands in your preamble.

Code: Select all

\clubpenalty10000
\widowpenalty10000
As an alternative, you can enlarge the affected page by a few a lines.

Code: Select all

\enlargthispage{2\baselineskip}

Best regards an welcome on Board
Thorsten
Post Reply