On Wed, 28 Feb 2001 09:38:54 -0600 Paul E Johnson <[EMAIL PROTECTED]> wrote:
> I got this email from Ross Moore about the problem I had with my
> regression notes and latex2html. He sys LyX is not outputting proper
> TeX for my user-defined paragraph environment "myHangIndent". That
> specific point is about 2/3 of the way down, but I leave the rest for
> context. My part begins with >, the rest is from Ross Moore, who is
> answing bug reports for latex2html today.
>
>
> > I have a TeX document that latex2html cannot process, apparently
> because
> > it has this bit in the preamble:
> >
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
> > \newenvironment{HangIndent}
> > {\list{}{%
> > \setlength\leftmargin{1.5cm}% leftmargin
> > \itemindent-\leftmargin}\item{}}
> > {\endlist}
> > \newcommand\myHangIndent[1]{
> > \begin{HangIndent} #1
> > \end{HangIndent}
> > }
>
> The problem is that LaTeX2HTML wants you to give the definition as:
>
> \newcommand{\myHangIndent}[1]{... etc ...
>
> With that, everything processes smoothly;
> though it doesn't necessarily do the best possible translation.
> ...
I remember that I once read about \newcommand in a LaTeX textbook that its
arguments must not be spread across lines (may be this was a 2.09 feature
that got solved in 2e). I.e. LaTeX2HTML behaves as I would expect.
The same textbook offered a workaround using comment characters. One could do
\newcommand\myHangIndent[1]{%
\begin{HangIndent} #1%
\end{HangIndent}
as the % comments out everything until and including the EOL char.
Would this work with LaTeX2HTML?
guenter
--
[EMAIL PROTECTED]