From 4b4f0e55ed7aa462a6d534ee28f153b0033ff2fc Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Wed, 3 Sep 2025 11:37:09 +0200 Subject: [PATCH] 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. --- templates/default.typ | 2 +- templates/modern.typ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/default.typ b/templates/default.typ index 31d5412..6a7b206 100644 --- a/templates/default.typ +++ b/templates/default.typ @@ -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" { diff --git a/templates/modern.typ b/templates/modern.typ index 8599ace..72b357c 100644 --- a/templates/modern.typ +++ b/templates/modern.typ @@ -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" {