From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25468 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: last natural table column longer Date: Sat, 21 Jan 2006 16:57:41 +0100 Message-ID: <43D259F5.9040207@seznam.cz> References: <43CA5074.7030301@seznam.cz> <43CB64FE.109@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.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 1137859175 28747 80.91.229.2 (21 Jan 2006 15:59:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2006 15:59:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 21 16:59:33 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 1F0L9H-0003GO-HE for gctc-ntg-context-518@m.gmane.org; Sat, 21 Jan 2006 16:59:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2365F127C4; Sat, 21 Jan 2006 16:59:31 +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 02585-02; Sat, 21 Jan 2006 16:59:30 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6DD3D127C9; Sat, 21 Jan 2006 16:57:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 28278127C9 for ; Sat, 21 Jan 2006 16:57:45 +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 02432-06 for ; Sat, 21 Jan 2006 16:57:44 +0100 (CET) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id F30D3127C4 for ; Sat, 21 Jan 2006 16:57:41 +0100 (CET) Original-Received: (qmail 11951 invoked from network); 21 Jan 2006 15:57:39 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (vit.zyka@62.240.166.134) by tic.go.seznam.cz with ESMTPA; 21 Jan 2006 15:57:39 -0000 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: <43CB64FE.109@elvenkind.com> X-Antivirus: avast! (VPS 0603-1, 16.01.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.5 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:25468 Archived-At: Taco Hoekwater wrote: > > Hi Vit, > > Vit Zyka wrote: > >> Hello Wizards, >> >> my multi page (and multicolumn) table exceeds the last page by 2 rows. >> Is there a way to make last column a bit longer? Here is a minimal >> example: > > > The underlying problem is that you have to enlarge the height of > page 2. I don't know how that is 'normally' done, but perhaps it > gives someone else a hint ? Answer to my own question: Question: Imagine a table (\bTABLE) spanning several pages. Moreover the table is inside multicolumn (\startcolumn). How to make some column longer (having more rows in some column)? (Column height is given by page height.) Solution: 1. Make page heigher (as high as the highest column) on every page where the table is: \setuplayout[lines=..] 2. Insert blank rows to appropriate table places to fill the columns: \dorecurse{..}{\bTR\bTD\strut\eTD\eTR} Remarks: 1. \adaptlayout{page}{height=+...} has limited capability of making page heigher (not overcomes footer) so \setuplayout is more flexible. 2. Forsing column break by \bTR[after=\column]\bTD...\eTD\eTR works but add some spurious space on the top of next column. I was not able to remove it even experimenting with my own \installcolumnbreakhandler {MUL} {forse} {...} and using \bTR[after={\columnbreak[forse]}]\bTD...\eTD\eTR Spurious space demonstration: -------------- \startbuffer[table] \bTABLE[split=yes] \dorecurse{20}{\bTR\bTD cell #1\eTD\eTR} \bTR[after={\columnbreak[yes]}]\bTD between \eTD\eTR \dorecurse{100}{\bTR\bTD cell #1\eTD\eTR} \eTABLE \stopbuffer \starttext \startcolumns \getbuffer[table] \stopcolumns \stoptext -------------- Vit