Hi Erling, On Fri, 19 Dec 2003, Erling D. Andersen wrote:
> Hi > > The following simple document is not translated correctly by > latex2html. > > \documentclass{article} > > \newcommand{\idxbeg}{0} > > \begin{document} > > \[ > i=\idxbeg > \] > > \end{document} > > It should produce the output > > i=0 > > but produces > > i= Yep; that's a bug. Workarounds are easy: \newcommand{\idxbeg}{ 0} \newcommand{\idxbeg}{0 } \newcommand{\idxbeg}{{0}} all of these work and at least one should not upset normal LaTeX usage. A *proper* fix is to change one line in the latex2html script: Near the end of subroutine block: sub substitute_meta_cmds { change the line elsif ($this_cmd) { push(@pieces, $this_cmd) } to become elsif ($this_cmd ne "") { push(@pieces, $this_cmd) } or elsif (!($this_cmd eq "")) { push(@pieces, $this_cmd) } Now the conditional will also catch a string of '0'. > > See > > http://www.mosek.com/l2h/test.html > http://www.mosek.com/l2h/test.ps > http://www.mosek.com/l2h/test.tex Thanks for reporting this glitch. Happy New Year, Ross Moore > > Regards > > Erling > > > ************************************************************************* > MOSEK ApS > C/O Symbion Science Park > Fruebjergvej 3, Boks 16 > DK-2100 Copenhagen O > Denmark > > Phone (work): +45 3917 9907 > Mobile-phone: +45 2362 9520 > Fax: +45 3917 9823 > Email to phone: [EMAIL PROTECTED] > Email: [EMAIL PROTECTED] > Homepage: http://erling.andersen.name > http://www.mosek.com/homepages/e.d.andersen/ > > ************************************************************************* > > > **************************************************************************** > Denne mail er blevet scannet af http://www.virus112.com > **************************************************************************** > _______________________________________________ > latex2html mailing list > [EMAIL PROTECTED] > http://tug.org/mailman/listinfo/latex2html > _______________________________________________ latex2html mailing list [EMAIL PROTECTED] http://tug.org/mailman/listinfo/latex2html