Am 03.12.2013 um 09:52 schrieb Hans Hagen
On 12/2/2013 9:02 PM, Jan Tosovsky wrote:
On 2013-12-02 "H. Özoguz" wrote:
On 2013-12-01 Jan Tosovsky wrote:
when grid is on, orphan and widows have to be eliminated using
additional
penalty settings. Whereas it works fine for body text, section titles are still sometimes left at the bottom of the page.
this is not the same question as handling orphan and widows - because you surely do not want some titles with only 2-3 lines of body text after them.
I always use "\testpage[x]" to handle those issues, see your example with testpage:
\setuphead[section][before={\testpage[8]\blank}]
\blank[samepage,big]
This doesn’t work because “samepage” is ignored when the grid is enabled. %\setuplayout[grid=yes,lines=10] \setuplayout[lines=10] \showgrid \starttext \dontleavehmode\blank[fixed,8*line] text \blank[samepage,line] text \stoptext Wolfgang