Commanding Chaos for Coworking, Open Source and Creative Communities

Making an ePub book from LaTeX

Wed, 12/17/2014 - 12:59 -- rprice

TeX and LaTeX are well suited to producing electronically publishable documents. What is likely to be a continuing need is to translate LaTeX documents into standard electronic book format, notably ePub, which is the format adopted by most electronic reader publishers except the biggest one (you know who). 1  What is ePub? You don't really want to know what the ePub standard is. And you are not going to find out much here. In short, though, an ePub book is a XHTML1 version of the book packaged together with its figures and other resources into a zip file. It has a couple of files of metadata. One describes the contents of the zip file and the other is the table of contents of the book, giving navigation links to chapters and sections. Converting a LaTeX book to ePub is basically a two step process: (1) translate it to XHTML; (2) package up the XHTML into an ePub file. If you are to be satisfied with your ePub version, you need to realize the difference between logical mark-up and page layout. I suggest you consult my brief discussion Should I translate to HTML or not at http://hutchinson.belmont.ma.us/tth/shouldi.html. The ePub format is XHTML; so you don't have a choice.