[OS X TeX] Verbatim mode question...

Piet van Oostrum piet at cs.uu.nl
Tue Jun 18 06:33:24 EDT 2002



>>>>> Dave McCollum <mccollum at colorado.edu> (DM) writes:

DM> Perchance, would anyone happen to know how to format a piece of verbatim
DM> text within, say, the \caption{} command in the figure environment?

Look at the fancyvrb package. It has a command \SaveVerb to save a piece
of verbatim text and \UseVerb to use it. You would do the \SaveVerb
outside of the caption and \UseVerb inside it. This is for short pieces of
verbatim text, like what you use in \berb.
There is also \SaveVerbatim and \UseVerbatim for multiline pieces, like
the verbatim environment.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl


-----------------------------------------------------------------
Threaded list archives can be found at:
<http://www.masda.vxu.se/~pku/MacOSX_TeX/>
-----------------------------------------------------------------
To UNSUBSCRIBE, send email to <info at email.esm.psu.edu> with
"unsubscribe macosx-tex" (no quotes) in the body.
For additional HELP, send email to <info at email.esm.psu.edu> with
"help" (no quotes) in the body.
-----------------------------------------------------------------




More information about the MacOSX-TeX mailing list