23.6.11

How insert a PDF page into a Beamer presentation


Don't use pdfpages in beamer, 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 thewidth=.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}

No hay comentarios:

Publicar un comentario