<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
     xmlns:atom="http://www.w3.org/2005/Atom"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:wfw="http://wellformedweb.org/CommentAPI/"
     >
  <channel>
    <title>byronc bits</title>
    <link>http://byron.theclarkfamily.name/blog</link>
    <description>breaking old technology, one bit at a time</description>
    <pubDate>Fri, 04 Jun 2010 03:12:24 GMT</pubDate>
    <generator>Blogofile</generator>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Using the verbatim Environment and listings Package with Beamer</title>
      <link>http://byron.theclarkfamily.name/blog/2008/08/13/using-the-verbatim-environment-and-listings-package-with-beamer</link>
      <pubDate>Wed, 13 Aug 2008 22:11:25 MDT</pubDate>
      <category><![CDATA[LaTeX]]></category>
      <category><![CDATA[tips]]></category>
      <guid isPermaLink="true">http://byron.theclarkfamily.name/blog/2008/08/13/using-the-verbatim-environment-and-listings-package-with-beamer</guid>
      <description>Using the verbatim Environment and listings Package with Beamer</description>
      <content:encoded><![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="highlight"><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="highlight"><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:encoded>
    </item>
  </channel>
</rss>
