bell notificationshomepageloginedit profileclubsdmBox

10.02% popularity   0 Reactions

I have so far tried using Pandoc to convert Markdown text containing LaTeX math to ePub with MathML. This works, but the resulting math displays quite horribly compared to what the corresponding math looks like when generating PDF from LaTeX. For example, upper and lower limits of an integral do not align well.
I have tried using Calibre too and here it is actually possible to convert the math to MathJax-viewable format, but it seems I cannot rely on other ebook readers to be able to use MathJax. Besides, this only worked when converting from HTML, not Markdown.

Update: @karsten -w's answer made me think more about embedding the maths as graphics. I found out that ePub seems to support SVG, at least ePub from v. 3.0 according to what I stumbled across. So for example, I can generate the math SVG from LaTeX using www.tlhiv.org/ltxpreview/ (see tex.stackexchange.com/questions/103282/convert-latex-to-svg-online). I can then easily embed the SVG in Markdown and convert to ePub using Pandoc.

Now I would just like a smoother workflow that can take me directly from LaTeX with maths or Markdown with LaTeX maths to ePub with embedded SVGs...


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (2)

Login to follow story

More posts by @Amanda

2 Comments

Sorted by latest first Latest Oldest Best

 

@Gail

10% popularity   0 Reactions

I believe that tex4ebook auto-converts from LaTeX to ePub using SVG for math. Looks a little complicated to set up, though. (I haven't tried it personally.)


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (0)

10% popularity   0 Reactions

For my ebook experiment, I use PNG, via Formula Sheet.


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (0)

 

Back to top