Dan Young wrote:
>The following document excerpt is accepted by latex but bombs in l2h:
>
> \documentclass{report}
> \begin{document}
>
> \chardef\backslash=`\\
>
> \begin{itemize}
> \item[{\tt \backslash}]
> Backslash is the escape character
> \end{itemize}
>
> \end{document}
>
>% latex2html demo.tex
>This is LaTeX2HTML Version 98.1p1 release (March 2nd, 1998)
> [...]
>Unknown commands: < chardef
>Done.
Sure, because \chardef is not part of LaTeX --- it is part of TeX .
LaTeX2HTML is an alternative interpreter for LaTeX syntax,
different from the TeX interpreter of LaTeX.
To get what you seem to want, use LaTeX syntax; e.g.
\newcommand{\bslash}{\symbol{92}}
see p.116 or 226 of Lamport's blue book.
BTW, \backslash is already defined in LaTeX, (p.43 or 47, blue book)
at least within mathematics. So you would need:
\renewcommand{\backslash}{\symbol{92}}
but I'd advise against using the same name.
LaTeX2HTML is very particular about the distinction between \newcommand
and \renewcommand . The results of these *meta*-commands are quite
different for the internal processing done by LaTeX2HTML.
Hope this helps,
Ross Moore
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ross Moore email: [EMAIL PROTECTED]
Mathematics Department phone: +612 9850 8955
Macquarie University fax: +612 9850 8114
Sydney, NSW 2109 office: E7A-419
Australia WWW: http://www-math.mpce.mq.edu.au/~ross/
***************************
for the best in (La)TeX-nical typesetting and Web page production
join the TeX Users Group (TUG) --- browse at http://www.tug.org
<[EMAIL PROTECTED]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~