[l2h] Bug newcommand

Patrick Massot pmassot at ens-lyon.fr
Fri Jun 23 00:13:58 CEST 2006


Hi,

Here is something which may be considered as a LaTeX bug but
annoys only latex2html users.

The \newcommand LaTeX macro should be used as

\newcommand{\name}{contents}

but LaTeX tolerates 

\newcommand\name{contents}

which looks like TeX \def\name{contents} and works perfectly with
LaTeX but sends latex2html (Version 2002-2-1 (1.70)) completely off 
track.

I don't think this should be modified in latex2html but it could
be added as a remark in the troulbeshooting section of the
documentation together with a little sed script to patch LaTeX
files using this syntax. 

I have had a glance at the mailing-list archive and I think that
http://tug.org/mailman/htdig/latex2html/2001-February/001002.html
is connected to this problem.

Since I'm here, I wonder if latex2html developpers and users are
aware of the great impact of this tool  towards mathematics
accessibilty for blind people. Indeed, reading the output of
latex2html with lynx is an huge improvement upon reading the TeX
source since all the structure is linked and the <img>
environnement contain the TeX source as an alternate text. I
think this could be advertised more widely.

Patrick Massot


More information about the latex2html mailing list