.epub files directly from OrgMode. This will export EPUB
version 2, which should give broad compatibility. It should also be
relatiely easy to convert the resulting
.epub to a
This depends on Emacs 24.3 and OrgMode 9, it won’t work on OrgMode 8 or any version of Emacs before 24.3.
You will also need a working version of the
If you have MELPA stable activated, it is as simple as this:
M-x package-install RET ox-epub RET
sample directory for a sample of what ox-epub can do.
C-c C-e E e to publish the current buffer to an EPUB.
There are some required export options that need to be set. These are
UIDa unique id of the document, otherwise known as uri, may be a url
DATEthe date of the document, for valid values see https://www.w3.org/TR/NOTE-datetime
AUTHORthe document author or editor, the creator in the EPUB spec
TITLEthe document title
Furthermore there are some properties which are optional:
Subjectthe subject matter of the book
Descriptiona description of the book
Publisherthe publisher of the book
Licensethe rights associated with this book, the copyright notice and further rights may be included in this option.
The only other option that is exported:
LANGUAGEthe language of the book, this is to be interpreted according to RFC3066 or it’s succeeding documents https://www.ietf.org/rfc/rfc3066.txt, no other interpretations are allowed according to the EPUB spec.
ox-epub can do the following:
- simple cover images
- inclusion of png and jpg images
- export of mathematical formulas
- add stylesheets to your liking: Use the EPUBSTYLE property to add a
list of stylesheets and customize
html-head-include-default-styleto toggle inclusion of the default stylesheet.
- Mathematical formulas only export well if you use the
dvipngshould be included in TeXlive.