[l2h] Commands inside \renewcommand

Ross MOORE Ross MOORE <ross@ics.mq.edu.au>
Thu, 1 Jul 1999 10:10:39 +1000 (EST)

> Using latex2html 98.2beta8 I have problems with placing commands
>     \newcommand{\Qualifiers}{{\sc Options}}    
>     \renewcommand{\Qualifiers}{{\sc Qualifiers}}
>     \begin{document}
>     \input{steve}
>     \end{document}
> steve.tex
> ---------
>     \Qualifiers
>     Cancels a breakpoint
> Incorrect part of simple.html
> -----------------------------
>     <P>
>     <P>
>     </SMALL><P>
> The problem disappears if I replace the \input{steve} command with the
> contents of steve.tex.  The problem occurs with some other
> commands in the place of \sc, like \tt.

You will most likely get better results if you use
\textsc{....} rather than \sc  and  \texttt{...} not \tt .

Then it is much easier for LaTeX2HTML to find the start and
finish of text chunks that need special wrapping.
Think in terms of the form of the required tags in HTML,
and their nesting rules. The closer your source conforms to
the desired output form, the less likely that LaTeX2HTML will
make mistakes in the translation.

Avoid using \renewcommand outside the document preamble,
unless that is absolutely necessary; and even then, try to
arrange it so that only plain text or simple macros are part
of the \renewed definition. Otherwise the translation can become
very complicated, and prone to errors due to the order in which
parts of the document are processed.

> Is there a patch for this?  Is this fixed in 99.1 or 99.2?

No patch for the code.
Patch your style, by using LaTeX commands, rather than TeX.

> Thanx for the help,

Hope this helps,

	Ross Moore