title: Creating a box around a figure that includes the tabbing environment
body: <p>I would like to create a frame or box around my LaTeX figure, which consists of code formatted with the tabbing environment. My code looks something like this:</p>
  
  <pre><code>\begin{figure}
  \begin{tabbing}
  \texttt{void method(I, T, E)} \{ \\
  \ \ \texttt{some code}&lt;\emph{some pseudo code}&gt;();\\
  ...
  \end{tabbing}
  \caption{The caption for the figure}
  \end{figure}
  </code></pre>
  
  <p>I have tried using various box and frame commands, both within and without the figure, but LaTeX typically responds with "Something's wrong--perhaps a missing \item" or "Not in outer par mode". </p>
  
  <p>How can I create a box around the contents of my figure?</p>
  
  <p>Thanks!</p>