Difference between revisions of "ePub"
Jump to navigation
Jump to search
m (fix src link) |
(Moved most of the content to page Export) |
||
Line 1: | Line 1: | ||
{{todo|This page is work in progress and an update to the current pages [[Epub]] and [[Epub_Sample]].}} | {{todo|This page is work in progress and an update to the current pages [[Epub]] and [[Epub_Sample]].}} | ||
− | < [[XML]] | [[ | + | < [[XML]] | [[Export]] | [[Epub|Old ePub docs]] | [[Epub_Sample|Old ePub Sample]] > |
− | + | The ePub facilities of ConTeXt are based on its [[Export]] of XML/XHTML. Make sure you get useful export output from your project before you try ePub. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= Minimal ePub = | = Minimal ePub = | ||
− | If you run {{code|1=mtxrun --script epub --make minimal}} | + | If you already ran ConTeXt on your project and got the file structure as described in [[Export]], you can run {{code|1=mtxrun --script epub --make minimal}} to get a structure like: |
<pre> | <pre> | ||
Line 151: | Line 35: | ||
* ncx: table of contents | * ncx: table of contents | ||
− | + | = TODO = | |
− | |||
− | = | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Write about | |
− | + | * Cover | |
− | + | * ToC | |
− | + | * Readers | |
− | + | * Styling | |
− | + | * Images | |
− | + | * Better workflow | |
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 14:06, 17 January 2015
TODO: This page is work in progress and an update to the current pages Epub and Epub_Sample. (See: To-Do List) |
< XML | Export | Old ePub docs | Old ePub Sample >
The ePub facilities of ConTeXt are based on its Export of XML/XHTML. Make sure you get useful export output from your project before you try ePub.
Minimal ePub
If you already ran ConTeXt on your project and got the file structure as described in Export, you can run mtxrun --script epub --make minimal
to get a structure like:
minimal.epub minimal-epub ├── META-INF │ └── container.xml ├── OEBPS │ ├── cover.xhtml │ ├── images │ ├── minimal-div.xhtml │ ├── minimal.opf │ ├── nav.xhtml │ ├── styles │ │ ├── minimal-defaults.css │ │ ├── minimal-images.css │ │ └── minimal-styles.css │ └── toc.ncx └── mimetype
- epub: The epub file is just a zipped version of the directory structure.
- mimetype: contains only "
application/epub+zip
" - container.xml points to the root file "minimal.opf"
- cover.xhtml is the cover image shown by ePub readers
- opf: list of all resources, this keeps the "book" together. See also [OPF specs].
- ncx: table of contents
TODO
Write about
- Cover
- ToC
- Readers
- Styling
- Images
- Better workflow