commit 3a09cd374f0508c8e0c5d95f5ad7358adc50bafa Author: Schrottkatze Date: Fri Nov 29 15:31:19 2024 +0100 init diff --git a/README.md b/README.md new file mode 100644 index 0000000..ce7c34b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Our Typst configuration + +This typst configuration is our personal set of templates, functions and whatever else we need. diff --git a/src/lib.pdf b/src/lib.pdf new file mode 100644 index 0000000..ef0feec Binary files /dev/null and b/src/lib.pdf differ diff --git a/src/lib.typ b/src/lib.typ new file mode 100644 index 0000000..508f379 --- /dev/null +++ b/src/lib.typ @@ -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); diff --git a/typst.toml b/typst.toml new file mode 100644 index 0000000..3cc14e2 --- /dev/null +++ b/typst.toml @@ -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."