I have a problem too when I convert my document into HTML... The
mathematical characters appear as latex commands...
R
----- Original Message -----
From: "Paul E Johnson" <[EMAIL PROTECTED]>
To: "LyX Users" <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 9:38 AM
Subject: Latex2html author says it is LyX's fault.


> 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.
>
> e.g. have a look at:
>
>    http://www-texdev.mpce.mq.edu.au/PJOHNSON/multRegNotes1/
>
>
> Besides, LaTeX2HTML wrote a huge error message into the log-window,
> saying that:
>
> %%%%%%,,, *** Could not find argument for command \newcommand ***
>
> viz:
>
> Loading /usr/local/lib/latex2html/styles/inputenc.perl
> Loading /usr/local/lib/latex2html/styles/babel.perl
> Loading /usr/local/lib/latex2html/versions/lang.pl
> Loading /usr/local/lib/latex2html/styles/graphics.perl
> Reading ...
> %%%%%%,,, *** Could not find argument for command \newcommand ***
> \myHangIndent[1]<<309>>
>      \begin<<13>>HangIndent<<13>> #1
>      \end<<14>>HangIndent<<14>>
>      <<309>>
> \par
>
>
>
> > If that bit is in the preamble, then the processing of math breaks,
> and
> > equations get written to image files with format "hatb" instead of
> a hat
> > over a b.
>
> This doesn't happen for me.
> It may be something left over from the other error though,
> since almost the whole file was scanned looking for the { after
> \newcommand .
>
> I'll look at programming to lessen the severity of this "error".
>
>
> > I have the document in this directory:
> > http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1
> > The file is "multRegNotes1.tex"
> > I also have the lyx file from which it was exported and the 2 eps
> > figures are in the same directory.
>
> Does LyX export as  \newcommand\myHangIndent  or was that yourself ?
>
> You should complain to LyX for not doing  \newcommand{\myHangIndent}
> which is more in keeping with LaTeX style, although both work with
> a TeX engine.
>
>
> > If I leave in the hangindent TeX above, the equations are ugly, and
> I've
> > put just one example of an ugly one in that directory too:
> > http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1/img16.png
>
> All the \ characters are lost.
> This is typical when balance of environment delimiters gets badly
> out-of-whack somehow.
>
>
>
> > If I delete the HangIndent from the Tex preamble and remove its one
> > usage, then latex2html is able to process the file without trouble.
> >
> > I get this same result with latex2html 99.2 or 99.3, but one other
> user
> > in the lyx user group showed me his version 96 worked fine on
> Solaris.
> >
> > If you can tell me what I did wrong, I'd appreciate it.
>
>
> The above should help you to get the file processed satisfactorily.
>
>         Ross Moore
> --
> Paul E. Johnson                       email: [EMAIL PROTECTED]
> Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
> University of Kansas                  Office: (785) 864-9086
> Lawrence, Kansas 66045                FAX: (785) 864-5700

Reply via email to