[tex4ht] multiline equation displays blank when compiling tex4ht using mathjax mode.

Nasser M. Abbasi nma at 12000.org
Tue Dec 4 08:45:13 CET 2018


This MWE (which from auto-generated by Scientific word when asking it
to align one very wide equation on multiple lines, so
I have no control on avoiding using multline since that
is what SW choose to do it internally when it generates
the Latex code.

-------------------------------
\documentclass[12pt]{article}

\usepackage{amsmath}
\usepackage{graphicx}
\begin{document}

\begin{multline*}%just an example of long equation
A+\\
B=0
\end{multline*}

\end{document}
----------------------------

The above compiles OK in lualatex and in tex4ht using SVG for math,
but in mathjax mode the HTML is empty:

</body>
</html>

command used is

make4ht -ulm default  -c ./nma_mathjax.cfg foo.tex
    "htm,0,notoc*,p-width,charset=utf-8" " -cunihtf -utf8"

and nma_mathjax.cfg  is

------------------------
\RequirePackage{mathjax-latex-4ht}
\Preamble{xhtml}
\begin{document}
\EndPreamble
------------------------

I googled multiline and mathjax and can't decided if it supports it
or not so far.

If mathjax does not support multiline environment, is there a way
to configure this using mathjax-latex-4ht.sty somehow? any other
suggestions what to do?

TL 2018

Thanks
--Nasser


More information about the tex4ht mailing list