From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48341 Path: news.gmane.org!not-for-mail From: Jelle Huisman Newsgroups: gmane.comp.tex.context Subject: Re: problem with two columns on a page Date: Fri, 13 Mar 2009 18:39:10 +0000 Message-ID: <49BAA84E.7080109@jhnet.nl> References: <49B930BC.9080507@jhnet.nl> <49BA873E.20603@wxs.nl> <49BA974A.1070705@jhnet.nl> <49BAA3A5.4090802@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236969600 18337 80.91.229.12 (13 Mar 2009 18:40:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Mar 2009 18:40:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 13 19:41:15 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LiCJf-00020O-Gz for gctc-ntg-context-518@m.gmane.org; Fri, 13 Mar 2009 19:41:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C2D681FBC1; Fri, 13 Mar 2009 19:39:42 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06654-02; Fri, 13 Mar 2009 19:39:24 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F034E1FB95; Fri, 13 Mar 2009 19:39:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2DAC11FB95 for ; Fri, 13 Mar 2009 19:39:23 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01958-04-4 for ; Fri, 13 Mar 2009 19:39:15 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id A5B041FB89 for ; Fri, 13 Mar 2009 19:39:15 +0100 (CET) Original-Received: from smtp1.wsfo.org (smtp1.wsfo.org [208.145.81.51]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2DIdEOH022438 for ; Fri, 13 Mar 2009 19:39:14 +0100 Original-Received: from mail.link77.net (cgp1.mail.link77.net [172.22.65.13]) by smtp1.wsfo.org (8.13.1/8.13.1) with ESMTP id n2DIdDp9003930 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 13 Mar 2009 14:39:13 -0400 X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.8.3 (ClamAV engine v0.94.2) X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.8.3 (ClamAV engine v0.94.2) X-ExternalMail: External Original-Received: from [82.153.47.165] (account jelle_huisman@sil.org HELO jelle-macbook.local) by cgp1.mail.link77.net (CommuniGate Pro SMTP 5.2.12) with ESMTPSA id 210302457 for ntg-context@ntg.nl; Fri, 13 Mar 2009 14:39:13 -0400 User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) In-Reply-To: <49BAA3A5.4090802@wxs.nl> X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-Scanned-By: MIMEDefang 2.62 on 172.22.0.51 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=208.145.81.51; country=US; region=NC; city=Waxhaw; postalcode=28173; latitude=34.9273; longitude=-80.7278; metrocode=517; areacode=704; http://maps.google.com/maps?q=34.9273,-80.7278&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 193336085 - 31fe05842ec0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48341 Archived-At: 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 } \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 ___________________________________________________________________________________