[tex4ht] Problem rendering operator name in HTML when using mathjax mode.

Nasser M. Abbasi nma at 12000.org
Mon Nov 19 01:26:08 CET 2018

I just found a new problem that I can't resolve.

I had to use


To correctly compile code in Latex generated by Maple.

I could not use \DeclareMathOperator{\LommelS1}{LommelS1}

since a number can't be at end of operator. I posted question
about this here


And the answer given is what I am using. So the following MWE
works fine in lualatex and pdf



  \LommelS1 x + \LommelS2 y

However, when compiled using make4ht with mathjax mode
it does not work. It gives this


I tried to do same Trick like Michal showed and changed my .cfg
to use

<script type="text/x-mathjax-config">
     TeX: {
       Macros: {
         sc : "\\small\\rm",
         sl: "\\it",
	LommelS1: "\\LommelS1 ",
	LommelS2: "\\LommelS2 "

Tried few other things above, but nothing is working.
I do not understand what mathjax wants me to type above.

There is no issue when compiling with SVG.

Is command such as \newcommand{\LommelS}[1]{\operatorname{LommelS#1}}
not supported in the translation to HTML using mathjax?

I used sthe ame command to compile this as I just showed in last email.
But for completion, here they are

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

Where nma_mathjax.cfg is


Any workaround with this issue?

Thank you

More information about the tex4ht mailing list