Question: MathML-to-LaTeX tools?

Hi everyone,

This message is addressed both to the MathWG members, as well as other
interested readers on the list, who may be familiar with existing MathML
tooling.

As a result of some recent discussions, I am looking into creating a large
list of manually curated snippets of MathML Core, annotated with the new
MathML Intent attributes. I am also hoping to auto-generate a LaTeX
equivalent from each of those MathML entries.

My question is: are you aware of well-maintained tools for converting
MathML to LaTeX, (as well as other _authoring_ formats, such as AsciiMath)?
It would probably be easier for me to fork and modify an existing project
than to write one from scratch.

The ones I have encountered while searching are actually a bit too
numerous, and some libraries may be republished clones of others with minor
modifications. In no particular order my current list contains:

- npm: mathml-to-latex,
  https://www.npmjs.com/package/mathml-to-latex
- npm: @qtikit/mathml-to-latex
  https://www.npmjs.com/package/@qtikit/mathml-to-latex
- npm: mathml-to-latex-adm
  https://www.npmjs.com/package/mathml-to-latex-adm
- npm: mathml2latex
   https://www.npmjs.com/package/mathml2latex
- npm: mathml2latex_dx
  https://www.npmjs.com/package/mathml2latex_dx
- npm: convert-mathml-to-latex
  https://www.npmjs.com/package/convert-mathml-to-latex
- npm: mml2tex
  https://www.npmjs.com/package/mml2tex
- npm: mathml-to-asciimath
  https://www.npmjs.com/package/mathml-to-asciimath
- TeX: xmltex
  https://www.ctan.org/pkg/xmltex
- xslt: pmml2tex
  https://github.com/davidcarlisle/web-xslt/tree/main/pmml2tex
- xslt: convert "MathML 2" to latex
  https://sourceforge.net/projects/xsltml/
- xslt: mathconverter

https://github.com/oerpub/mathconverter#mathml-to-latex-xslts-available-in-this-repo
- xslt: mml2tex
  https://github.com/transpect/mml2tex
- haskell: texmath
   https://hackage.haskell.org/package/texmath
- java: MathParser
   http://www.tilman.de/programme/mathparser/download_en.html
- rust: none that I could find.

I would appreciate any feedback on:
1. Are there other tools I missed?
2. Which ones are known to be well-maintained? Which ones are abandoned?
3. Is there an obvious choice (or a handful) of off-the-shelf components
one can directly use today in a client-side Javascript application?

Also, maybe we can collect the actively developed/mature ones and add a new
subsection for this kind of conversion to the W3C page on "Math Tools" here:
https://www.w3.org/wiki/Math_Tools

Greetings,
Deyan

Received on Tuesday, 18 October 2022 17:27:08 UTC