[texhax] Re: Verbatim in footnotes

Michael Barr mbarr at math.mcgill.ca
Tue Feb 22 01:08:57 CET 2005


I had this exact problem just a few weeks ago.  The Latex Companion said 
that \verbatim could be used inside an \environment, so I did the 
following:

\documentclass{article}
\newenvironment{Footnote}{\footnote\bgroup}{\egroup}
\begin{document}
This is a test%
 \begin{Footnote}%
 \begin{verbatim}
This is a test
 \end{verbatim}
 \end{Footnote}
\end{document}  

What I had inside the verbatim was more complicated but it worked too.



More information about the texhax mailing list