<?xml version="1.0" encoding="UTF-8"?>
<feed
  xmlns="http://www.w3.org/2005/Atom"
  xmlns:thr="http://purl.org/syndication/thread/1.0"
  xml:lang="en"
   >
  <title type="text">byronc bits</title>
  <subtitle type="text">breaking old technology, one bit at a time</subtitle>

  <updated>2012-01-11T04:59:47Z</updated>
  <generator uri="http://blogofile.com/">Blogofile</generator>

  <link rel="alternate" type="text/html" href="http://byron.theclarkfamily.name/blog" />
  <id>http://byron.theclarkfamily.name/blog/feed/atom/</id>
  <link rel="self" type="application/atom+xml" href="http://byron.theclarkfamily.name/blog/feed/atom/" />
  <entry>
    <author>
      <name></name>
      <uri>http://byron.theclarkfamily.name/blog</uri>
    </author>
    <title type="html"><![CDATA[Using the verbatim Environment and listings Package with Beamer]]></title>
    <link rel="alternate" type="text/html" href="http://byron.theclarkfamily.name/blog/2008/08/13/using-the-verbatim-environment-and-listings-package-with-beamer" />
    <id>http://byron.theclarkfamily.name/blog/2008/08/13/using-the-verbatim-environment-and-listings-package-with-beamer</id>
    <updated>2008-08-13T22:11:25Z</updated>
    <published>2008-08-13T22:11:25Z</published>
    <category scheme="http://byron.theclarkfamily.name/blog" term="LaTeX" />
    <category scheme="http://byron.theclarkfamily.name/blog" term="tips" />
    <summary type="html"><![CDATA[Using the verbatim Environment and listings Package with Beamer]]></summary>
    <content type="html" xml:base="http://byron.theclarkfamily.name/blog/2008/08/13/using-the-verbatim-environment-and-listings-package-with-beamer"><![CDATA[<p>I finally figured out how to make the <code>verbatim</code> environment work with Beamer. Beamer can't handle the following code:</p>
<div class="pygments_tomorrow-night"><pre><span class="k">\begin</span><span class="nb">{</span>frame<span class="nb">}{</span>A Title<span class="nb">}</span>
    <span class="k">\begin</span><span class="nb">{</span>verbatim<span class="nb">}</span>
    Don&#39;t mess with my text.
    <span class="k">\end</span><span class="nb">{</span>verbatim<span class="nb">}</span>
<span class="k">\end</span><span class="nb">{</span>frame<span class="nb">}</span>
</pre></div>

<p>To make it work, you need to include the fragile option for the frame.  Example:</p>
<div class="pygments_tomorrow-night"><pre><span class="k">\begin</span><span class="nb">{</span>frame<span class="nb">}</span>[fragile]<span class="nb">{</span>A Title<span class="nb">}</span>
    <span class="k">\begin</span><span class="nb">{</span>verbatim<span class="nb">}</span>
    Don&#39;t mess with my text.
    <span class="k">\end</span><span class="nb">{</span>verbatim<span class="nb">}</span>
<span class="k">\end</span><span class="nb">{</span>frame<span class="nb">}</span>
</pre></div>

<p>If you use the <code>listings</code> package, the same trick works for the <code>lstlistings</code> environment.</p>]]></content>
  </entry>
</feed>

