Skip to content

Commit 7e990d1

Browse files
committed
feat: use title element for displaying the document title
The title element is first added in typst 0.14.0. See https://typst.app/docs/reference/model/title/ for more information.
1 parent 6191889 commit 7e990d1

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

undergradmath.typ

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,10 @@
9090
#show: rest => columns(2, rest)
9191

9292
// Title
93-
#align(
94-
center,
95-
link("https://github.com/johanvx/typst-undergradmath")[
96-
#text(large, headcolor)[*Typst Math for Undergrads*]
97-
],
98-
)
93+
#show title: set align(center)
94+
#show title: set text(large, headcolor)
95+
#show title: it => link("https://github.com/johanvx/typst-undergradmath")[#it]
96+
#title()
9997

10098
// Put this here to avoid affecting the title
10199
#show link: underline

0 commit comments

Comments
 (0)