On 09/07/2025 12:09, Jacob S. Gordon wrote:
Before going into details, why might you prefer `MathML' for equations
in `HTML'?

Just a warning concerning corner cases: try

   $a_{b_c}$

Neither LaTeXML, nor katex, nor pandoc add "<mrow>", see
Fraga, Eric. Re: MathML and ODT export: inline possible?
Thu, 18 Apr 2024 15:51:44 +0000.
<https://list.orgmode.org/87zftq4qk0....@ucl.ac.uk>

Only MathJax does it. (To be precise, it was state a year ago, when I tried it.)

⁃ Processing is slow, i.e. a simple formula takes on the order of a
   few seconds for me.

I recall an issue with latexml when siunitx.sty is used, see

Max Nikulin. Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command.
Tue, 5 Mar 2024 19:01:16 +0700.
<https://list.orgmode.org/dfdb0777-2741-410a-ac8a-8593af357...@gmail.com>

"It seems --preload=siunitx.sty should be recommended any more for latexml:
    https://github.com/brucemiller/LaTeXML/issues/2268
    Problem width loading expl3-code.tex"

Since that time the bug has been closed as a duplicate
in favor or <https://github.com/brucemiller/LaTeXML/issues/2064>
"LaTeXML with current Fedora 38 beta LaTeX causes infinite (?) loop",
but the former one has a recipe that may be a workaround (I have not tested it).

When I tried latexml, for some reason it was excessively aggressive in respect to removing files from /tmp.

Generation of HTML or ODT with math is out of scope of my daily activity, so I am unaware what is considered as the best way to present math and how to properly export it. I just have seen some threads on this mailing list.

I believe that ox-html and ox-odt should share code used for MathML generation.

Reply via email to