aboutsummaryrefslogtreecommitdiff
path: root/typst/template.typ
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2026-01-16 21:56:40 +0100
committerWilliam Hergès <william@herges.fr>2026-01-16 21:56:40 +0100
commit4769f3d4d0afa8a35628d50436c4635c42e09672 (patch)
tree647b13cb59439ed8bf56c0e38169c05126ae310f /typst/template.typ
parentb6677f5d15ea05b3c7410c8a9cff01f5e426fd39 (diff)
fix(typst): remove duplicated lines
Diffstat (limited to 'typst/template.typ')
-rw-r--r--typst/template.typ46
1 files changed, 0 insertions, 46 deletions
diff --git a/typst/template.typ b/typst/template.typ
index 4d7bc4c..5de1617 100644
--- a/typst/template.typ
+++ b/typst/template.typ
@@ -1,50 +1,4 @@
#let doc(authors: (), page_title: [], doc) = {
- // style
- set text(
- font: "Inter",
- size: 11pt,
- )
- set par(
- leading: 1em,
- first-line-indent: 1em,
- spacing: 2em,
- )
- set heading(numbering: "1.")
-
- set page(
- header: align(
- right + horizon,
- // Retrieve the document
- // element's title property.
- context document.title,
- ),
- numbering: "1",
- margin: (x: 2.85cm),
- )
-
- show heading: set par(leading: 0.75em)
- show heading: set text(font: "PT Astra Serif")
- show heading.where(level: 1): set block(below: 1em)
- show heading.where(level: 1): set text(size: 1.2em)
- show heading.where(level: 1, numbering: "1."): it => {
- pagebreak(weak: true)
- it
- }
- show heading.where(level: 2): set block(above: 3em, below: 1em)
- show heading.where(level: 2): set text(size: 1.1em)
-
- show title: set text(size: 1.25em, font: "PT Astra Serif")
- show title: set align(center)
- show title: set block(above: 5em, below: 1em)
- show title: set par(leading: 0.5em)
-
- show enum: set par(leading: 0.9em)
- show list: set par(leading: 0.9em)
-
- show raw: set text(font: "FiraCode Nerd Font Mono")
- show raw.where(block: false): set text(weight: 500, size: 1.1em)
-
- // style
set text(
font: "Inter",
size: 11pt,