MathML to LaTeX conversion

后端 未结 3 1583
慢半拍i
慢半拍i 2021-02-08 06:46

I\'m trying to figure out how to convert a MathML representation of a math equation and convert it to the LaTeX representation of that math equation. So for example...



        
相关标签:
3条回答
  • 2021-02-08 07:06

    Try http://www.tilman.de/programme/mathparser/anleitung_en.html - it's written in Java and the source is available.

    0 讨论(0)
  • 2021-02-08 07:10

    I had similar problem and mathparser provided in url from question wasn't working for me at all.

    I converted MathML to LaTeX by using XSLT MathML Library with Saxon-HE but since XSLT MathML library is pure XSLT any XSLT transformation tool should handle it. Output is not always perfect but it gave me better results than web-xslt mentioned somewhere at stackexchange network.

    Command line usage with saxon:

    saxon -o output.tex input.mml xsltml_2.1.2/mmltex.xsl
    
    0 讨论(0)
  • 2021-02-08 07:26

    What's wrong with XSLT, SAX parsers, or DOM parsers?

    Bindings for SAX and DOM parsers exist for all major languages (and pretty much every other language too). I would recommend DOM parsing using a functional language, but tastes differ.

    XSLT is a functional language designed for processing XML.

    0 讨论(0)
提交回复
热议问题