[NTG-context] preventing page break

Henning Hraban Ramm texml at fiee.net
Fri Jul 19 13:24:13 CEST 2019


Zitat von Floris van Manen <vm at klankschap.nl>:

> Hello List,
>
> What is the preferred way in context to prevent a page break happening
> between the heading(s) of a section and, for instance, the first 3 lines
> of the following paragraph?
>
> \section(one)
> \subsection(one two}
> %--- no page break here
> One two three for ...
> One two three for ...
> One two three for ...
> %- from here page breaks allowed

You can use \testpage{#} to tell ConTeXt there should be at least #  
lines following; I often use this with \setuphead.



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD



More information about the ntg-context mailing list