From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46903 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: 2NUP, spreading a table on 2 pages Date: Tue, 20 Jan 2009 17:09:28 +0100 Message-ID: References: <873afez8w0.fsf@zapata.tots-ns.net> <664354F6-09CF-4C86-AA56-2B76575CDBA0@gmail.com> <87hc3uxjp4.fsf@zapata.tots-ns.net> <87sknevw1y.fsf@zapata.tots-ns.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary=Apple-Mail-13-757498041 X-Trace: ger.gmane.org 1232468022 28352 80.91.229.12 (20 Jan 2009 16:13:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2009 16:13:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 20 17:14:54 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 1LPJDw-00055R-5R for gctc-ntg-context-518@m.gmane.org; Tue, 20 Jan 2009 17:13:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 028DF1FE31; Tue, 20 Jan 2009 17:11:47 +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 26409-01; Tue, 20 Jan 2009 17:10:29 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 204361FE13; Tue, 20 Jan 2009 17:10:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 29B641FE13 for ; Tue, 20 Jan 2009 17:10:27 +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 26351-01-3 for ; Tue, 20 Jan 2009 17:09:49 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id 6907B1FDFB for ; Tue, 20 Jan 2009 17:09:49 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0KG9mYX024622 for ; Tue, 20 Jan 2009 17:09:48 +0100 Original-Received: by fg-out-1718.google.com with SMTP id 19so1597198fgg.8 for ; Tue, 20 Jan 2009 08:09:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=xNVZXY4iHevxt26UteRsLCqmef7rTxlnQ+7ni5oVvjk=; b=bO/C5fVybOR79p69Vt69XuH9iInicfXRlwiriN63+O/hWMsa1VcOWvG9WsXVF7EL22 bZA8odjK1Uz+OqdowRVBsjegklvpjhXaz/wB3o6jHgvwG3HXuCYJHh+hNRdUGYQLC7l3 KahcFxt2UApa+Fd7uychYGx2UrbwiqxRAijBA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=q0F/TcW+LQTAvzPL4oyhX0kjzPvqSZfyRp2O/pc/IB8j2+mzO8vVYW54f84dugDyB+ +n3MTHxrKRITVpCSjAJK2UwAb1/NPAJlKp7lE+2qAPTZL67zuo8ugwbVu+tjfv6Asg4w KGhJe+ztTS1RW6fECAhohuAeDycRpTORp/QZc= Original-Received: by 10.86.92.7 with SMTP id p7mr3266286fgb.24.1232467788175; Tue, 20 Jan 2009 08:09:48 -0800 (PST) Original-Received: from ?10.40.176.12? (8.121.113.82.net.de.o2.com [82.113.121.8]) by mx.google.com with ESMTPS id 3sm5299945fge.47.2009.01.20.08.09.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 20 Jan 2009 08:09:47 -0800 (PST) In-Reply-To: <87sknevw1y.fsf@zapata.tots-ns.net> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.157; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 168134144 - c73680a91c4d X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:46903 Archived-At: --Apple-Mail-13-757498041 Content-Disposition: attachment; filename=booklet.tex Content-Type: application/octet-stream; x-mac-creator=48647261; x-unix-mode=0644; x-mac-type=2A2A2A2A; name="booklet.tex" Content-Transfer-Encoding: 7bit \setuppapersize[A5][A4] \setuparranging[2UP,rotated,doublesided] \setuplayout[margin=1cm,width=middle,height=middle,topspace=0cm,backspace=1.2cm] \setupcolors[state=start] \showframe \showgrid \definetwopasslist{tableoffset} \gettwopassdata{tableoffset} \iftwopassdatafound \definelayout[\number\numexpr\twopassdata+1\relax][header=\the\dimexpr\headerheight+2\lineheight\relax] \fi \gettwopassdata{tableoffset} \iftwopassdatafound \definelayout[\number\numexpr\twopassdata+1\relax][reset] \fi \setuplinetable[nx=2,width=.125\textwidth] \definehead[tablehead][section] \setuphead[tablehead][page=yes,before=,after=\blank] \starttext \dorecurse{5} {\section{Section #1} \dorecurse{2}{\input tufte\par}} \tablehead{List des membres} \lazysavetwopassdata{tableoffset}{1}{\pagenumber} \startlinetable \NC firstname \NC lastname \NC phone \NC mobile \NC postal code \NC city \NC address \NC\NR \NC John \NC Jonhsons \NC 0800/987654 \NC 0171/123456 \NC 12345 \NC New TeX \NC Meta street 12 \NC\NR \stoplinetable \lazysavetwopassdata{tableoffset}{2}{\pagenumber} \page \dorecurse{3} {\section{Section #1} \dorecurse{2}{\input tufte\par}} \stoptext --Apple-Mail-13-757498041 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Am 20.01.2009 um 16:25 schrieb Antoine Junod: > In fact my reply was a bit fast: in the example below the table is > split on pages 2 and 3. But the lines of the table are not > aligned. I'll dig the sources too see if it's possible to do that. But > if anyone has a solution, I'm interested :) You can solve it with twopassdata and a few wrapper macros to hide the underlying macros in your document. Take a look in my example how this can be done. You need the "arrange" key for texexec to let it work in imposition mode. Wolfgang --Apple-Mail-13-757498041 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --Apple-Mail-13-757498041--