Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ofosos/ox-epub
Org mode epub export
https://github.com/ofosos/ox-epub
Last synced: 2 days ago
JSON representation
Org mode epub export
- Host: GitHub
- URL: https://github.com/ofosos/ox-epub
- Owner: ofosos
- License: gpl-3.0
- Created: 2017-02-25T23:46:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-12T02:05:13.000Z (about 2 years ago)
- Last Synced: 2024-08-02T16:44:28.383Z (3 months ago)
- Language: Emacs Lisp
- Size: 116 KB
- Stars: 89
- Watchers: 7
- Forks: 10
- Open Issues: 9
-
Metadata Files:
- Readme: README.org
- License: COPYING
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- my-awesome-github-stars - ofosos/ox-epub - Org mode epub export (Emacs Lisp)
README
[[https://travis-ci.org/ofosos/ox-epub.svg?branch=master]]
[[http://stable.melpa.org/packages/ox-epub-badge.svg]]* ox-epub
Generate =.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 =.mobi= (Kindle).** Prerequisites
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 =zip= utility.
** Installation
If you have MELPA stable activated, it is as simple as this:
=M-x package-install RET ox-epub RET=
** Usage
See the =sample= directory for a sample of what ox-epub can do.
Hit =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
- =UID= a unique id of the document, otherwise known as uri, may be a url
- =DATE= the date of the document, for valid values see
[[https://www.w3.org/TR/NOTE-datetime]]
- =AUTHOR= the document author or editor, the creator in the EPUB spec
- =TITLE= the document titleFurthermore there are some properties which are optional:
- =Subject= the subject matter of the book
- =Description= a description of the book
- =Publisher= the publisher of the book
- =License= the rights associated with this book, the copyright
notice and further rights may be included in this option.
- =EPUBCOVER= the cover image to use for the export
- =EPUBSTYLE= the CSS file to use for the export, this is set by default
but can be set on a per document basisThe only other option that is exported:
- =LANGUAGE= the 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.** Features
Currently =ox-epub= can do the following:
- simple cover images
- inclusion of png and jpg images
- export of mathematical formulas
- direct =.epub= generation
- add stylesheets to your liking: Use the EPUBSTYLE property to add a
list of stylesheets and customize =html-head-include-default-style=
to toggle inclusion of the default stylesheet.** Caveats
- Mathematical formulas only export well if you use the =dvipng=
backend. =dvipng= should be included in TeXlive.** Coffee
I very much like coffee, so if you want to contribute to my coffee fund,
you can now do that :)[[https://www.buymeacoffee.com/markZb][https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png]]