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 have several beamer tex files and need to create a manual (using beamerarticle) that incorporates all of the beamer files (with their notes) as one document. The original basis of the articlebeamer output can be found here: Displaying slides with Beamer and Article class

Right now I have the following:

  • chapter1.tex
  • chapter2.tex
  • chapter1.beamer.tex
  • chapter2.beamer.tex
  • full.article.tex

full.article.tex has something like this:

% BEGIN FULL.ARTICLE.TEX
\documentclass{article} 
\usepackage{beamerarticle}
\usepackage{pgf}

\setjobnamebeamerversion{chapter1.beamer}
\setjobnamebeamerversion{chapter2.beamer}

\newcommand{\showslide}[1]{
    \begin{figure}
        \center \fbox{\includeslide[width=10cm]{#1}}
    \end{figure}
}

\input{chapter1.tex}
\input{chapter2.tex}
% END FULL.ARTICLE.TEX

I already ran pdflatex on the *.beamer.tex files so the corresponding PDF outputs are in the same folder as the full.article.tex.

Running pdflatex full.article.tex, I get the following error:

!pdfTeX error: pdflatex (file ./chapter2.beamer.pdf): PDF inclusion: required page does not exist <8>

Would appreciate any help in figuring out what I'm doing wrong.

share|improve this question
    
Your given code snippet does not help so mutch because we can't see where the file chapter2.beame.pdf is called. If I understand you right, you have some presentations (pdf files) and want to bundle them to one single pdf file? –  Kurt Apr 3 '13 at 2:31
    
Hi Kurt! Yes. Forgot to mention that it's assumed the PDF files are already created and in the same directory as the rest of the files. –  Charo Apr 3 '13 at 2:46
add comment

1 Answer

If you have already prepared pdf files you can use the following MWE to collect them to one pdf file (full.article.tex):

\documentclass{minimal}

\usepackage{pdfpages} % http://www.ctan.org/pkg/pdfpages

\begin{document}
  \includepdf[pages=-]{chapter1.beamer.pdf}
  \includepdf[pages=-]{chapter2.beamer.pdf}
% \includepdf[pages=-]{chapter3.beamer.pdf}
\end{document}

With macro \includepdf you can include complete or pages of the named pdf file in your document. Document class minimal gives no margins so your included pdf files are unchanged.

share|improve this answer
    
I was thinking of that, but it would mean having to generate presentation (beamer) and handout (beamerarticle) PDF before being able to actually come up with a full "manual" based on the generated handouts. That's quite a lot of tex files to make. The other problem with this solution is that the page numbers restart for every new handout that's included in the resulting PDF. Would like to know if there's a much better solution out there. –  Charo Apr 3 '13 at 3:21
    
Usually you have only one tex file for your slides and the handout. I would only give away the handouts, not the slides (slides and handout should differ). If you need a running numbering, you can set the pagecounter (\setcounter{page}{35}) to the proper number before compiling. –  Kurt Apr 3 '13 at 3:34
    
Still a hassle. But I guess I'll have to go with that one until someone comes up with a much better solution. –  Charo Apr 3 '13 at 7:49
add comment

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.