Changes

Jump to navigation Jump to search
1,213 bytes added ,  11:44, 17 January 2015
Work in progress
{{todo|This page is meant to replace the current pages [[Epub]] and [[Epub_Sample]].}}

< [[XML]] | [[HTML]] | [[Epub|Old ePub docs]] | [[Epub_Sample|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 =

<texcode>
\setupbackend[export=yes]

\starttext
\input tufte
\stoptext
</texcode>

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>.

<texcode>
...
\startsection[title={A section}]

\startparagraph

\startitemize[packed,joinup]
\startitem \stopitem
\startitem \stopitem
\startitem \stopitem
\startitem \stopitem
\stopitemize

\stopparagraph

\startparagraph
\stopparagraph

\startparagraph
\stopparagraph

\stopsection
...
</texcode>

= Minimal useful example =

<texcode>
\setupbackend[export=yes]
\setupmainlanguage[en]

\starttext

\startparagraph
\input tufte
\stopparagraph

\stoptext
</texcode>

Navigation menu