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.]
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