3

With the mathjax option, make4ht fails to render the following:

\documentclass{article}

\usepackage{amsmath}

\begin{document}
\begin{gather}
    E=mc^2\\
    e^{i\pi}+1=0
\end{gather}
These equations are amazing.
\end{document}

I believe MathJax can handle the gather environment verbatim, but the mathjax option seems to try and fail to convert the equations into images.

Am I missing something obvious?

2
  • 1
    Is there a reason for not providing a doubl-backslash line-break directive after E=mc^2? (Aside: e=mc^2 looks just awful, especially when placed close to e^{i\pi} +1=0.)
    – Mico
    Commented Apr 7, 2021 at 5:04
  • lol I agree! The missing `\` was a typo, corrected now.
    – Rushi
    Commented Apr 7, 2021 at 16:12

1 Answer 1

4

The default TeX4ht configurations turn gather environment into pictures. This configuration file should fix that:

\Preamble{xhtml}
\ConfigureEnv{gather}{}{}{}{}
\begin{document}
\EndPreamble

Result:

enter image description here

I've fixed this issue in TeX4ht sources, so this configuration should be unnecessary soon, if you use TL 2021.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .