This commit is contained in:
2025-04-16 10:50:38 +02:00
commit 330d4d931d
88 changed files with 5817 additions and 0 deletions

42
default.typ Normal file
View File

@@ -0,0 +1,42 @@
#import "@preview/equate:0.2.1": equate
#import "@preview/quick-maths:0.2.1": shorthands
#import "./theorems.typ": *
#let default(body) = {
// page setup
set page(margin: 2cm, numbering: "1")
set text(lang: "de", hyphenate: false)
// set par(justify: true)
// equation setup
show ref: equate
show: equate.with(number-mode: "label", breakable: false)
set math.equation(numbering: "(1)", supplement: "Gl.", number-align: bottom)
show math.equation.where(block: false): it => box(it)
// shorthands setup
show: shorthands.with(
($*$, $dot.op$),
($\\$, $without$),
($+-$, $plus.minus$),
($=>$, $arrow.r.double.long$),
($=<$, $arrow.l.double.long$),
($<=>$, $arrow.l.r.double.long$),
($..$, $quad$),
)
// shiroa/zeta setup
body
}
// symbol shortcuts
#let cmt = align(right, $wide |$)
#let Abb = math.op("Abb")
#let rel = math.op("R")
#let lin = math.op("lin")
#let arccot = math.op("arccot")
// flashcards
#let flashcard(id, front, back) = {
back
}