Difference between revisions of "Command/setupdocument"

From Wiki
Jump to navigation Jump to search
(Undo revision 32570 by Massifr (talk): Undo revision 32570 by Massifr (talk))
Tag: Undo
 
Line 45: Line 45:
 
</cd:description>
 
</cd:description>
 
<cd:examples></cd:examples>
 
<cd:examples></cd:examples>
<cd:notes>
+
<cd:notes></cd:notes>
<cd:note author="Massifr" date="2021-06-10T16:08:28+0200">
 
 
 
<tt>\setupdocument</tt> doesn&squo;t work when it&squo;s inside a <tt>\startmode ... \stopmode</tt> or a <tt>\startnotmode ... \stopnotmode</tt> block.
 
 
 
</cd:note></cd:notes>
 
 
<cd:seealso>
 
<cd:seealso>
 
<cd:source file="file-job.mkvi" originator="system"></cd:source>
 
<cd:source file="file-job.mkvi" originator="system"></cd:source>

Latest revision as of 14:46, 10 June 2021


\setupdocument

Summary

The command \setupdocument is used for configuring \startdocument.

Settings

\setupdocument[...=...,...]
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: