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:
2 files changed
+2
-2
No files matched your search
@@ -98,7 +98,7 @@
|
|||||||
set page(
|
set page(
|
||||||
paper: paper,
|
paper: paper,
|
||||||
flipped: orientation == "landscape",
|
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" {
|
..if export_format == "single-page" and orientation == "landscape" {
|
||||||
(width: auto,)
|
(width: auto,)
|
||||||
} else if export_format == "single-page" {
|
} else if export_format == "single-page" {
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
set page(
|
set page(
|
||||||
paper: paper,
|
paper: paper,
|
||||||
flipped: orientation == "landscape",
|
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" {
|
..if export_format == "single-page" and orientation == "landscape" {
|
||||||
(width: auto,)
|
(width: auto,)
|
||||||
} else if export_format == "single-page" {
|
} else if export_format == "single-page" {
|
||||||
|
|||||||
Reference in new issue
Block a user