What's the best way to include some code snippets in a beamer presentation?
I've already tried verbatim
, and lstlisting
environments - both destroyed my presentation.
Beamer is a powerful and flexible LaTeX class to create great looking presentations. This article outlines the basis steps to making a Beamer slideshow: creating the title page, adding a logo, highlighting important points, making a table of contents and adding effects to the slideshow.
Use the [fragile]
option:
\begin{frame}[fragile]
\begin{verbatim}
...
\end{verbatim}
\end{frame}
I recently used something like
\verbatiminput{blah.c}
in a beamer presentation, and it worked alright for me...
Wanna post your code?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With