Difference between revisions of "Command/setupdocument"
< Command
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=" | + | <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=" | + | <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
Contents
\setupdocument
Summary
The command \setupdocument is used for configuring \startdocument.
Settings
\setupdocument[...,...][...=...,...] | |
[...,...] | name |
before | command |
after | command |
metadata:author | text |
metadata:title | text |
metadata:subject | text |
metadata:keywords | text |
key | value |
Option | Explanation | ||
---|---|---|---|
before |
| ||
after |
| ||
metadata:author |
| ||
metadata:title |
| ||
metadata:subject |
| ||
metadata:keywords |
| ||
cd: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.