From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26181 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: wrong order of content-list items if using balanced columnsets Date: Tue, 28 Feb 2006 15:51:40 +0100 Message-ID: <4404637C.3000700@seznam.cz> References: <440379B9.6010609@seznam.cz> <4403A0C0.1050201@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141138339 29218 80.91.229.2 (28 Feb 2006 14:52:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Feb 2006 14:52:19 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 28 15:52:13 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FE6CT-0001TC-7O for gctc-ntg-context-518@m.gmane.org; Tue, 28 Feb 2006 15:51:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F3CC1279E; Tue, 28 Feb 2006 15:51:39 +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 03915-03; Tue, 28 Feb 2006 15:51:34 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 544D012793; Tue, 28 Feb 2006 15:51:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C7B9512793 for ; Tue, 28 Feb 2006 15:51:32 +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 01829-05 for ; Tue, 28 Feb 2006 15:51:31 +0100 (CET) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id 4C5D412772 for ; Tue, 28 Feb 2006 15:51:31 +0100 (CET) Original-Received: (qmail 3285 invoked from network); 28 Feb 2006 14:51:30 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (vit.zyka@seznam.cz@62.240.166.134) by cetus.go.seznam.cz with ESMTPA; 28 Feb 2006 14:51:30 -0000 X-Seznam-User: vit.zyka@seznam.cz User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4403A0C0.1050201@wxs.nl> X-Antivirus: avast! (VPS 0608-1, 23.02.2006), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:26181 Archived-At: Hans Hagen wrote: > Vit Zyka wrote: > >>Hello Wizards, >> >>the next example illustrates the problem with wrong order of >>content-list items if using balanced columnsets: >> >>----------------------------------------------------------------- >>\setuplayout[grid=yes,topspace=1cm,bottomspace=1cm,height=middle] >>\showgrid >> >>\definecolumnset[A][n=2,balance=yes] >>\setupcolumnsetlines[A][1][1][21] >>\setupcolumnsetlines[A][1][2][21] >>\definecolumnset[B][n=2,balance=yes] >> >>\starttext >>\startcolumnset[A] >> \section{Knuth} >> \dorecurse{2}{\input knuth \endgraf} >>\stopcolumnset >>\placeongrid{\hairline} >>\startcolumnset[B] >> \section{Zapf} >> \dorecurse{1}{\input zapf \endgraf} >> \blank >> Content: >> \placecontent[criterium=all] >>\stopcolumnset >> >>\stoptext >>-------------------------------------------------------------------- >> >>Problem is that the second section (Zapf) is inserted to .tui before the >>first one (Knuth). My observation: on the page where one columnset (A) >>is closed by \setupcolumnsetlines and the second (B) continues, .tuo >>contains marks from B firstly. This makes book content unsable in this >>configuration. >> >>Any solutions? I am thinking about: Proper order writting to .tuo or to >>sort items according to mark number - it is correct (not sure if it is >>implemented?). >> > > it's a kind of bug; how about swapping the order: (page-lyr.tex) > > \def\settextpagecontent#1#2#3% #2 and #3 will disappear > {\doifelselayerdata{OTRTEXT} > {\setbox#1\hbox to \makeupwidth > {\startoverlay > {\tightlayer[OTRTEXT]} % first, otherwise problems with toc > {\normalsettextpagecontent{#1}{#2}{#3}\box#1} > \stopoverlay}% > \dp#1\zeropoint}% > {\normalsettextpagecontent{#1}{#2}{#3}}} > Slaaavaaaa! > (you really don't want to know what happens there -) World record document with 40 balanced columnsets says it is OK. Thanks you Hans Vit