Skip to main content
Glama
document.md1.35 kB
# Document ## `document` 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]($styling/#set-rules) to specify document metadata. Such a set rule must not occur inside of any layout container. ```example #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. ## Parameters ### title The document's title. This is often rendered as the title of the PDF viewer window. While this can be arbitrary content, PDF viewers only support plain text titles, so the conversion might be lossy. ### author The document's authors. ### description The document's description. ### keywords The document's keywords. ### date The document's creation date. If this is `{auto}` (default), Typst uses the current date and time. Setting it to `{none}` prevents Typst from embedding any creation date into the PDF metadata. The year component must be at least zero in order to be embedded into a PDF. If you want to create byte-by-byte reproducible PDFs, set this to something other than `{auto}`. ## Returns - content

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FujishigeTemma/typst-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server