Development build 586e1bd4
Typst文档简体中文版v0.15.1 + dev 586e1bd4

title元素
Question mark
0.14.0起可用Go to source

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, ...

参数
Question mark

title(autocontent) → content

body
auto or content
位置参数
Question mark
可用set规则
Question mark
默认值:auto

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: [..]).

Expand展开示例
#set document(title: [Course ABC, Homework 1]) #title[Homework 1] ...