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}.
As you mentioned, you can inlcude raw TeX in Pandoc Markdown. For me the following works:
which results in:
Maybe you need to update your pandoc version? (I'm currenlty using 2.0 from pandoc nightlies)