I would like to know if there is any global command that would prevent any page-breaks inside sections. All my sections are short enough. I read some solutions, such as Absolutely, definitely, preventing page break, but I would like an automatic solution.

1 Answer 1


Add \filbreak before \section; you can automate it with etoolbox:


\usepackage{lipsum} % just for the example






Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.