[tex4ht] Is this a known problem with tex4ht mathjax mode? array inside table
Michal Hoftich
michal.h21 at gmail.com
Sun Sep 22 22:58:20 CEST 2019
Hi Nasser,
(/usr/local/texlive/2019/texmf-dist/tex/generic/tex4ht/html5.4ht)) (./foo1.aux)
> (/usr/local/texlive/2019/texmf-dist/tex/latex/lm/ot1lmtt.fd)
> Runaway argument?
> f\left ( x\right ) =\left \{ \begin {array}[c]{ccc} -1 \@endpbox \hskip \ETC.
> ! Forbidden control sequence found while scanning use of \AltMathOne.
> <inserted text>
> \par
> l.10 -1 &
> & -\pi\leq x\leq0\\
> ?
> ---
this seems to be a catcode issue. It is caused by the `&` characters
in array. This can be fixed by redefining catcode for the math and
resetting it back after. Try the following configuration file:
\Preamble{xhtml}
\def\HandleMathjaxCatcodes{\edef\RestoreMathjaxCatcodes{\catcode`\noexpand
\&=\the\catcode`\&}\catcode`\&=11}
\Configure{$}{\HandleMathjaxCatcodes}{\RestoreMathjaxCatcodes}{\expandafter\AltMathOne}
\Configure{()}{\HandleMathjaxCatcodes\catcode`\&=11\AltlMath}{\RestoreMathjaxCatcodes}
\Configure{[]}{\HandleMathjaxCatcodes\catcode`\&=11\AltlDisplay}{\RestoreMathjaxCatcodes}
\begin{document}
\EndPreamble
I will push the fix to the sources.
Best regards,
Michal
More information about the tex4ht
mailing list