タイトルしたい(#title

1#set document(
2  title: [すごいタイトル]
3)
4
5#title()

#title()関数でドキュメントのメインタイトルを表示できます。 Typst v0.14.0で追加されました。

1#title[カスタムタイトル]

デフォルトはdocument.titleで指定したコンテンツになっています。 コンテンツ引数を使って、任意のタイトルに変更できます。

注釈

#titleは、ドキュメント全体のタイトルを表示する関数です。 ドキュメントの任意の箇所で複数回呼び出すことができますが、 ドキュメントの冒頭で1度だけ呼び出すのがセマンティック的に正しいと思います。

タイトルを太字にしたい

1#show title: it => {
2  set text(size: 1.5em, weight: "black")
3  [#it]
4}
1#show title: text.with(size: 1.5em, weight: "black")

タイトルを中央寄せしたい

1#show title: it => {
2  set align(center)
3  [#it]
4}
1#show title: align.with(center)

太字にして中央寄せしたい

1#show title: it => {
2  set text(size: 1.5em, weight: "black")
3  set align(center)
4  [#it]
5}
1#show title: text.with(size: 1.5em, weight: "black")
2#show title: align.with(center)

リファレンス