AnswerBun.com

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

TeX - LaTeX Asked on January 6, 2022

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 January 6, 2022

Add your own answers!

Related Questions

Representation of skillpoints on LaTeX

1  Asked on April 23, 2021 by nenno-lillo

   

Replicating a decision tree in tikz

1  Asked on April 23, 2021

 

MikTeX Installation

1  Asked on April 22, 2021 by madhumanti-ray

   

Cross reference .xlsx file to main.tex

0  Asked on April 22, 2021 by lamamo

     

List of Acronyms is not displayed

4  Asked on April 22, 2021 by thili

   

LaTeX Error-Missing Begin Document

7  Asked on April 22, 2021 by vaibhav-sundriyal

 

Centering table does not work with tbl macro

0  Asked on April 22, 2021 by wahedsaw

     

How to put the dots in the centre?

2  Asked on April 22, 2021

   

Add xsim exercises in table of contents

2  Asked on April 22, 2021 by helloedit

 

Ask a Question

Get help from others!

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