Difference between revisions of "Command/setupdocument"

From Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<cd:shortdesc><!-- a short command summary goes here -->
 
<cd:shortdesc><!-- a short command summary goes here -->
 
The command <tt>\setupdocument</tt> is used for configuring {{cmd|startdocument}}.
 
The command <tt>\setupdocument</tt> is used for configuring {{cmd|startdocument}}.
 +
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:variants>
 
<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:command category="structure" file="file-job.mkvi" interfacedate="2021-03-02T11:08" interfacefile="i-document.xml" level="style" name="setupdocument" variantnumber="1">
 
   <cd:arguments>
 
   <cd:arguments>
     <cd:assignments list="yes" ordinal="1">
+
    <cd:keywords list="yes" optional="yes" ordinal="1">
 +
    <cd:keywordsdoc></cd:keywordsdoc>
 +
    <cd:constant type="cd:name"></cd:constant>
 +
    </cd:keywords>
 +
     <cd:assignments list="yes" ordinal="2">
 
     <cd:assignmentsdoc></cd:assignmentsdoc>
 
     <cd:assignmentsdoc></cd:assignmentsdoc>
 
     <cd:parameter name="before">
 
     <cd:parameter name="before">
Line 47: Line 52:
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>
 +
<cd:commandref name="definedocument" originator="system"></cd:commandref>
 
<cd:source file="file-job.mkvi" originator="system"></cd:source>
 
<cd:source file="file-job.mkvi" originator="system"></cd:source>
 
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
 
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>

Latest revision as of 15:00, 28 October 2021


\setupdocument

Summary

The command \setupdocument is used for configuring \startdocument.


Settings

\setupdocument[...,...][...=...,...]
[...,...]name
beforecommand
aftercommand
metadata:authortext
metadata:titletext
metadata:subjecttext
metadata:keywordstext
keyvalue

OptionExplanation
before
Command to run before the text. Default: \directsetup{document:start}
after
Command to run after the text. Default: \directsetup{document:stop}
metadata:author
Value for the PDF metadata /Author field
metadata:title
Value for the PDF metadata /Title field
metadata:subject
Value for the PDF metadata /Subject field
metadata:keywords
Value for the PDF metadata /Keywords field
cd:key
Any user-supplied key

Description

With \setupdocument you can preset values to be used by \startdocument. Any argument passed to \setupdocument can be queried later with \documentvariable.

See \startdocument for an example.

Examples

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: