How to add non breaking line between heading and paragraph

How do you keep headings and the first line (or a selected number of lines) of the related paragraphs on the same page?
For those heading not starting at the beginning of the page of course; something that works as a non breaking space-line.
Thanks.

Check LibreOffice Help - Text Flow esp. options

  • [x] Keep with next paragraph
  • [x] Orphan control
  • [x] Widow control

(And if you use default Heading styles, then these seem to fit your needs)