commit 374de3292ec8b1f192d6924d708ac8332c4c6e8d Author: Thomas Forgione Date: Tue Aug 22 11:10:23 2023 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c5fe26d --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +all: + mkdir -p build && typst compile main.typ build/main.pdf diff --git a/main.typ b/main.typ new file mode 100644 index 0000000..78c3a80 --- /dev/null +++ b/main.typ @@ -0,0 +1,5 @@ +#import "template.typ" + +#show: doc => template.apply(doc) + += Hello world diff --git a/template.typ b/template.typ new file mode 100644 index 0000000..690c122 --- /dev/null +++ b/template.typ @@ -0,0 +1,18 @@ +#let apply(doc) = { + set page(paper: "a4", numbering: "1") + set par(justify: true) + set text(lang: "fr") + set heading(numbering: "1.") + + show cite: content => { + set text(fill: blue) + content + } + + show ref: content => { + set text(fill: blue) + content + } + + doc +}