another day

This commit is contained in:
2025-04-30 22:41:54 +02:00
parent 0ec44376b6
commit 0d05c8ceb9
15 changed files with 325 additions and 70 deletions

View File

@@ -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
}

View File

@@ -1,7 +1,10 @@
// AGLA template
// Main VL Template
#import "../preamble.typ": *
#show: conf.with(num: 1)
#show: conf.with(
// May add more flags here in the future
num: 1
)
= Uebersicht

View File

@@ -1,55 +1,110 @@
// The nice latex boxes to look cool
#import "@preview/ctheorems:1.1.3": *
// Defaults for the block
//width: 100%,
//inset: 1.2em,
//radius: 0.3em,
//breakable: false,
// What is this for?
// #show: thmrules.with(qed-symbol: $square$)
#show: thmrules
// Use this to format the size: inset: (x: 1.2em, top: 1em, bottom: 1em)
// TODO: fix the alignment
// TODO: make the numbering good dnd manual and insert the title at the top (from the first line)
// Template for templates?
//#let base = thmenv(
// "base",
//)
#let BASE_LEVEL = 0
#let theorem = thmbox( //tem
"theorem",
"Theorem",
fill: rgb("#eeffdd")
).with(
numbering: none
base_level: BASE_LEVEL,
fill: rgb("#eeffdd"),
bodyfmt: body => [
#body #h(1fr)
]
)
#let corollary = thmplain( //cor
"corollary",
"Corollary",
base_level: BASE_LEVEL,
base: "theorem",
titlefmt: strong
titlefmt: strong,
bodyfmt: body => [
#body #h(1fr)
]
)
#let definition = thmbox( //def
"definition",
"Definition",
fill: rgb("#eedebb")
)
#let example = thmplain( //exa
"example",
"Example"
).with(
numbering: none
)
#let proof = thmproof( //pro
"proof",
"Proof"
)
#let remark = thmbox( //rem
"remark",
"Remark"
base_level: BASE_LEVEL,
fill: rgb("#eedebb"),
bodyfmt: body => [
#body #h(1fr)
]
)
#let axiom = thmbox( //axi
"axiom",
"Axiom"
"Axiom",
base_level: BASE_LEVEL,
bodyfmt: body => [
#body #h(1fr)
]
)
#let lemma = thmbox( //lem
"lemma",
"Lemma",
fill: rgb("#cddfff")
)
#let note = thmbox( //nte
"note",
"Note"
base_level: BASE_LEVEL,
fill: rgb("#cddfff"),
bodyfmt: body => [
#body #h(1fr)
]
)
// Other boxes and fields
#let note = thmbox( //nte
"note",
"Note",
bodyfmt: body => [
// Just make the text normally formatted
#body #h(1fr)
]
).with(numbering: none)
#let remark = thmplain( //rem
"remark",
"Remark",
bodyfmt: body => [
#body #h(1fr)
]
).with(numbering: none)
#let proof = thmenv( //pro
"proof",
none,
none,
(name, number, body, color: black) => [
#align(left, [_Proof_: #name #body]) #h(1fr) $square$ // float a QED symbol to the right
#v(0.5em)
]
).with(numbering: none)
#let example = thmbox( //exa
"example",
"Example",
fill: rgb("#efefff99"),
).with(numbering: none)