[OS X TeX] pdfpages

George Gratzer gratzer at ms.umanitoba.ca
Wed May 16 00:46:16 EDT 2007


Bruno,

\cleardoublepage

is not very well coded. In my book, I recommend that you use the  
package cleardoublepage.sty to fix it:

\let\cleardouble at page\cleardoublepage
\AtBeginDocument{%
   \ifx\cleardouble at page\cleardoublepage
     \def\cleardoublepage{\clearpage{\pagestyle{empty} 
\cleardouble at page}}
   \fi
}

GG



On May 15, 2007, at 11:14 PM, Bruno Voisin wrote:

> 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/
>
>
>


------------------------- 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