[l2h] Bug newcommand

Al Kabaila akabaila at pcug.org.au
Fri Jun 23 02:34:20 CEST 2006


Hi,
On Friday 23 June 2006 08:13, Patrick Massot wrote:

Forgive me for butting in.  My "knowledge" of LaTeX is very limited indeed.  
The "help" file of the LaTeX client that I use, "kile" (part of 
GNU/Linux-KDE) gives two forms of the "newcommand".  While this does not 
contradict the form that Patrick Massot has given, I thought it would be 
helpful for other LaTeX newcomers to  see the full version of the command:

\newcommand{cmd}[args]{definition}
 \newcommand{cmd}[args][default]{definition}

I am grateful to Patrick Massot for pointing out the possible trap for l2h 
users.

Kind regards,
Al.
> 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
> _______________________________________________
> latex2html mailing list
> latex2html at tug.org
> http://tug.org/mailman/listinfo/latex2html

-- 
Algis Kabaila akabaila[at]pcug[dot]org[dot]au
http://www.pcug.org.au/~akabaila


More information about the latex2html mailing list