Does anyone know how to add frame around alltt section. I need to use alltt because I'm using math expressions.
In the listing without math expressions I use Verbatim like this:
Code: Select all
\usepackage{listing}
...
\begin{listing}
\begin{Verbatim}[resetmargins=true, frame=single]
Somn text without math
\end{Verbatim}
\caption{Caption 1}
\label{lst:Caption1}
\end{listing}
Code: Select all
\usepackage{listing}
...
\begin{listing}
\begin{alltt}
Somn text with math
\end{alltt}
\caption{Caption 1}
\label{lst:Caption1}
\end{listing}
Goran