Changes

Jump to navigation Jump to search
911 bytes added ,  13:24, 9 August 2020
m
Text replacement - "</cmd>" to "}}"
{{todo|Beware, this doesn’t fit the current state of export files as of January 2015!}}
 
< [[Export]] | [[ePub|New ePub docs]] >
 
== Minimal example ==
<texcode>
\setupbackend[export=yes,xhtml=yes]
 
\mainlanguage[de]
\language[de]
\setupexport
== More information ==
ConTeXt has preliminary [http://en.wikipedia.org/wiki/EPUB epub] support starting from [[Context 2011.05.18 | current 2011.05.18]].Some problems were fixed end of August 2014, don’t use an older version!
'''Note:''' There is no support for graphics yet, that will be included in a later version.
 
'''There’s also a more extensive [[Epub Sample|example]].'''
== Export ==
To enable the export backend, depending on your needs, one of the following lines has to be included at the beginning of the document (before <{{cmd>|starttext</cmd>}}).
<texcode>
</texcode>
In this case the data will be injected just after the start of the chapter tag. So, if you want to have document level metadata, you need to put the set command before <{{cmd>|starttext</cmd>}}.
== Document styling ==
</tr>
</table>
 
== Latest news ==
 
(This section is to be integrated in the instructions above.)
 
Now
<texcode>
\setupbackend
[export=yes,
xhtml=yes,
css=export-example.css]
</texcode>
also exports an html file with all tags being 'div' and the default css has been adapted to support both. The default css still need some work because not all browsers handle these div expressions equally well. The idea is to have a decent looking default as template (one can always overload).
 
--Hans 27 August 2014
 
The problem with an invalid export.xml when using project structure is also fixed since 27 August 2014.

Navigation menu