Add subtitle to Typst template (#9747)

This commit is contained in:
Mickaël Canouil
2024-05-12 18:39:27 +02:00
committed by GitHub
parent 12de77958f
commit fef5f2d94c
3 changed files with 13 additions and 0 deletions
+3
View File
@@ -24,6 +24,9 @@ $endif$
$if(title)$
title: [$title$],
$endif$
$if(subtitle)$
subtitle: [$subtitle$],
$endif$
$if(author)$
authors: (
$for(author)$
+5
View File
@@ -1,5 +1,6 @@
#let conf(
title: none,
subtitle: none,
authors: (),
keywords: (),
date: none,
@@ -34,6 +35,10 @@
if title != none {
align(center)[#block(inset: 2em)[
#text(weight: "bold", size: 1.5em)[#title]
#(if subtitle != none {
parbreak()
text(weight: "bold", size: 1.25em)[#subtitle]
})
]]
}
+5
View File
@@ -22,6 +22,7 @@
#let conf(
title: none,
subtitle: none,
authors: (),
keywords: (),
date: none,
@@ -56,6 +57,10 @@
if title != none {
align(center)[#block(inset: 2em)[
#text(weight: "bold", size: 1.5em)[#title]
#(if subtitle != none {
parbreak()
text(weight: "bold", size: 1.25em)[#subtitle]
})
]]
}