Page Layout ⇒ Keep whole section on the current page, break if necessary
Keep whole section on the current page, break if necessary
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.]
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