[NTG-context] Question on headings and text around them

Hans Hagen pragma at wxs.nl
Tue Nov 24 13:52:15 CET 2015

On 11/23/2015 11:16 PM, josephcanedo at gmail.com wrote:
> Dear all,
>
> In some text I am typesetting I noticed that the text following a
> section was always starting on same page (which is all fine), but in
> some cases the text preceding the section heading was also finishing on
> same page, ie the last paragraph before the section heading was broken
> in previous page, say N lines on previous page and 2 in the page in
> which the section starts (I have \widowpenalty10000 that’s probably why
> there are 2 lines in new page), even if there is space in the previous
> page for the 2 lines (there are even 3 blank lines at the end of the page).
>
> Apparently I could solve this “problem”, adding some 0 penalty:
>
>
> \def\BeforeBook{\blank[line]} which seems to avoid breaking page between
>
>
> My question is simply, is that a correct way to fix the problem, or is
> that just “luck” this fixes the issue ?

you need to make a (minimal) example that shows the issue

-----------------------------------------------------------------