TransWikia.com

How to keep section titles together with the content in ConTeXt?

TeX - LaTeX Asked on September 1, 2021

I found many places in my document where the subsection titles are places alone at the bottom of the page with the content on the next page, like this:

 ____________ ____________
|            |            |
| Section    | .......... |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
| Section    | .......... |
|____________|____________|

I do not want any section titles to appear without any text below them, e.g., this will be fine:

 ____________ ____________
|            |            |
| Section    | Section    |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
|            | .......... |
|____________|____________|
  • I used startsubsection and stopsubsection to define the whole section text.

Is there any way to make sure that the section titles always appear together with at least one line of text from the paragraph inside?

One Answer

Have you tried setting clubpenalty = 10000 in preamble? It removes single lines of paragraphs on the preceding page (see here). Not sure if this is why I never get your problem, or whether it is just a coincidence, though!

Answered by NCH32 on September 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP