Difference between revisions of "Command/setupdocument"

From Wiki
Jump to navigation Jump to search
 
Line 12: Line 12:
 
     </cd:keywords>
 
     </cd:keywords>
 
     <cd:assignments list="yes" ordinal="2">
 
     <cd:assignments list="yes" ordinal="2">
    <cd:assignmentsdoc></cd:assignmentsdoc>
 
    <cd:parameter name="before">
 
      <cd:paramdoc></cd:paramdoc>
 
      <cd:constant type="cd:command"></cd:constant>
 
    </cd:parameter>
 
    <cd:parameter name="after">
 
      <cd:paramdoc></cd:paramdoc>
 
      <cd:constant type="cd:command"></cd:constant>
 
    </cd:parameter>
 
    <cd:parameter name="metadata:author">
 
      <cd:paramdoc></cd:paramdoc>
 
      <cd:constant type="cd:text"></cd:constant>
 
    </cd:parameter>
 
    <cd:parameter name="metadata:title">
 
      <cd:paramdoc></cd:paramdoc>
 
      <cd:constant type="cd:text"></cd:constant>
 
    </cd:parameter>
 
    <cd:parameter name="metadata:subject">
 
      <cd:paramdoc></cd:paramdoc>
 
      <cd:constant type="cd:text"></cd:constant>
 
    </cd:parameter>
 
    <cd:parameter name="metadata:keywords">
 
      <cd:paramdoc></cd:paramdoc>
 
      <cd:constant type="cd:text"></cd:constant>
 
    </cd:parameter>
 
    <cd:parameter name="cd:key">
 
      <cd:paramdoc></cd:paramdoc>
 
      <cd:constant type="cd:value"></cd:constant>
 
    </cd:parameter>
 
    </cd:assignments>
 
  <!--previously present arguments (merge 2021-10-28T16:28):
 
<cd:arguments>
 
    <cd:assignments list="yes" ordinal="1">
 
 
     <cd:assignmentsdoc></cd:assignmentsdoc>
 
     <cd:assignmentsdoc></cd:assignmentsdoc>
 
     <cd:parameter name="before">
 
     <cd:parameter name="before">
Line 76: Line 43:
 
     </cd:assignments>
 
     </cd:assignments>
 
   </cd:arguments>
 
   </cd:arguments>
--></cd:arguments>
 
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>

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: