mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 01:41:20 +08:00
Add subtitle to Typst template (#9747)
This commit is contained in:
@@ -24,6 +24,9 @@ $endif$
|
||||
$if(title)$
|
||||
title: [$title$],
|
||||
$endif$
|
||||
$if(subtitle)$
|
||||
subtitle: [$subtitle$],
|
||||
$endif$
|
||||
$if(author)$
|
||||
authors: (
|
||||
$for(author)$
|
||||
|
||||
@@ -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]
|
||||
})
|
||||
]]
|
||||
}
|
||||
|
||||
|
||||
@@ -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]
|
||||
})
|
||||
]]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user