Page LayoutKeep whole section on the current page, break if necessary

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Aerow
Posts: 1
Joined: Tue Apr 24, 2012 6:23 pm

Keep whole section on the current page, break if necessary

Post by Aerow »

Hello everybody.

My problem states as follows:

I have a document with a huge amount of subsections (>300). Regarding aesthetics, I am trying to achieve the following:

If a particular section fits wholly on the current page, put it there. If not, perform a pagebreak.

I couldn't figure out a method to measure the lenght of a given section beforehand, e.g. to use the needspace-package afterwards.
Is there any possibilty to perform that kind of task?

I am very thankful for any help regarding this.

[EDIT: I also tried to figure out if the use of floats would be of any help. But some sections have a lenght of more than a single page, so the option to automatically break the page must not be lost.]

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply