[tex4ht] adding support for \relax to make4ht mathjax style?

Michal Hoftich michal.h21 at gmail.com
Mon Sep 10 19:18:36 CEST 2018


Hi Nasser,

> I found small problem.
>
> Auto generated latex code sometimes uses \relax, and this seems
> not to be supported by the mathjax make4ht style file.

this is a MathJax issue, tex4ht just passes the literal LaTeX math
input to the HTML and it is then up to MathJax how it proceeds it. In
this particular case, you can use the following config file to remove
the \relax command:

\RequirePackage{mathjax-latex-4ht}
\Preamble{xhtml}
\begin{document}
\Configure{@HEAD}{\HCode{\unexpanded{<script
type="text/x-mathjax-config"> MathJax.Hub.Config({
        TeX: {Macros : {  relax: "{}", }},
});</script>}}}
\EndPreamble

Best regards,
Michal


More information about the tex4ht mailing list