ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Imposition and repeating pages
Date: Thu, 25 Aug 2011 19:19:13 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.02.1108251914120.4688@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <20110826011139.75cbf9da@marcin-desktop>

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{<whatever>\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
___________________________________________________________________________________


  reply	other threads:[~2011-08-25 23:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-25 22:40 Marcin Borkowski
2011-08-25 22:59 ` Aditya Mahajan
2011-08-25 23:11   ` Marcin Borkowski
2011-08-25 23:19     ` Aditya Mahajan [this message]
2011-08-26  4:55       ` Marcin Borkowski
2011-08-26  7:00         ` Aditya Mahajan
2011-08-26 11:20           ` Marcin Borkowski
2011-08-25 23:20 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.02.1108251914120.4688@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).