I am creating pdf slides using rmarkdown and beamer. When using latex instead of rmarkdown, I can include arbitrary pages from pdf files into my slides with
\usepackage{pdfpages}
...
\includepdf[pages={1-10}]{another_file.pdf}
Is it possible to achieve this with rmarkdown? Note that when just issuing the \includepdf
command, intended to be located between slides, pandoc wraps it between \begin{frame}
and \end{frame}
.
In rmarkdown you can use pdfpages like this:
(the line
\setbeamercolor{background canvas}{bg=}
is necessary for beamer versions < 3.64, a patch has been added in 9e3bb9)