ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* widowpenalty in mixedcolumns
@ 2013-11-12 17:36 Joshua Krämer
  2013-11-12 17:40 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Joshua Krämer @ 2013-11-12 17:36 UTC (permalink / raw)
  To: ntg-context-wvrSQK3plZs

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: widowpenalty in mixedcolumns
  2013-11-12 17:36 widowpenalty in mixedcolumns Joshua Krämer
@ 2013-11-12 17:40 ` Wolfgang Schuster
  2013-11-12 17:45   ` Joshua Krämer
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2013-11-12 17:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Joshua Krämer


[-- Attachment #1.1: Type: text/plain, Size: 1260 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2523 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: widowpenalty in mixedcolumns
  2013-11-12 17:40 ` Wolfgang Schuster
@ 2013-11-12 17:45   ` Joshua Krämer
  2013-11-12 18:00     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Joshua Krämer @ 2013-11-12 17:45 UTC (permalink / raw)
  To: ntg-context-wvrSQK3plZs

Dear Wolfgang,

thanks for your answer.  Please compare:

\starttext

\startcolumns[distance=5pt]
\input knuth
\stopcolumns

\startmixedcolumns[distance=5pt]
\input knuth
\stopmixedcolumns

\stoptext

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

maillist : ntg-context-wvrSQK3plZs@public.gmane.org / 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: widowpenalty in mixedcolumns
  2013-11-12 17:45   ` Joshua Krämer
@ 2013-11-12 18:00     ` Wolfgang Schuster
  2013-11-12 18:52       ` Joshua Krämer
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2013-11-12 18:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Joshua Krämer


[-- Attachment #1.1: Type: text/plain, Size: 596 bytes --]



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

[-- Attachment #1.2: Type: text/html, Size: 1931 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: widowpenalty in mixedcolumns
  2013-11-12 18:00     ` Wolfgang Schuster
@ 2013-11-12 18:52       ` Joshua Krämer
  0 siblings, 0 replies; 5+ messages in thread
From: Joshua Krämer @ 2013-11-12 18:52 UTC (permalink / raw)
  To: ntg-context-wvrSQK3plZs

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

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-12 18:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-12 17:36 widowpenalty in mixedcolumns Joshua Krämer
2013-11-12 17:40 ` Wolfgang Schuster
2013-11-12 17:45   ` Joshua Krämer
2013-11-12 18:00     ` Wolfgang Schuster
2013-11-12 18:52       ` Joshua Krämer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).