From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15390 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: pagination problem with \startitemize[columns] Date: Mon, 14 Jun 2004 11:40:58 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40CD72AA.6080302@wxs.nl> References: <20040612002532.GA2834@puritan.pcp.ath.cx> Reply-To: ntg-context@ntg.nl 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 1087206236 29820 80.91.224.253 (14 Jun 2004 09:43:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Jun 2004 09:43:56 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Jun 14 11:43:50 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BZo0M-0001vq-00 for ; Mon, 14 Jun 2004 11:43:50 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 4BFD410C94; Mon, 14 Jun 2004 11:43:46 +0200 (MEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id 188D310C91 for ; Mon, 14 Jun 2004 11:41:00 +0200 (MEST) 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 i5E9ewaa015438 for ; Mon, 14 Jun 2004 11:40:58 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id DC93B1A19E; Mon, 14 Jun 2004 11:40:59 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id EA32418A0A for ; Mon, 14 Jun 2004 09:40:58 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <20040612002532.GA2834@puritan.pcp.ath.cx> X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15390 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15390 Nikolai Weibull wrote: >I sent a response to an earlier thread about this, but I don't know if >it got through (my mail was down later that day). Anyway, here's an >example of something that gets messed up. Text following the itemize >doesn't get paginated properly. Having a new chapter after it seems to >fix it from there on, though. > >\starttext > >\chapter{One} > >\dorecurse{7}{\input zapf \par\relax} > >\startitemize[columns,four] >\dorecurse{12}{\nop \type{[:alnum:]}} >\stopitemize > >\dorecurse{7}{\input zapf \par\relax} > >\stoptext > > i posted a fix for that: \def\endmulticolumns {%\par \vskip\lineheight\vskip-\lineheight % take footnotes into account \dontshowcomposition \doflushcolumnfloat % added recently %\doflushcolumnfloats % no, since it results in wrong top floats \flushnotes % before start of columns \par \ifbalancecolumns \global\output{\continuousmulticolumnsout}% \goodbreak \global\output{\balancedmulticolumnsout}% \else \goodbreak \fi \eject % the prevdepth is important, try e.g. toclist in \prevdepth\zeropoint % columns before some noncolumned text text \global\output\singlecolumnout \global\output{\the\mainoutput}% % % % % todo \ifvoid\precolumnbox\else \unvbox\precolumnbox \fi \global\precolumnboxheight\zeropoint \endgroup % here \nofcolumns\plusone \setvsize % the outer one! \synchronizeoutput % new may 2004 / we need to: \pagegoal\vsize \checkendcolumnfootnotes \dosomebreak\allowbreak \restoresavedfloats} this should go into cont=new.tex