From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70877 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Imposition and repeating pages Date: Thu, 25 Aug 2011 19:19:13 -0400 (EDT) Message-ID: References: <20110826004041.0e16efe4@marcin-desktop> <20110826011139.75cbf9da@marcin-desktop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1314314351 30529 80.91.229.12 (25 Aug 2011 23:19:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Aug 2011 23:19:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 26 01:19:07 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QwjCT-0000jj-P5 for gctc-ntg-context-518@m.gmane.org; Fri, 26 Aug 2011 01:19:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 41DA7CAF1C; Fri, 26 Aug 2011 01:19:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FOqr5FKzfqR7; Fri, 26 Aug 2011 01:19:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96446CAF19; Fri, 26 Aug 2011 01:19:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57BACCAECE for ; Fri, 26 Aug 2011 01:18:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DMyEgGTrWgEg for ; Fri, 26 Aug 2011 01:18:54 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 5C72ECAF10 for ; Fri, 26 Aug 2011 01:18:51 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p7PNInmx028646 for ; Fri, 26 Aug 2011 01:18:50 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682341.dsl.bell.ca [65.94.11.101]) By tombraider.mr.itd.umich.edu ID 4E56D857.CF863.14330 ; Authuser adityam; 25 Aug 2011 19:18:47 EDT In-Reply-To: <20110826011139.75cbf9da@marcin-desktop> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0xFoLiNFr - fb04f41655a4 - 20110826 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:70877 Archived-At: On Fri, 26 Aug 2011, Marcin Borkowski wrote: >>> 2. I'd like to prepare a cheat sheet of size, say, A6, so I want >>> *the same page* to be repeated 4 times on an A4 sheet. Is there a >>> "canonical" way to do it? (I mean, other than copying-and-pasting, >>> or equivalently, defining a macro and repeating it 4 times?) >> >> You can write a macro that reads a pdf file and outputs each of its >> page four times. For example (untested): >> >> \getfiguredimensions[file]% >> \edef\NOfpages{\noffigurepages}% >> \dorecurse{\NOfpages} >> {\dorecurse{4} >> {\startTEXpage >> \externalfigure[file][page=\recurselevel]% >> \stopTEXpage}} >> >> and then do the arranging. > > Thanks - but this is exactly what I do *not* want to do. My first idea > was to do something like > > \def\onepageworthofmaterial{\page} > \dorecurse{4}{\onepageworthofmaterial} > > which is similar, but simpler. You will need to tweak the output routine for that. See the definition of \dofinaloutput and \dopagebody. But that can be tricky. Aditya Fools rush in where angels fear to tread. ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________