Am 11.08.25 um 17:43 schrieb Hans Hagen via ntg-context:
On 8/11/2025 5:24 PM, John Was wrote:
Hello

In XeTeX, for emergencies (e.g. two lines left dangling on the last page of a chapter) I keep in reserve:

\def\tightspaceskip{\spaceskip 0.15em plus 0.2em}

\def\verytightspaceskip{\spaceskip 0.125em plus 0.15em}


These seem both to work in ConTexT - of course you can fiddle till you come up with what looks satisfactory (and obviously the names \tightspaceskip, \verytightspaceskip can be altered).

I group these in the paragraph or paragraphs that I want to shorten but I don't see why the definitions you come up with couldn't be put in the preamble to your file, so that they are applied throughout.

it probably makes sense to look into the more advanced multiple paragraph passes features, things like widows, clubs, orphans, twins, toddlers, various penalties, optional expansion ect as well as page breaks and vz (as variant of hz)

Try

\setupalign[verytolerant,stretch,depth,granular,fullhz]
\setupalignpass[quality]
\setuplayout[vz=2]

(I hope I didn’t forget something important…)

This will enable granular paragraph breaking, hz and vz – together, these mechanisms get rid of many page breaking problems.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to