Beamer and verbatim environnement
Mon 04 November 2013
[caption id="" align="alignright" width="300"] Latex being collected from a rubber tree (Photo credit: Wikipedia)[/caption]
When I have a presentation to make, I use beamer. When using LaTeX, I have some personal custom environment that cannot be included directly into a beamer presentation. the problem is that beamer don't accept easily verbatim environment. To solve this problem, I suggest you use fragile option.
\begin{frame} %some content \begin{verbatim} some content \end{verbatim} \end{frame}
won't compile whereas
\begin{frame}[fragile] %some content \begin{verbatim} some content \end{verbatim} \end{frame}
will. Most of the time.
Wikibooks explain the use of the fragile/robust command and beamer frame options.
Related articles
- The LaTeX Companion ebook (tex.blogoverflow.com)
- LaTeX (wiki.archlinux.org)
- How do I create a new Beamer environment with a verbatim environment? (stackoverflow.com)
Category: tools Tagged: Beamer LaTeX Presentation Verbatim