Beamer and verbatim environnement

Mon 04 November 2013

[caption id="" align="alignright" width="300"]English: Latex being collected from a rubber tree 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

Enhanced by Zemanta

Related articles (or not):

Category: tools Tagged: Beamer LaTeX Presentation Verbatim