Difference between revisions of "Command/setupdocument"

From Wiki
Jump to navigation Jump to search
Line 13: Line 13:
 
     <cd:assignmentsdoc></cd:assignmentsdoc>
 
     <cd:assignmentsdoc></cd:assignmentsdoc>
 
     <cd:parameter name="before">
 
     <cd:parameter name="before">
       <cd:paramdoc>Command to run before the text. Default: <code>\directsetup{document:start}</code></cd:paramdoc>
+
       <cd:paramdoc></cd:paramdoc>
 
       <cd:constant type="cd:command"></cd:constant>
 
       <cd:constant type="cd:command"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="after">
 
     <cd:parameter name="after">
       <cd:paramdoc>Command to run after the text. Default: <code>\directsetup{document:stop}</code></cd:paramdoc>
+
       <cd:paramdoc></cd:paramdoc>
 
       <cd:constant type="cd:command"></cd:constant>
 
       <cd:constant type="cd:command"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="metadata:author">
 
     <cd:parameter name="metadata:author">
       <cd:paramdoc>Value for the PDF metadata /Author field</cd:paramdoc>
+
       <cd:paramdoc></cd:paramdoc>
 
       <cd:constant type="cd:text"></cd:constant>
 
       <cd:constant type="cd:text"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="metadata:title">
 
     <cd:parameter name="metadata:title">
       <cd:paramdoc>Value for the PDF metadata /Title field</cd:paramdoc>
+
       <cd:paramdoc></cd:paramdoc>
 
       <cd:constant type="cd:text"></cd:constant>
 
       <cd:constant type="cd:text"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="metadata:subject">
 
     <cd:parameter name="metadata:subject">
       <cd:paramdoc>Value for the PDF metadata /Subject field</cd:paramdoc>
+
       <cd:paramdoc></cd:paramdoc>
 
       <cd:constant type="cd:text"></cd:constant>
 
       <cd:constant type="cd:text"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="metadata:keywords">
 
     <cd:parameter name="metadata:keywords">
       <cd:paramdoc>Value for the PDF metadata /Keywords field</cd:paramdoc>
+
       <cd:paramdoc></cd:paramdoc>
 
       <cd:constant type="cd:text"></cd:constant>
 
       <cd:constant type="cd:text"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="cd:key">
 
     <cd:parameter name="cd:key">
       <cd:paramdoc>Any user-supplied key</cd:paramdoc>
+
       <cd:paramdoc></cd:paramdoc>
 
       <cd:constant type="cd:value"></cd:constant>
 
       <cd:constant type="cd:value"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>

Revision as of 14:56, 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

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: