Hello,
I got serveral answer to that question, and it seems that there's no way
to do it.
The correct answer it to use \newenvironment.
Because \begin{verbatim} is handled a very special way by latex and cant
be the argument of a command in any way.
Yannick
_/ Yannick Patois \_________________ Address (home) __________________
| irc(undernet): Garp on #france25+ | La Villa des Sciences |
| email : [EMAIL PROTECTED] | 14, avenue de Cambridge |
| web :http://www.sura.org/~patois/ | 14200 Herouville-Saint-Clair |
| Tel(home) :+33 02 31 94 50 32 | FRANCE |
|___________________________________|__________________________________|
On Thu, 12 Nov 1998, Mamoun Alissali wrote:
> Date: Thu, 12 Nov 1998 13:55:37 +0000
> From: Mamoun Alissali <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: latex2html: \verbatim and newcommand
>
>
> I tried your example on my machine. In the error message LaTeX seems
> to insert
> a space when replacing the argument of \ytest like this: \end
> {verbatim}, which
> makes it not recognize \end{verbatim} any more (there *must* be no space
> for this special environment). I tried a few other things but didn't
> find
> a solution, sorry!
>
> I have another problem with LaTeX2HTML: special characters, such as
> '$' seem
> to be handled *before* verbatim which is a source of trouble when I
> include
> Unix scripts with $s for variable references. Is there a way to handle
> this?
>
> --
> Mamoun ALISSALI
> LIUM Tel: (33-2) -02-43 83 38 47
> UNIVERSITE DU MAINE Fax: (33-2) -02-43 83 38 68
> Avenue Olivier Messiaen E-mail: [EMAIL PROTECTED]
> 72085 LE MANS CEDEX 9 http://www-ic2.univ-lemans.fr/~alissali
>