GeneralForce \subsubsection to appear at the bottom of the previous page

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
marbocam
Posts: 55
Joined: Thu Dec 19, 2024 11:14 am

Force \subsubsection to appear at the bottom of the previous page

Post by marbocam »

Hi,

at some points in my thesis, there's an empty space at the bottom of a page and the following \subsubsection jumps into the next page.

I tried using \nopagebreak[4] without luck.. Is there a way to force latex into not making a page break?

Thanks!

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10371
Joined: Mon Mar 10, 2008 9:44 pm

Re: Force \subsubsection to appear at the bottom of the previous page

Post by Stefan Kottwitz »

It seems there's probably just not enough space at the end of the page for \subsubsection (including the space before and after such a heading). Try \enlargethispage{\baselineskip} there.

Stefan
LaTeX.org admin
marbocam
Posts: 55
Joined: Thu Dec 19, 2024 11:14 am

Re: Force \subsubsection to appear at the bottom of the previous page

Post by marbocam »

Nice, Stefan! You also know how to make me happy! :lol:
marbocam
Posts: 55
Joined: Thu Dec 19, 2024 11:14 am

Re: Force \subsubsection to appear at the bottom of the previous page

Post by marbocam »

Hello again,

what about the \subsections? how can I make them appear on the previous page?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10371
Joined: Mon Mar 10, 2008 9:44 pm

Re: Force \subsubsection to appear at the bottom of the previous page

Post by Stefan Kottwitz »

Same, make space for them in any way :-)

Stefan
LaTeX.org admin
Post Reply