> 
> 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.
 
Can't be certain, but I'd guess that these are occurring within
captions for figures or tables, or section-headings.

Look inside the .toc and .aux files.
Does \@mathbf occur there ?

If so, find the \caption  or sectioning command,
and use  \protect\mathbf at these places.

Then rerun LaTeX to fix the auxiliary files.
Now LaTeX2HTML should work correctly for this document.


> 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}
> 

> 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}
 
This expansion of \cos  --> \mathop {\mathgroup \symoperators cos}\nolimits

was done by LaTeX, not by LaTeX2HTML.

It can get into LaTeX2HTML only by the \write mechanism, putting information
into .toc, .lof .aux or similar files.

Same fix:  use  \protect\cos  at that point.
Rerun LaTeX, then rerun LaTeX2HTML.


> 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?

No, because this doesn't involve any auxiliary files.


Hope this helps,

        Ross Moore

Reply via email to