! Missing \endcsname inserted.
<to be read again>
\relax
l.54 \begin
{verbatim}
What am I doing wrong?
What is the correct way to place a verbatim block inside a minipage?
There is no problem inherent in placing a verbatim block inside a
minipage, so you should post a minimal example. Here is one for
reference:
\documentclass{minimal}
\begin{document}
\begin{minipage}{\textwidth}
\begin{verbatim}
#$%$#^%$V^T$%VTV^T$%
\end{verbatim}
\end{minipage}
\end{document}
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
UKTUG FAQ: <URL:http://www.tex.ac.uk/cgi-bin/texfaq2html>
I'm trying to place verbatim code inside an fcolorbox. Here is the
code snippet
\fcolorbox{DarkGray}{LightGray}{\begin{minipage}{\textwidth}
\begin{verbatim}
asdf asdf asdf
asdfasdfasd fasdf asdf
\end{verbatim}
\end{minipage}
}
This does not work. Why?