init
This commit is contained in:
commit
3a09cd374f
4 changed files with 33 additions and 0 deletions
3
README.md
Normal file
3
README.md
Normal 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
BIN
src/lib.pdf
Normal file
Binary file not shown.
24
src/lib.typ
Normal file
24
src/lib.typ
Normal 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
6
typst.toml
Normal 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."
|
Loading…
Reference in a new issue