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

Nasser M. Abbasi nma at 12000.org
Mon Sep 10 16:10:47 CEST 2018

I am trying to use make4ht with mathjax. As I find problems, will report them.

I found small problem.

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

Here is a MWE

y \left( x \right) ={x}^{2}+x+3\\ \relax%

Compiled with

make4ht -ulm draft -c ./nma_mathjax.cfg foo.tex "htm,0,charset=utf-8" " -cunihtf -utf8"

Where nma_mathjax.cfg is


The HTML looks like this:


Using mathjax-latex-4ht.sty downloaded from


Thank you,

More information about the tex4ht mailing list