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'm using pdfpages to insert a page from a pdf file into my Beamer presentation, but the result is a completely empty page. Here is smaller version of the file:

\documentclass{beamer}
\usepackage{epstopdf}
\usepackage{xypdf}
\usepackage{eso-pic} 
\usepackage{everyshi} 
\usepackage{beamerthemesplit}
\usepackage{pdfpages} 

\begin{document}
\includepdf[pages={61}]{IA_Residential_Full_FINAL.pdf}
\end{document}

Not sure if it matters, I'm using MikTeX with pdfLaTeX. I've searched the web and haven't been able to figure what I'm doing wrong.

share|improve this question
    
Thanks for the quick response, Martin. Using your code inserts the pdf page, but only the graphics on the page appear, the text is removed. I am having the same problem with my .eps files when I try to insert graphs. Any thoughts? –  user3692 Feb 18 '11 at 21:08
    
@SteveP: I was under the impression that you wanted only the PDF over the full slide without any text. You don't have any text in your example. I will update my example. –  Martin Scharrer Feb 18 '11 at 21:30
    
Also @SteveP: put an @ before my name so that I get a notification of the new comment. The first name is enough. –  Martin Scharrer Feb 18 '11 at 21:39
    
@Martin: Sorry, I'm not being clear. I do want only the pdf over the full slide. The pdf page I want to insert contains a graph with accompanying text (e.g. legend, etc.). This text is being stripped out of the pdf page when it is inserted into the latex-created pdf. Turns out it is a problem with my miktex installation, the text appears the first time I compile after starting miktex, but not after. Thanks! –  user3692 Feb 18 '11 at 22:06
    
@SteveP: Mmmm, funny. Maybe try to update or reinstall MikTeX and tell us if it's working then. –  Martin Scharrer Feb 18 '11 at 22:17

2 Answers 2

The beamer user guide (p.19) provides a solution:

Commands like \includepdf only work outside frames as they produce pages “by themselves.” You may also wish to say

\setbeamercolor{background canvas}{bg=}

when you use such a command since the background (even a white background) will otherwise be printed over the image you try to include.

So the code would be:

\documentclass{beamer}

\usepackage{pdfpages} 

\begin{document}
{
    \setbeamercolor{background canvas}{bg=}
    \includepdf[pages={61}]{IA_Residential_Full_FINAL.pdf}
}
\end{document}
share|improve this answer

Don't use pdfpages in beamer. AFAIK they are not compatible. Include the PDF page using \includegraphics from the graphicx package like shown below.

\documentclass{beamer}
%\usepackage{epstopdf}
%\usepackage{xypdf}
%\usepackage{eso-pic} 
%\usepackage{everyshi} 
\usepackage{beamerthemesplit}
\usepackage{graphicx} 

\begin{document}
\frame[plain]{\includegraphics[page=61,width=\textwidth]{yourfile.pdf}}
\end{document}

You should put all material inside a frame macro or environment. The plain option will remove most of the material like header and footer.


The above code is for PDF images spanning the full slide. If you simply want to insert an image on a normal slide with some text, then you should use it like this. Note that the width=.6\textwidth makes the image width 60% of the text width (the frame or page width minus margins). Simply adjust the factor to your wishes. There is also height and \textheight, but the latter includes the slide title and subtitle which makes finding the correct value a little more difficult.

\documentclass{beamer}
\usepackage{beamerthemesplit}
\usepackage{graphicx} 

\begin{document}
\begin{frame}{Title}{Subtitle}
      Some text before

      \includegraphics[page=61,width=.6\textwidth]{yourfile.pdf}

      some text afterwards
\end{frame}
\end{document}
share|improve this answer

Your Answer

 
discard

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