diff options
| author | John MacFarlane <[email protected]> | 2025-10-18 15:41:07 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-10-18 15:41:07 +0200 |
| commit | 36cea7c978d1ccbf1b913af33df2d492ef5d1d61 (patch) | |
| tree | 4550983a377727fbb0f7ef59461749958f7cf225 | |
| parent | 350b821d7c7df2901ea5c393b5be543f7d85a2b5 (diff) | |
Typst template: ensure that title block is properly centered.
Closes #11221.
| -rw-r--r-- | data/templates/template.typst | 7 | ||||
| -rw-r--r-- | test/writer.typst | 7 |
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 != [] { |
