title: LaTeX semiverbatim and fancyvrb
body: <p>I'm creating a presentation using the beamer LaTex package.  Beamer
  comes with an environment called "semiverbatim" which is like
  "verbatim", but allows you to place commands inside the environment.
  This is useful in beamer to control how the overlays of a frame
  unfold.  For example:</p>
  
  <pre><code>\begin{frame}[fragile, shrink]
    \frametitle{Some Code Sample}
  \begin{semiverbatim}
  private String foobar() \{
      String s = "val"
      \alert&lt;2-&gt;{s = null};}
      return s;
  \}
  \end{semiverbatim}
  \end{frame}
  </code></pre>
  
  <p>This will cause the third line to appear red in the second stage of
  the frame transition.</p>
  
  <p>This is all good and fine, however, the "semiverbatim" environment,
  much like the "verbatim" environment, is pretty limited.  I would like
  to use the "Verbatim" environment from the fancyvrb package.</p>
  
  <p>Is there anyway to use "Verbatim" in the same way "semiverbatim" is
  used?</p>