Quote:
Originally Posted by nirosan
The plugin which I write is to render Latex math formulas notation into mathml. [...] Now I am searching for a python module for that.
|
plastex could potentially be a solution. It's written in Python, and does TeX -> HTML.
There's also these two answers on the LaTeX Stack Exchange that cover some other tools:
https://tex.stackexchange.com/questi...mathml-and-tex
https://tex.stackexchange.com/questi...and-approaches
(tex4ht converts LaTeX -> HTML, and very customizable.)
Quote:
Originally Posted by nirosan
Yes It is better to transfer mathml into svg and display.
|
You could use some of the above tools to LaTeX -> MathML, and then go MathML -> SVG+PNG.
Or I personally go LaTeX -> PDF -> SVG+PNG.
I wrote about that
most recently in this topic. (Also, if you check out the ebookcraft 2018 "Equations in Ebooks" slides, you may get some more methods/ideas too.)
If you're putting this book up for sale on the major retailers, you have to keep in mind the millions of older devices out there that can't read/render MathML, so you
must design these image fallbacks anyway. Can't rely on purely MathML, which is a shame.