Am 09.08.2012 um 11:36 schrieb d_jan
Dear List,
I ran into trouble with the widow/orphan-control in context. I searched the mailinglist, and saw that there were some other threads on the topic bevore, but as far as I am concerned what was suggested there did not work for me when I tried it.
I run context iv using the version which comes with TexLive 2011.
First trail was to include \widowpenalty=9000 and \clubpenalty=9000 at the start of the document, before \starttext (cause I do my setups, and definitions there) As this did not work I tried to put them after \starttext. As well I lowered \brokenpenalty. But both approaches, which were suggested in previous Posts on the ntg-context list failed to show an effect in my case.
Is there anything I could do to prevent the widow lines?
You can change the default penalties with \setuplayout[setups=…], the default setting is \setuplayout[setups=*default] but you can change this to “setups=*strict” which should help. It’s also possible to create your own penalties setup, e.g. \startsetups mypenalties \widowpenalty = 9000 \clubpenalty = 9000 \stopsetups \setuplayout[setups=mypenalties] \starttext … \stoptext Wolfgang