Mario Antonioletti wrote:
...
> > Please have a look:
> > > > That's really nasty, this subroutine does exist in latex2html.
> > > > 
> > > > I don't know an instant fix, perhaps you first try to place the line
> > > > package main;
> > > > 
> > > > in front of html3_2.pl.
> 
> Nope it did not work. Still led to the same problem:
> 
> ..,Undefined subroutine &main::do_cmd_theequation called at
> /usr/remote/epcc.ed.ac.uk/tmp/mario/latex2html/versions/html3_2.pl line
> 931.


Hi once again Mario,

another problem with \theequation may arise from redefining it, say like:

\renewcommand{\theequation}{\thesection.\arabic{equation}}


This causes LaTeX2HTML to define a new subroutine &do_cmd_theequation which
extincts the existing one that's already in the code.
BUT this is not seen by the Perl extension file html3_2.pl (which is loaded
into the main latex2html script earlier), resulting in exactly the error
you described above.

A remedy is to determine where \theequation is renewed, and to wrap that
line like this:

%begin{latexonly}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
%end{latexonly}

This probably affects the appearance of the equation images but at least you
get your document translated!


Some hints, from a friend far far away...
Ugh, before I forget it: Greetings to all l2h users !!!!!

Jens.



# Jens Lippmann                     [EMAIL PROTECTED]
#                                  http://www.informatik.tu-darmstadt.de/TI
#
# Technische Hochschule Darmstadt                http://www.tu-darmstadt.de

Reply via email to