Changes

Jump to navigation Jump to search
679 bytes added ,  13:35, 17 January 2015
Fixed "useful example" WRT title settings, add source links
\setupbackend[export=yes]
\setupinteraction[state=start,
color=,contrastcolor=,
% This metadata is used for the PDF
title={My first eBook 1},
subtitle={},
keywords={},
author={Hans 1}
]
\setupexport[
hyphen=yes,
% This metadata is actually used for the ePub
% title, subtitle and author are taken from \setupinteraction, if not set title={My first eBook 12},
subtitle={},
author={Hans 12}
]
\settaggedmetadata[
% here you can set as many metadata entries as you like, but you need to process them yourself
title={My first eBook 23}, author={Hans 23},
subtitle={},
version={\date} % TODO: doesn’t expand
]
\setupinteraction[state=start,
color=,contrastcolor=,
% This metadata is used for the PDF
title={My first eBook 3},
subtitle={},
keywords={},
author={Hans 3}
]
* [[ePub_Images]]
* [[ePub_XML_Workflow]]
 
There’s an (outdated?) example of an export-friendly ConTeXt file in the sources: {{src|export-example.tex}}.
 
From {{src|http://source.contextgarden.net/tex/context/base/back-exp.mkiv}}, is this still current?
<texcode>
\setupexport
[align=\number\raggedstatus,
bodyfont=\bodyfontsize,
width=\textwidth,
title={\directinteractionparameter\c!title}, % from interaction
subtitle={\directinteractionparameter\c!subtitle}, % from interaction
author={\directinteractionparameter\c!author}, % from interaction
% firstpage=, % imagename
% lastpage=, % imagename
hyphen=no]
</texcode>

Navigation menu