[NTG-context] moving the first line of a page to the previous page

mf massifr at fastwebnet.it
Tue Oct 9 13:32:44 CEST 2018


Hello list,
sometimes ConTeXt moves the (would-be) last line of a page to the next 
page, even when there's room for it at the bottom of a page, before the 
footnotes.

Sometimes i understand why it does so: when the line contains a footnote 
that would increase the footnotes' height, for example; or when you have 
widows or orphans.

But sometimes it happens in an inexplicable way: in some pages there's 
room at the bottom and it keeps the last line, in some other pages 
there's more room (than in the previous case), but it moves the last 
line to the next page anyway.
Even looking at hyphenations, i can't find an explanation fot that 
behaviour.

So i'm looking for a way to prevent ConTeXt from moving the last line to 
the next page.

A solution i found is to insert a \vadjust{\kern -0.5pt} in the 
second-last line of the page. It works -- see the attachments -- but it 
modifies the interline, so it's feasible only for corrections under 1pt.

Another way would be locally shrinking the space before footnotes, but i 
don't know how and when to do it.

Some words about the attachments:

- there are some footnotes and line height setups to resemble the real 
configuration i'm working with

- keep-line-in-page-0.tex is the reference case

- keep-line-in-page-1.tex is the solution with \vadjust{\kern -0.5pt}

Best wishes,
Massimiliano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keep-line-in-page-0.tex
Type: text/x-tex
Size: 1663 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20181009/9074996c/attachment.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keep-line-in-page-1.tex
Type: text/x-tex
Size: 1684 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20181009/9074996c/attachment-0001.tex>


More information about the ntg-context mailing list