[texhax] A simple question regarding verbatim and newenvironment

tom sgouros tomfool at as220.org
Tue Jan 4 15:04:17 CET 2005


> Re: [texhax] A simple question regarding verbatim and newenvironment 

On the contrary, there are no simple questions about verbatim.

 >On Tue, 4 Jan 2005 09:28:00 +0100, =?ISO-8859-1?Q?Ozan =D6ktem?= wrote:

> Why doesn't the following work:
> 	\newenvironment{newverbatim}{\begin{verbatim}}{\end{verbatim}}
> and how should one write instead?

verbatim suspends a bunch of the normal text processing rules in order
to do its work.  Others can perhaps add more detail, but that's enough
for me.

To see how to write instead, check out a package that uses it.  There
is a code.sty you can get from ctan, or a vcode.sty you can get from
me (its web address is down) that you can copy.  Others can perhaps
suggest other packages that will help.

-tom

 ------------------------
 tomfool at as220 dot org
 http://sgouros.com  
 http://whatcheer.net



More information about the texhax mailing list