[OS X TeX] pdfpages

Bruno Voisin bvoisin at mac.com
Wed May 16 00:14:32 EDT 2007


Le 16 mai 07 à 04:03, Jan Anderssen a écrit :

>> I am using pdfpages to collate a large number of pdf files but I  
>> want each pdf file to start on an odd page so that when I print  
>> double-sided, each pdf will appear on a facing page.
>
> Maybe your .tex file is laid-out in a way that allows you to have a  
> script that reads the names of the files to be included from for  
> instance a directory, or a text file, and then writes the  
> appropriate \includepdf statements.
>
> If so, then you could determine the number of pages for each  
> included file via the pdfinfo command (xpdf suite), and include a  
> \clearpage (or \cleardoublepage, forgot which) after the odd  
> numbered papers.

Why not just put \cleardoublepage between every two consecutive  
\includepdf statements? In this way, and provided the [twoside]  
option is used in your \documentclass call (for example \documentclass 
[twoside]{article}), then each included PDF file will start on an odd  
page.

For example:

\documentclass[twoside]{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-]{pdffile1}
\cleardoublepage
\includepdf[pages=-]{pdffile2}
\cleardoublepage
\includepdf[pages=-]{pdffile3}
\end{document}

Bruno Voisin
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list