View Single Post
Old 01-19-2019, 11:44 AM   #9
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by nirosan View Post
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 View Post
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.

Last edited by Tex2002ans; 01-19-2019 at 11:48 AM.
Tex2002ans is offline   Reply With Quote