[texhax] Splitting 2-up pages

Joel C. Salomon joelcsalomon at gmail.com
Tue Feb 26 20:10:19 CET 2019


On Mon, Feb 25, 2019 at 10:47 AM Philip Taylor <P.Taylor at rhul.ac.uk> wrote:

> Maybe something along the lines of the following (replace "100" by the
> maximum page number)
>
> \documentclass{minimal}
>
> \usepackage[papersize={5.5in,8.5in}, margin=0pt, ignoreall]{geometry}
>
> \setlength{\parindent}{0pt}
>
> \usepackage{graphicx}
>
> \begin{document}
>
> \count 254 = 1
>
> \loop
>
>   \includegraphics[viewport= 0 0 396 612, page=\count 254]{two-up.pdf}
>
>   \includegraphics[viewport= 396 0 792 612, page=\count 254]{two-up.pdf}
>
> \ifnum \count 254 < 100 %%% maximum page number
>
>    \advance \count 254 by 1
>
> \repeat
>
> \end{document}
>

That (starting from 1 not 0 and only including each page once) worked
beautifully; thanks.

—Joel C. Salomon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20190226/4484ba84/attachment.html>


More information about the texhax mailing list