When processing a large document with latex2html containing many equations
and figures only four fail out of 783.  These all have the same problem with
the \mathbf operator.  Somehow it becomes \@mathbf.  I am using 98.2b8.
This problem does not arise in the hundreds of other instances of \mathbf.

In a large tex file the math fragment below occurs several times

        $\varphi_d(\mathbf{r})$

one of these becomes in images.tex

        {\newpage\clearpage
        % contents=$\varphi _d(\@mathbf {r})$
        \lthtmlinlinemathA{tex2html_wrap_inline12855}%
        $\varphi _d(\@mathbf {r})$%
        \lthtmlinlinemathZ
        \lthtmlcheckvsize\clearpage}

Of course, latex does not like this

        ! You can't use `\spacefactor' in math mode.
        \@->\spacefactor
                         \@m
        l.199 $\varphi _d(\@
                            mathbf {r})$%


The other problem seems to be made worse by the presence of
the \cos operator

        $\cos\theta_{\mathrm{exit}}$

becomes in images.tex

        {\newpage\clearpage
        % contents=$\mathop {\mathgroup \symoperators cos}\nolimits \theta
_{\@mathrm {e
        xit}}$
        \lthtmlinlinemathA{tex2html_wrap_inline12905}%
        $\mathop {\mathgroup \symoperators cos}\nolimits \theta _{\@mathrm
{exit}}$%
        \lthtmlinlinemathZ
        \lthtmlcheckvsize\clearpage}

which of course fails in latex as well.

Unfortunately, neither of these fails in a simple latex file

\documentclass{report}
\begin{document}
$\cos\theta_{\mathrm{exit}}$
\end{document}

So what should I do now?
____________________________________________________________
Scott Prahl                       http://omlc.ogi.edu/
Oregon Medical Laser Center       (503) 216-2197
9205 SW Barnes Rd                 (503) 216-2109 (secretary)
Portland OR 97225                 (503) 216-2422 (fax)

Reply via email to