I am trying to create an book for use on my Kindle. The text has mathematical inline formulas rendered as images and for the formulas to fit in well, the images need to scale with the text size. I got this to work for epub files, using tags like <img src="int.png" style="width: 20.35ex; height: 3.76ex; vertical-align: middle"/>
, but when I convert the epub file to mobi format, the image scaling breaks and the formulas come out the wrong size, looking for example like this oversized integral.
Is there a way to make my images scale proportional to the font size on a Kindle, either in a mobi file, or in any other format the kindle will display?
Updates:
- I am using Calibre to convert epub to mobi.
- The approach described above works with Amazon's
kindlegen
utility. Because of kindlegen's somewhat restrictive term's of use, I am still looking for a solution which works with Calibre.