From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16399 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: column balancing question Date: Thu, 09 Sep 2004 15:54:16 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <41406088.1070502@wxs.nl> References: <413ECCDF.2000908@econ.muni.cz> <413EC9B4.4020708@wxs.nl> <414072FD.1040207@econ.muni.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094738187 17719 80.91.224.253 (9 Sep 2004 13:56:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Sep 2004 13:56:27 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 09 15:56:05 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C5PPA-0003s0-00 for ; Thu, 09 Sep 2004 15:56:04 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DF37012780; Thu, 9 Sep 2004 15:56:03 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30703-08; Thu, 9 Sep 2004 15:56:03 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CEA9612787; Thu, 9 Sep 2004 15:54:20 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 62A8512787 for ; Thu, 9 Sep 2004 15:54:19 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30703-07 for ; Thu, 9 Sep 2004 15:54:18 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id A062312780 for ; Thu, 9 Sep 2004 15:54:18 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i89DsF5H012485 for ; Thu, 9 Sep 2004 15:54:15 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id D36E91A7B7; Thu, 9 Sep 2004 15:54:17 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 5AC1517B83 for ; Thu, 9 Sep 2004 13:54:16 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <414072FD.1040207@econ.muni.cz> X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on mailrelay02.solcon.nl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16399 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16399 Michal Kvasnicka wrote: > Good evening. > > Many thanks for your help. Your solution works well with the newest > ConTeXt and one particular document I now typeset. I have to check it > still with more documents. Do you want to gen a report from these tests? > > If you want I can send you many examples, but not `minimal files', > since I don't know when the problem occures. As I typeset our church > bulletin, I've got that result pretty often---approximately on one > third or one fourth of all pages. just test this on many docs and let me know if it fails (one source of problems with i'm currently trying to catch is rounding errors in comparisons) > I can't switch to columnset all my documents. Columnsets are > absolutely great (one of the ConTeXt miracle---I thought it is not > possible to do it in TeX because of its breaking routines), but > up-to-now columnsets cannot be ballanced (or can they?), and my church > bulletin is typset in such a way that each article can start anywhere > on the page, and the columns must be ballanced before it. I can't > explain it better because of my English, but its pages look like this: > > xxxxx xxxxx > xxxxx xxxxx > xxxxx xxxxx > xxxxx xxxxx > > Title of article > xxxxx xxxxx > xxxxx xxxxx > > Therefore I would lobby for the support of the old \startcolumns ... > \stopcolumns environment. :-) don't worry, i'm not driopping the old one, actually, in due time i'll provide more specialized ones and interfaces to write your own -) balancing in columnsets is a tricky business, the following should work (kind of manual balacing, complete control over how long columns on pages are; probably a bit fragile) % output=pdftex interface=en \setuplayout[grid=yes] \showgrid \showstruts % gaat nogal fout zonder grid \setuptolerance[verytolerant] \definecolumnset [test-1] [n=2] \definecolumnset [test-2] [n=3] \starttext \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnset [test-1] [balance=yes] \setupcolumnset [test-2] [balance=yes] \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetlines[test-2][1][1][19] \setupcolumnsetlines[test-2][1][2][18] \setupcolumnsetlines[test-2][1][3][19] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetlines[test-2][1][1][0] \setupcolumnsetlines[test-2][1][2][-2] \setupcolumnsetlines[test-2][1][3][0] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {6}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetstart[test-2][1][1][20] \setupcolumnsetstart[test-2][1][2][20] \setupcolumnsetstart[test-2][1][3][20] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetlines[test-2][1][1][-20] \setupcolumnsetlines[test-2][1][2][-20] \setupcolumnsetlines[test-2][1][3][-20] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \stoptext Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------