Info
This site is generated using the static site generator developed by the Typst Community. Please adjust the text content of this banner according to your usage requirements. At Typst GmbH's request, when publishing documentation, you must clearly indicate that it is non-official and display the version of Typst being documented. For details, refer to Issue #874 on typst/typst.
TypstDocumentEnglish
v0.dev.2025-09-12

title
Element
Element
Element functions can be customized with set and show rules.

A document title.

This should be used to display the main title of the whole document and should occur only once per document. In contrast, level 1 headings are intended to be used for the top-level sections of the document.

Note that additional frontmatter (like an author list) that should appear together with the title does not belong in its body.

In HTML export, this shows as a h1 element while level 1 headings show as h2 elements.

Example

#set document(
  title: [Interstellar Mail Delivery]
)

#title()

= Introduction
In recent years, ...
Preview

Parameter
Parameter
Parameters are input values for functions. Specify them in parentheses after the function name.

body
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

The content of the title.

When omitted (or auto), this will default to document.title. In this case, a document title must have been previously set with set document(title: [..]).

Default value:

auto

Show example
#set document(title: "Course ABC, Homework 1")
#title[Homework 1]

...
Preview
Open official docs

Search