fix: paragraph spacing

This commit is contained in:
Kristofers Solo 2025-12-12 02:53:23 +02:00
parent ec3fe8e51d
commit e9dbdea5f1
Signed by: kristoferssolo
GPG Key ID: 8687F2D3EEE6F0ED

View File

@ -2,8 +2,6 @@
make-abstract, make-attachments, make-documentary-page, make-title, make-abstract, make-attachments, make-documentary-page, make-title,
) )
#let indent = 1cm
#let attachment(caption: none, label: none, body) = { #let attachment(caption: none, label: none, body) = {
( (
content: body, content: body,
@ -73,16 +71,14 @@
paper: "a4", paper: "a4",
) )
// Main body. // Main body.
set par( set par(
justify: true, justify: true,
leading: 1.5em, leading: 0.65em * 1.5,
spacing: 1.5em, spacing: 0.65em * 1.5,
first-line-indent: (amount: indent, all: true), first-line-indent: (amount: 1cm, all: true),
) )
// Configure equation numbering and spacing. // Configure equation numbering and spacing.
set math.equation(numbering: "(1)") set math.equation(numbering: "(1)")
show math.equation: set block(spacing: 0.65em) show math.equation: set block(spacing: 0.65em)
@ -96,10 +92,10 @@
// Headings // Headings
set heading(numbering: "1.1.") set heading(numbering: "1.1.")
show heading: set block(spacing: 2em, sticky: true) show heading: set block(spacing: 0.65em * 2, sticky: true)
show heading: it => { show heading: it => {
if it.level == 1 { if it.level == 1 {
pagebreak(weak: true) pagebreak()
text(14pt, align(center, upper(it))) text(14pt, align(center, upper(it)))
} else { } else {
text(12pt, it) text(12pt, it)
@ -272,7 +268,7 @@
outline( outline(
depth: 3, depth: 3,
indent: indent, indent: 1cm,
title: text(size: 14pt, outline-title), title: text(size: 14pt, outline-title),
) )