Dear list, while \widowpenalty is respected in conventional columns, inside or outside \startmixedcolumns and \stopmixedcolumns, it is ignored. How can I make ConTeXt avoid widows in mixedcolumns? (I can't use conventional columns, some things like distance=... don't work there.) Thank you, Joshua Krämer MWE: \starttext \startmixedcolumns %\startcolumns \widowpenalty10000 \dorecurse{290}{word } \dorecurse{250}{second } \stopmixedcolumns %\stopcolumns \stoptext
On 12. November 2013 at 18:36:49, Joshua Krämer (joshua.kraemer@gmail.com) wrote: Dear list, while \widowpenalty is respected in conventional columns, inside or outside \startmixedcolumns and \stopmixedcolumns, it is ignored. How can I make ConTeXt avoid widows in mixedcolumns? (I can't use conventional columns, some things like distance=... don't work there.) Thank you, Joshua Krämer MWE: \starttext \startmixedcolumns %\startcolumns \widowpenalty10000 \dorecurse{290}{word } \dorecurse{250}{second } \stopmixedcolumns %\stopcolumns \stoptext ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ \starttext \startcolumns \input knuth \stopcolumns \startcolumns[distance=4cm] \input knuth \stopcolumns \stoptext -- Wolfgang Schuster
Dear Wolfgang, thanks for your answer. Please compare: \starttext \startcolumns[distance=5pt] \input knuth \stopcolumns \startmixedcolumns[distance=5pt] \input knuth \stopmixedcolumns \stoptext
On 12. November 2013 at 18:45:55, Joshua Krämer (joshua.kraemer@gmail.com) wrote: Dear Wolfgang, thanks for your answer. Please compare: \starttext \startcolumns[distance=5pt] \input knuth \stopcolumns \startmixedcolumns[distance=5pt] \input knuth \stopmixedcolumns \stoptext You have to set the values of the offset key to 0pt to use only the values for distance: \starttext \startcolumns[distance=5pt,offset=0pt] \input knuth \stopcolumns \startmixedcolumns[distance=5pt] \input knuth \stopmixedcolumns \stoptext Wolfgang
Am Tue, 12 Nov 2013 19:00:52 +0100 schrieb Wolfgang Schuster:
\stoptext You have to set the values of the offset key to 0pt to use only the values for distance:
Thanks, that did the trick. However, I still wonder why \widowpenalty doesn't work in mixedcolumns. This should be revised. Maybe penalty keys for \setupmixedcolumns and \startmixedcolumns would be even better. Kind regards, Joshua Krämer
participants (2)
-
Joshua Krämer
-
Wolfgang Schuster