aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2026-01-03 11:32:22 -0500
committerJohn MacFarlane <[email protected]>2026-01-03 11:32:22 -0500
commit12ad483674e5447bb4258017385263f42fe457de (patch)
treeb9b5e800cd0857a5ad120a9aafaeb88a47b5b50a
parent60369fd353f934b8cae269919bd27c70bb28309d (diff)
Typst template: disable hyphenation for title, subtitle.
Closes #11375.
-rw-r--r--data/templates/template.typst4
-rw-r--r--test/writer.typst4
2 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/template.typst b/data/templates/template.typst
index 648476620..40f208166 100644
--- a/data/templates/template.typst
+++ b/data/templates/template.typst
@@ -76,14 +76,14 @@
block(below: 1em, width: 100%)[
#if title != none {
align(center, block[
- #text(weight: "bold", size: 1.5em)[#title #if thanks != none {
+ #text(weight: "bold", size: 1.5em, hyphenate: false)[#title #if thanks != none {
footnote(thanks, numbering: "*")
counter(footnote).update(n => n - 1)
}]
#(
if subtitle != none {
parbreak()
- text(weight: "bold", size: 1.25em)[#subtitle]
+ text(weight: "bold", size: 1.25em, hyphenate: false)[#subtitle]
}
)])
}
diff --git a/test/writer.typst b/test/writer.typst
index a48658664..7ce5d05f1 100644
--- a/test/writer.typst
+++ b/test/writer.typst
@@ -100,14 +100,14 @@
block(below: 1em, width: 100%)[
#if title != none {
align(center, block[
- #text(weight: "bold", size: 1.5em)[#title #if thanks != none {
+ #text(weight: "bold", size: 1.5em, hyphenate: false)[#title #if thanks != none {
footnote(thanks, numbering: "*")
counter(footnote).update(n => n - 1)
}]
#(
if subtitle != none {
parbreak()
- text(weight: "bold", size: 1.25em)[#subtitle]
+ text(weight: "bold", size: 1.25em, hyphenate: false)[#subtitle]
}
)])
}