Changes

Jump to navigation Jump to search
2,578 bytes added ,  14:26, 6 September 2020
Created page with "Documentation for \setupdocument"
<cd:commandgroup name="setupdocument" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\setupdocument</tt> is used for configuring {{cmd|startdocument}}.
</cd:shortdesc>
<cd:variants>
<cd:command category="structure" file="file-job.mkvi" interfacedate="2020-06-19T13:41" interfacefile="i-document.xml" level="style" name="setupdocument" variantnumber="1">
<cd:arguments>
<cd:assignments list="yes" ordinal="1">
<cd:assignmentsdoc></cd:assignmentsdoc>
<cd:parameter name="before">
<cd:paramdoc>Command to run before the text. Default: <code>\directsetup{document:start}</code></cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="after">
<cd:paramdoc>Command to run after the text. Default: <code>\directsetup{document:stop}</code></cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="metadata:author">
<cd:paramdoc>Value for the PDF metadata /Author field</cd:paramdoc>
<cd:constant type="cd:text"></cd:constant>
</cd:parameter>
<cd:parameter name="metadata:title">
<cd:paramdoc>Value for the PDF metadata /Title field</cd:paramdoc>
<cd:constant type="cd:text"></cd:constant>
</cd:parameter>
<cd:parameter name="metadata:subject">
<cd:paramdoc>Value for the PDF metadata /Subject field</cd:paramdoc>
<cd:constant type="cd:text"></cd:constant>
</cd:parameter>
<cd:parameter name="metadata:keywords">
<cd:paramdoc>Value for the PDF metadata /Keywords field</cd:paramdoc>
<cd:constant type="cd:text"></cd:constant>
</cd:parameter>
<cd:parameter name="cd:key">
<cd:paramdoc>Any user-supplied key</cd:paramdoc>
<cd:constant type="cd:value"></cd:constant>
</cd:parameter>
</cd:assignments>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>With {{cmd|setupdocument}} you can preset values to be used by {{cmd|startdocument}}. Any argument passed to {{cmd|setupdocument}} can be queried later with {{cmd|documentvariable}}.

See {{cmd|startdocument}} for an example.
</cd:description>
<cd:examples></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="file-job.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
<cd:commandref name="startdocument"></cd:commandref>
<cd:commandref name="documentvariable"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu