[NTG-context] page ends with a section title followed by a table

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Tue Nov 10 17:52:48 CET 2020


Pablo Rodriguez schrieb am 10.11.2020 um 15:59:
> On 11/10/20 9:55 AM, Sylvain Hubert wrote:
>> Dear List,
>>
>> In the following example, the section title appears at the very end of
>> the first page.
>> [...]
>> Does anyone know where to adjust the penalty in this case, so that the
>> section title can be repositioned to the next page?
> Hi Sylvain,
>
>    \setuphead[title]
>      [before={\blank[preference, big],
>       after={\blank[samepage, big]]
>
> In this case, the blank space before sets a preference for inserting a
> page break. The blank space after requires to be in the same page with
> next paragraph.

Another method is to move the section title to the next page when the 
remaining spaces
is below a specified number of lines. The following setup forces a page 
break when
less than 4 lines remain on the current page.

\setuphead
   [section]
   [before={\testpage[4]\blank[2*big]}]

Wolfgang



More information about the ntg-context mailing list