Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

PlasTeX is an implementation of LaTeX in Python, which supports custom rendering classes - you can provide a new class on the output end of the function which transforms something a little like DOM into XHTML or XML.

I'm thinking of using this to convert a series of novels which have been written in LaTeX into ePub.

It occurred to me that I might write a custom rendering engine to transform the book I have into all of the file-components of ePub, however it's likely that somebody else has already done this. Not wanting to re-invent the wheel, are you aware of any project (or possibly an undocumented feature of PlasTeX) which already does what I need?

A search of Google and the PlasTeX documentation suggests that I might have to actually write this thing! Please say it 'aint so!

ePub does not seem to be a particularly difficult format to master, however I am incredibly lazy and dislike repeating programming that other (possibly much better) developers have already done, so please point me in the right direction!

share|improve this question

2 Answers 2

Pubtex is still in beta, but is it targeted at exactly this kind of niche. If you are familiar with git, you can start using it immediately for LaTeX -> HTML conversion. Otherwise, contact me via address listed on the Pubtex homepage and I'll hook you up.

Disclaimer: I work for Pubtex.

share|improve this answer
    
Kevin, are you saying that PubTeX can already do what I want? I've begun writing my own PlasTeX renderer which I had planned to release via a Google Code project - but I probably will not bother if yours can do the trick. –  Salim Fadhley Apr 6 '11 at 11:08
    
Yes--we are working on a a LaTeX -> ePub converter. If you have a novel with simple formatting, I should be able to run it through for you pretty easily. We don't have any publicly available tools yet though, so you'll have to send me an email. –  Kevin L. Apr 6 '11 at 23:42
    
The domain is expired... Is this project dead? –  leonbloy Apr 8 '12 at 13:22

I just started to write a render for plasTex, but it is still a very preliminary version, you can find it here:

https://sourceforge.net/p/epubtex

Claudio

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.