61

Update 2012-02-11 : Since my question is quite old but very popular, I'd propose to reopen it. I'd like to know, if more options are available a year later.

I'd like to convert some university papers from LaTeX into ePub format - without using PDF as intermediate format. You know, PDF is page-oriented, while ePub is more flow-oriented.

While I found several hints, I failed to find a good 'standard' solution.

Could someone please propose the ideal way? One which keeps mathematical formulas render beautiful?

[Using TeXShop on Mac OS X]

SteAp
  • 11,853
  • 10
  • 53
  • 88
  • 7
    http://tex.stackexchange.com/ – Amir Rachum Sep 03 '10 at 11:20
  • I'm assuming you have an iPad. How about making LaTeX to compile to a pdf of a size optimized for iPad? – ustun Sep 15 '10 at 18:55
  • Now, I own an iPad. In fact, the iPad renders PDFs nicely. At the time I posted the question, I owned a Kindle - and Amazons PDF -> Kindle web service corrupted the PDF totally. Not even a single formula appear as it should. Thus, I asked. – SteAp May 15 '11 at 23:19
  • 6
    This question has received more complete answers at tex.sx: [Use LaTeX to produce Epub](http://tex.stackexchange.com/questions/1551/use-latex-to-produce-epub). – Charles Stewart Aug 23 '11 at 17:06

2 Answers2

23

Pandoc supports conversion from Latex to e-Pub. The chances are high that it doesn't handle your Latex documents completely, but it should help with the conversion process.

Pandoc has converted Tex formulae to Mathml; I don't know how good that conversion is since I haven't used it.

Charles Stewart
  • 11,661
  • 4
  • 46
  • 85
  • 3
    I've recently used Pandoc to create an ePub file from LaTeX sources (including lstlisting embedded source code), and the result is really, really good. – Adrian Kosmaczewski Mar 29 '11 at 21:28
11

You could generate the TeX output in HTML, and then use the Calibre tools to convert. Basically ePub is about being a container for HTML docs (just like CHM fwiw). As an alternative, consider BookGlutton and/or LyX

aldrinleal
  • 3,559
  • 26
  • 33