[texhax] localising environments

Philip Taylor (Webmaster, Ret'd) P.Taylor at Rhul.Ac.Uk
Wed Nov 17 10:05:24 CET 2010



Vafa Khalighi wrote:

> I do not know why this does not work for verbatim:
>
> \eqenvironment{ورباتیم}{verbatim}

The Verbatim environment is very very special, Vafa, as
I'm sure you realise (it had to be, to accomplish what
it does).  It is almost certainly looking for a very
specific final delimiter, and will fail if that final
delimiter cannot be found.

Cf :

     \documentclass {article}
     \begin {document}
     \begin {abstract}
     \end {abstract}
     \begin {verbatim}
     \end {verbatim}
     \end {document}

Notice how the simple addition of one blank
space between \end and {verbatim} is sufficient
to cause it to throw exactly the same wobbly as
in your case, whereas for the Abstract environment
it causes no problems at all.

** Phil.


More information about the texhax mailing list