mirror of
https://gitlab.gwdg.de/j.hahn02/university.git
synced 2026-01-01 06:44:25 -05:00
another day
This commit is contained in:
@@ -1,37 +1,41 @@
|
||||
// Default configuration for the typst setup for uni notes
|
||||
// May include different ones for different occasions
|
||||
|
||||
#import "@preview/equate:0.2.1": equate
|
||||
#import "@preview/quick-maths:0.2.1": shorthands
|
||||
#import "./theorems.typ": *
|
||||
|
||||
#let default(body) = {
|
||||
// page setup
|
||||
// page setup
|
||||
// cannot set the page with shiroa as exporter
|
||||
//set page(margin: 2cm, numbering: "1")
|
||||
set text(lang: "de", hyphenate: false)
|
||||
set align(left)
|
||||
// For now no automatic numbering
|
||||
// set heading(numbering: "1.1")
|
||||
set par(justify: true)
|
||||
set text(lang: "de", hyphenate: false)
|
||||
set align(left)
|
||||
// For now no automatic numbering
|
||||
// set heading(numbering: "1.1")
|
||||
set par(justify: true)
|
||||
|
||||
// set par(justify: true)
|
||||
// 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)
|
||||
// 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$),
|
||||
)
|
||||
// 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
|
||||
// shiroa/zeta setup
|
||||
body
|
||||
}
|
||||
|
||||
// symbol shortcuts
|
||||
@@ -43,5 +47,5 @@
|
||||
|
||||
// flashcards
|
||||
#let flashcard(id, front, back) = {
|
||||
back
|
||||
back
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user