[texhax] localising environments

Uwe Lueck uwe.lueck at web.de
Wed Nov 17 09:43:27 CET 2010


"Vafa Khalighi" <vafakhlgh at gmail.com>, 17.11.2010 06:40:03:
> with
>
> \newcommand*{\eqenvironment}[2]{\newenvironment{#1}{\csname#2\endcsname}{\csname end#2\endcsname}}
>
> I can localise any kind of environment. For example, to localise abstract environment I can say,
>
> \eqenvironment{چکیده}{abstract}
> 
> but I do not know why this does not work for verbatim:
>
> \eqenvironment{ورباتیم}{verbatim}
> 
> gives the following error:
>
> Runaway argument?
> ^^M^^M\پایان{کلمه‌به‌کلمه}^^M\پایان{نوشتا\ETC.
> ! File ended while scanning use of \@xverbatim.
> <inserted text>
> \par
> <*> test.tex
>
> ?

use the verbatim package from the tools bundle -- 

HTH -- Uwe.


More information about the texhax mailing list