Let us assume that we have the following example code for an article
\documentclass{article}
\title{Sample title}
\author{Sample author}
\date{}
\begin{document}
\maketitle
\section{Sample section}
\end{document}
I wish to include the output of the above code as a minipage
in my beamer frame. How can I do that? I would prefer a vector output rather than a PNG / JPG screenshot.
Best Answer
The easiest would be to create a separate document that contains the article content and include it as an image. Here's an example:
If you want to include a specific page from
article.pdf
, use the key-valuepage=<num>
to include page<num>
fromarticle.pdf
. You could also frame the page by using insteadNote that code is stored in a box using
fancyvrb
and recalled inside theframe
. Since you're dealing withbeamer
containing verbatim-like content, set theframe
properties to[fragile]
.