Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unable to place a verbatim block inside a minipage

361 views
Skip to first unread message

Debajit Adhikary

unread,
Mar 16, 2007, 9:30:17 PM3/16/07
to
I'd like to place a verbatim environment inside a minipage, but I get
an error saying


! 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?

David Kastrup

unread,
Mar 17, 2007, 2:16:46 AM3/17/07
to
"Debajit Adhikary" <deba...@gmail.com> writes:

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>

Debajit Adhikary

unread,
Mar 24, 2007, 12:22:41 AM3/24/07
to
On Mar 17, 2:16 am, David Kastrup <d...@gnu.org> wrote:

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?

0 new messages