From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: problem with two columns on a page
Date: Fri, 13 Mar 2009 20:20:13 +0100 [thread overview]
Message-ID: <49BAB1ED.2020404@wxs.nl> (raw)
In-Reply-To: <49BAA84E.7080109@jhnet.nl>
Jelle Huisman wrote:
> Hans Hagen wrote:
>> Jelle Huisman wrote:
>>> Hans Hagen wrote:
>>>> the problem is that the paragraph is larger than two columns and
>>>> that's tricky to handle without too much messing around (i'll redo
>>>> the balancer in mkiv once i've arrived at it; i see where the catch
>>>> takes place but i'd rather not touch the mkii code now)
>>>>
>>>> so, what you can do is trigger the otr before columns end
>>>>
>>>> add \penalty\outputpenalty just before \stopcolumns
>>>>
>>>> (ok, might hav eother side effects
>>>
>>> It does indeed not do what I expected. One final try: is there some
>>> sort of setting for the number of lines allowed in a column that
>>> triggers the OTR, so that I could tweak that? Or is it hard coded and
>>> will it break everything?
>>
>> where did you put the penalty?
>
> Right before \stopcolumns, as you suggested.
>
> \starttext
> \showgrid
>
> \startalignment[center] AA \stopalignment\blank
> \startcolumns[n=2,balance=yes]
> %\dorecurse{40}{a a a a a a a a a a a a a a a a a a a a a } % << this works
> \dorecurse{42}{a a a a a a a a a a a a a a a a a a a a a } % << this
> pushes columns (BB) to the next page
> \penalty\outputpenalty
> \stopcolumns
>
> \startalignment[center] BB \stopalignment\blank
> \startcolumns[n=2,balance=yes]
> \dorecurse{100}{b b b b b b b b b b b b b b b b b b b b }
\penalty\outputpenalty
> \stopcolumns
>
> \stoptext
>
>
> Jelle
> ___________________________________________________________________________________
>
> 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 : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2009-03-13 19:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 15:56 Jelle Huisman
[not found] ` <49BA873E.20603@wxs.nl>
2009-03-13 17:26 ` Jelle Huisman
2009-03-13 18:19 ` Hans Hagen
2009-03-13 18:39 ` Jelle Huisman
2009-03-13 19:20 ` Hans Hagen [this message]
2009-03-13 19:25 ` Marcin Borkowski
2009-03-13 20:23 ` Jelle Huisman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49BAB1ED.2020404@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).