document
ElementElement functions can be customized with set
and show
rules.
Element functions can be customized with
set
and show
rules.The root element of a document and its metadata.
All documents are automatically wrapped in a document
element. You cannot create a document element yourself. This function is only used with set rules to specify document metadata. Such a set rule must appear before any of the document's contents.
#set document(title: "Hello")
This has no visible output, but
embeds metadata into the PDF!

Note that metadata set with this function is not rendered within the document. Instead, it is embedded in the compiled PDF file.
ParametersParameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
title
none or strSettableSettable parameters can be customized for all following uses of the function with a set
rule.
none or str
SettableSettable parameters can be customized for all following uses of the function with a
set
rule.The document's title. This is often rendered as the title of the PDF viewer window.
Default: none
author
The document's authors.
Default: ()