[tex4ht] Another problem compiling tex4ht to HTML using mathjax mode. Forbidden control sequence found while scanning use of \AltMathOne.
Nasser M. Abbasi
nma at 12000.org
Mon Oct 15 16:44:13 CEST 2018
On 10/15/2018 4:23 AM, Michal Hoftich wrote:
> 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:
>
> \documentclass[11pt]{article}%
> \usepackage{amsmath}
> \begin{document}
> \begin{tabular}[c]{|l|p{5.5in}|}\hline
> Orthogonality &{$\int_{0}^{1}x\ J_{p}\left( ax\right) \ J_{p}\left(
> bx\right) \ dx=\left\{
> \begin{array}[c]{ll}%
> 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
> \end{array}
> \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}%
> -J_{p+1}=2J_{p}^{\prime}$\\\hline
> \end{tabular}
>
> \end{document}
>
> If anybody know a better solution, I would be happy :)
>
> Best regards,
> Michal
>
Thanks Michal for looking at this. I've just changed the code
as you showed in the file I have, (there were more cases
like the one in the example above). So I added {} around all of them
and now it compiles ok with mathjax.
But what I do not understand, is that you say it is a tex parsing
issue. But why it only happen when using mathjax mode?
Thanks,
--Nasser
More information about the tex4ht
mailing list