MobileRead Forums > E-Book Formats > ePub > Mathematics/MathML in EPUB PDA View Full Version : Mathematics/MathML in EPUB AprilHare02-15-2010, 05:01 AMIs anyone aware of a simple way to add mathematical formulae to EPUBs and expect them to be viewable on a liseuse, such as my firmware upgraded PRS-500? I've been looking around at methods used in HTML: 1) MathML is popular in websites, but liseuses cannot handle it. And MathML is a pain to typeset by hand. 2) There are LaTeX to MathML CSS sheets available, which allows for easier-to-typeset LaTeX to be used however then you have the MathML display problem. 3) I know that Wikipedia supports mathematical script (looks very much like LaTeX) and the on-the-fly generated output is images/SVG. This would be better for EPUB. Something like that would be practical methinks. 4) You can use a dedicated program, make every single equation an image, then plug them manually into a EPUB. Very inconvenient. Any ideas? I was thinking along the lines of a 'MathML to image' processor which can take advantage of LaTeX to MathML somehow. Not sure if SVG is an option, anyone tested it? Jellby02-15-2010, 07:02 AMWith the current state of affairs, I would go with the TeX -> image route, with a utility like tex2im (http://www.nought.de/tex2im.html). To make your life easier, you could include the TeX code in the HTML, either in an "alt" attribute or as a comment, and have a script automatically process all the needed formulas and generate the images. something like this: HTML file:

A nice identity: