mirror of
https://github.com/kristoferssolo/LU-DF-Typst-Template.git
synced 2025-12-31 13:42:35 +00:00
fix: paragraph spacing
This commit is contained in:
parent
ec3fe8e51d
commit
e9dbdea5f1
16
src/lib.typ
16
src/lib.typ
@ -2,8 +2,6 @@
|
||||
make-abstract, make-attachments, make-documentary-page, make-title,
|
||||
)
|
||||
|
||||
#let indent = 1cm
|
||||
|
||||
#let attachment(caption: none, label: none, body) = {
|
||||
(
|
||||
content: body,
|
||||
@ -73,16 +71,14 @@
|
||||
paper: "a4",
|
||||
)
|
||||
|
||||
|
||||
// Main body.
|
||||
set par(
|
||||
justify: true,
|
||||
leading: 1.5em,
|
||||
spacing: 1.5em,
|
||||
first-line-indent: (amount: indent, all: true),
|
||||
leading: 0.65em * 1.5,
|
||||
spacing: 0.65em * 1.5,
|
||||
first-line-indent: (amount: 1cm, all: true),
|
||||
)
|
||||
|
||||
|
||||
// Configure equation numbering and spacing.
|
||||
set math.equation(numbering: "(1)")
|
||||
show math.equation: set block(spacing: 0.65em)
|
||||
@ -96,10 +92,10 @@
|
||||
|
||||
// Headings
|
||||
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 => {
|
||||
if it.level == 1 {
|
||||
pagebreak(weak: true)
|
||||
pagebreak()
|
||||
text(14pt, align(center, upper(it)))
|
||||
} else {
|
||||
text(12pt, it)
|
||||
@ -272,7 +268,7 @@
|
||||
|
||||
outline(
|
||||
depth: 3,
|
||||
indent: indent,
|
||||
indent: 1cm,
|
||||
title: text(size: 14pt, outline-title),
|
||||
)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user