Uses page-margin variable for page margins

Replaces hardcoded page margin values with the `page-margin`
variable in the default and modern templates. This promotes
consistency and makes it easier to adjust margins globally.
This commit is contained in:
AlexKucera committed 2025-09-03 11:37:09 +02:00
1 parent 51f16f3c23
commit 4b4f0e55ed
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@
set page(
paper: paper,
flipped: orientation == "landscape",
margin: (top: 2.5cm, right: 1.5cm, bottom: 2cm, left: 2.5cm),
margin: page-margin,
..if export_format == "single-page" and orientation == "landscape" {
(width: auto,)
} else if export_format == "single-page" {
+1 -1
View File
@@ -95,7 +95,7 @@
set page(
paper: paper,
flipped: orientation == "landscape",
margin: (top: 2.5cm, right: 1.5cm, bottom: 2cm, left: 2.5cm),
margin: page-margin,
..if export_format == "single-page" and orientation == "landscape" {
(width: auto,)
} else if export_format == "single-page" {