Hi,
I've read in the wiki (https://wiki.contextgarden.net/Widows_and_orphans_control) that this setting can be used to keep at least two lines together:
\startsetups[grid][mypenalties]
\setdefaultpenalties
\setpenalties\widowpenalties{2}{10000}
\setpenalties\clubpenalties {2}{10000}
\stopsetups
After experimenting with the first argument (see below) it looks to me as if the wording on the wiki should be changed a bit, from to (penalties1 gives me one full line and a second line that is almost full ; penalties2 results in two full lines with a third line that is almost full.).
Is my interpretation correct?
Denis
\setuppapersize[A6]
\setuplayout[lines=20]
\setupalign[line]
\showframe
\startsetups[penalties1]
\setdefaultpenalties
\setpenalties\widowpenalties{1}{10000}
\stopsetups
\startsetups[penalties2]
\setdefaultpenalties
\setpenalties\widowpenalties{2}{10000}
\stopsetups
\starttext
\setuplayout[setups=penalties1]
\samplefile{tufte}\par
Here we are writing some more words to see the effect.
Here we are writing some more words to see the effect.
Here we are writing some more words to see the effect.
\page
\setuplayout[setups=penalties2]
\samplefile{tufte}\par
Here we are writing some more words to see the effect.
Here we are writing some more words to see the effect.
Here we are writing some more words to see the effect.
\stoptext