[tex4ht] Another problem compiling tex4ht to HTML using mathjax mode. Forbidden control sequence found while scanning use of \AltMathOne.

Michal Hoftich michal.h21 at gmail.com
Mon Oct 15 11:23:55 CEST 2018

Hi Nasser,

> This code comes from auto-generated Latex code. But as I said
> above, it compiles OK, except when using mathjax. So it seems
> some conflict with may be the style file used or something
> mathjax does not like?

the issue is with & characters in your inline math. It is not
MathJax's fault, it is issue with TeX parsing. I don't know how to fix
that, playing with catcodes didn't help. Only solution I've found is
to use { } around the problematic math element (not every one, just
the problematic ones). So your example may look like this:

Orthogonality &{$\int_{0}^{1}x\ J_{p}\left(  ax\right)  \ J_{p}\left(
bx\right)  \ dx=\left\{
0 & if\ a\neq b\\
\frac{1}{2}J_{p+1}^{2}\left(  a\right)  =\frac{1}{2}J_{p-1}^{2}\left(
a\right)  =\frac{1}{2}J_{p}^{^{\prime}2}\left(  a\right)   & if\ a=b
\right.  \ a,b$} are zeros of $J_{p}$\\\hline
recursive formula & $\frac{d}{dx}\left[  x^{p}J_{p}\right]  =x^{p}J_{p-1}$,
\ \ $\frac{d}{dx}\left[  \frac{1}{x^{p}}J_{p}\right]  =-\frac{1}{x^{p}}%
J_{p+1},$ \ \ $J_{p-1}+J_{p+1}=\frac{2p}{x}J_{p},$ \ \ \ $J_{p-1}%


If anybody know a better solution, I would be happy :)

Best regards,

More information about the tex4ht mailing list