aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-11-09 11:38:08 -0800
committerJohn MacFarlane <[email protected]>2024-11-09 11:38:08 -0800
commitd5d2821a4d5032563ac05e75f84ff238b654cc06 (patch)
treee04c45c0f0423ce8aaeb1b3e0d80aeb8d2ca072d /data
parentb088a55e56b68390adb14fcb5da6441dc7c68ca7 (diff)
Typst writer: make template sensitive to a `page-numbering` variable.
This can be set to an empty string (or, in metadata, to false) for no page numbers. Addresses #10370.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.typst1
-rw-r--r--data/templates/template.typst3
2 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/default.typst b/data/templates/default.typst
index 8efe33887..6b0e305fc 100644
--- a/data/templates/default.typst
+++ b/data/templates/default.typst
@@ -89,6 +89,7 @@ $endif$
$if(section-numbering)$
sectionnumbering: "$section-numbering$",
$endif$
+ pagenumbering: $if(page-numbering)$"$page-numbering$"$else$none$endif$,
cols: $if(columns)$$columns$$else$1$endif$,
doc,
)
diff --git a/data/templates/template.typst b/data/templates/template.typst
index 27e133f78..1889bef6f 100644
--- a/data/templates/template.typst
+++ b/data/templates/template.typst
@@ -24,6 +24,7 @@
font: (),
fontsize: 11pt,
sectionnumbering: none,
+ pagenumbering: "1",
doc,
) = {
set document(
@@ -34,7 +35,7 @@
set page(
paper: paper,
margin: margin,
- numbering: "1",
+ numbering: pagenumbering,
columns: cols,
)
set par(justify: true)