ePub
Jump to navigation
Jump to search
TODO: This page is meant to replace the current pages Epub and Epub_Sample. (See: To-Do List) |
< XML | HTML | Old ePub docs | Old ePub Sample >
Beware, these ePub/HTML facilities of ConTeXt work only with MkIV since some version in December 2014 and require additional work on your source code!
Minimal example
\setupbackend[export=yes] \starttext \input tufte \stoptext
If you compile this, you get ...
Required structuring
The export contains usable content only for content that is "well structured" in an XML sense. That means, you need to mark everything, from markup spans over paragraphs and enumeration items to chapters and parts with <tex>start...</tex> <tex>stop...</tex>.
... \startsection[title={A section}] \startparagraph \startitemize[packed,joinup] \startitem \stopitem \startitem \stopitem \startitem \stopitem \startitem \stopitem \stopitemize \stopparagraph \startparagraph \stopparagraph \startparagraph \stopparagraph \stopsection ...
Minimal useful example
\setupbackend[export=yes] \setupmainlanguage[en] \starttext \startparagraph \input tufte \stopparagraph \stoptext