Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to use the pdfpages package to include a PDF file called "supp.pdf". My code is:

\documentclass[10pt,prl,aps,showpacs,twocolumn,unsortedaddress]{revtex4-1}
\usepackage{hyperref}                                       
\usepackage{graphicx}               
\usepackage{subfigure}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{commath}
\usepackage{graphicx,bm}
\usepackage{epsfig}
\usepackage{verbatim}
\usepackage[usenames]{color}
\usepackage{pdfpages}

\begin{document}

*Text*

\newpage
\newpage
\includepdf[pages=-,scale=1]{supp.pdf}
\end{document}

But if I compile, the first two pages of supp.pdf overlap in the total file, that is, the two pages are printed on one page. Does anyone have an idea how to solve this?

share|improve this question
1  
Hello! You compile with pdflatex, right? –  yo' Feb 11 at 19:59
    
@tohecz Yes, indeed. –  Funzies Feb 11 at 20:03
    
What happens if you load the hyperref package last ? (It's currently being loaded first.) You probably don't need to load the epsfig package, and the graphicx package need only be loaded once, by the way. –  Mico Feb 11 at 20:13
    
@Mico I tried, but the pages still overlap. –  Funzies Feb 11 at 20:22
    
How large are the pages of the PDF you are including? I notice you are using scale=1 which suggests they don't match the pagesize of the document you are compiling. Also, how many pages are there? Do later pages work OK? Does the same thing happen with another PDF e.g. l2tabuen.pdf for example? (Don't ask me why that one. No idea.) –  cfr Feb 12 at 3:27

2 Answers 2

I was able to solve my problem artificially by writing

\includepdf[pages={1,{},2-5}]{supp.pdf}

The "{}" means I insert an empty page by hand. I still think it's weird that Latex doesn't do this correctly on its own, but this method works.

share|improve this answer

even simpler \includepdf[pages={{},-}]{supp.pdf}

share|improve this answer
    
Providing a full minimal working example or explaining a bit more about how this answer solves the problem would be great. Also, a tip: you can mark inline code with backticks (`), as I did in my edit. You can also mark code blocks by starting a line with four spaces. Welcome to TeX.SX! –  Adam Liter Feb 16 at 23:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.