aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-10-18 15:41:07 +0200
committerJohn MacFarlane <[email protected]>2025-10-18 15:41:07 +0200
commit36cea7c978d1ccbf1b913af33df2d492ef5d1d61 (patch)
tree4550983a377727fbb0f7ef59461749958f7cf225
parent350b821d7c7df2901ea5c393b5be543f7d85a2b5 (diff)
Typst template: ensure that title block is properly centered.
Closes #11221.
-rw-r--r--data/templates/template.typst7
-rw-r--r--test/writer.typst7
2 files changed, 6 insertions, 8 deletions
diff --git a/data/templates/template.typst b/data/templates/template.typst
index 749ecb007..0ac9e564a 100644
--- a/data/templates/template.typst
+++ b/data/templates/template.typst
@@ -72,9 +72,9 @@
}
}
- block(below: 4mm)[
+ block(below: 1em, width: 100%)[
#if title != none {
- align(center)[#block(inset: 2em)[
+ align(center, block[
#text(weight: "bold", size: 1.5em)[#title #if thanks != none {
footnote(thanks, numbering: "*")
counter(footnote).update(n => n - 1)
@@ -84,8 +84,7 @@
parbreak()
text(weight: "bold", size: 1.25em)[#subtitle]
}
- )
- ]]
+ )])
}
#if authors != none and authors != [] {
diff --git a/test/writer.typst b/test/writer.typst
index d64924c4b..a29406dd2 100644
--- a/test/writer.typst
+++ b/test/writer.typst
@@ -96,9 +96,9 @@
}
}
- block(below: 4mm)[
+ block(below: 1em, width: 100%)[
#if title != none {
- align(center)[#block(inset: 2em)[
+ align(center, block[
#text(weight: "bold", size: 1.5em)[#title #if thanks != none {
footnote(thanks, numbering: "*")
counter(footnote).update(n => n - 1)
@@ -108,8 +108,7 @@
parbreak()
text(weight: "bold", size: 1.25em)[#subtitle]
}
- )
- ]]
+ )])
}
#if authors != none and authors != [] {