Beamer fragile frames

If you want to include verbatim text, say for some program code, in a frame in beamer, you have to pass the fragile option to the frame, like so:

GeSHi Error: GeSHi could not find the language tex (using path /home/robfelty/robfelty.com/wp-content/plugins/codecolorer/lib/geshi/) (code 2)

Though latex usually doesn’t really care about whitespace at the beginning of a line, in this case it does. If you don’t have your begin and end frame statements at the beginning of a line when you are trying to use the fragile option, your document will not compile. It’s frustrating.

p.s. also note that you can’t use verbatim text with overlays in beamer.

This entry was posted in latex and tagged , . Bookmark the permalink.

2 Responses to Beamer fragile frames

1. Christoph Bartoschek says:

You should note that there is the semiverbatim environment which allows overlays.

2. Raoul Kessels says:

That note on the blank spaces was very useful.
Thanks a lot.