[tex4ht] another strange error when using make4ht with mathjax mode
Nasser M. Abbasi
nma at 12000.org
Fri Oct 26 15:19:31 CEST 2018
Hello;
This MWE only fails to compile when using make4ht in mathjax mode.
It is snippet from old code. May be not well written. But
this used to compile OK and still compiles OK when not using
mathjax mode in make4ht.
--------------------------------
\documentclass[11pt]{article}
\usepackage{amsmath,mathtools,amssymb}
\begin{document}
\begin{tabular}[c]{|l|l|}\hline
$
\begin{tabular}[c]{l}%
$i\in C(J)$\\
$j\notin C(J)$
\end{tabular}
$ & $f_{ij}=0$\\\hline
\end{tabular}
\end{document}
------------------------------------
Now when I compile it with mathjax, it gives this error
-------------------------------------
(/usr/local/texlive/2018/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/usr/local/texlive/2018/texmf-dist/tex/latex/lm/ot1lmtt.fd)
! Missing $ inserted.
<inserted text>
$
l.10 $j\notin
C(J)$
? x
----------------------------------
command used
make4ht -ulm default -c ./nma_mathjax.cfg foo.tex
"htm,0,notoc*,p-width,charset=utf-8" " -cunihtf -utf8"
Where nma_mathjax.cfg is
--------------------
\RequirePackage{mathjax-latex-4ht}
\Preamble{xhtml}
\begin{document}
\EndPreamble
-------------
And mathjax-latex-4ht.sty is
https://github.com/michal-h21/helpers4ht/blob/master/mathjax-latex-4ht.sty
Why does it fail only in mathjax mode? It compiles OK in lulatex,
and svg.
TL 2018 on Linux.
Thank you,
---Nasser
More information about the tex4ht
mailing list