Typst Fumadocs

Document

Documentation for the `document` function.

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 not occur inside of any layout container.

Loading compiler...

Note that metadata set with this function is not rendered within the document. Instead, it is embedded in the compiled PDF file.

#document(
  title: none | content,
  author: str | array,
  description: none | content,
  keywords: str | array,
  date: none | auto | datetime
) -> content

Parameters

Prop

Type

On this page