Convert LaTeX to ePub [closed]

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]


Solution 1:

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.

Solution 2:

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