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.