This commit is contained in:
Schrottkatze 2024-11-29 15:31:19 +01:00
commit 3a09cd374f
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
4 changed files with 33 additions and 0 deletions

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# Our Typst configuration
This typst configuration is our personal set of templates, functions and whatever else we need.

BIN
src/lib.pdf Normal file

Binary file not shown.

24
src/lib.typ Normal file
View file

@ -0,0 +1,24 @@
#let generic(numbering: true, author: "Jade", date, doc) = {
// Word abbreviations
show "afg": "Aufgabe";
show "def": "Definition";
show "bsp": "Beispiel";
show "zb": "zum Beispiel";
show "wdh": "Wiederholung";
// symbol shortcuts
show "->": sym.arrow.right;
show "<-": sym.arrow.left;
show heading: it => {
set text(font: "Departure Mono")
underline(it)
}
set text(font: "B612");
doc
}
// s (because fancy prefix and easy to type) and f (because also fast to type, from "fancy")
// formats `body` as Departure Mono. for variable/highlighting purposes.
#let sf(body) = text(font: "Departure Mono", body);

6
typst.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "typst-configs"
version = "0.1.0"
entrypoint = "src/lib.typ"
authors = ["The Typst Project Developers"]
description = "My personal typst configurations and templates."