Page Layoutminimum number of lines per paragraph on a each page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
eykanal
Posts: 3
Joined: Fri Dec 05, 2008 6:01 pm

minimum number of lines per paragraph on a each page

Post by eykanal »

Sorry for the vague subject, but I can't think of how to phrase this better.

I need to specify that a new paragraph near the bottom of the page should contain at least two lines of text. If not, it should begin on the next page. On a similar note, if a page begins with the very end of a paragraph, it should contain at least two lines of text. In Microsoft Word there is an option called "orphan/widow control" in the pagination settings which achieves this. Can this be done with LaTeX? Thanks!

Recommended reading 2024:

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

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

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

minimum number of lines per paragraph on a each page

Post by localghost »

eykanal wrote:[...] In Microsoft Word there is an option called "orphan/widow control" in the pagination settings which achieves this. Can this be done with LaTeX? Thanks!
This also can be done LaTeX and is controlled by special penalty registers for widows and orphans.

Code: Select all

\clubpenalty10000
\widowpenalty10000
These lines go into the preamble of your document.


Best regards
Thorsten
Post Reply