[l2h] problems with renewenvironment

Gregor Goldbach 7goldbac@informatik.uni-hamburg.de
Fri, 18 Jan 2002 12:31:00 +0100


Hi there,

I have interesting problems when redefining environments. latex2html
won't convert the following small document:

--- 8< ---

\documentclass{article}
\usepackage{graphicx}

\newcommand{\cmda}[1]{bla #1}
\newcommand{\cmdb}[1]{\emph{#1}}
\newenvironment{enva}{\renewcommand{\cmda}{\cmdb}}{}

\begin{document}

\begin{enva}
asdf \cmdb{asdf}
\end{enva}

asfdf
\includegraphics[]{test.eps}
asdf

\end{document}

--- 8< ---

It stops at the image conversion and mumbles about a missing '}':

--- 8< ---

...

\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
))
Runaway argument?
{\renewcommand {\bla }{\emph {}{} \par \usepackage [dvips]{color} \par \ETC.
! File ended while scanning use of \@newenv.
<inserted text> 
                \par 
<*> ./images.tex
                
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.

! Emergency stop.
<*> ./images.tex
                
*** (job aborted, no legal \end found)

 
Here is how much of TeX's memory you used:
...
--- 8< ---

I'm running LaTeX2HTML Version 99.2beta8 (1.43) on SuSE Linux 7.3.

Any ideas why this is happening?

Thanks for your help,
  Gregor