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
kindlegenutility. Because of kindlegen's somewhat restrictive term's of use, I am still looking for a solution which works with Calibre.
exin the hope that the images rescale themselves whenever the user of the ebook reader changes the font size. The text in the images is meant to have the same size as the real text, for all font sizes. Is there a better way of achieving this? – jochen Sep 09 '16 at 22:20.mobiusing Calibre. – jochen Sep 17 '16 at 22:28