Files
university/data/theorems.typ
Jonas Hahn 0ec44376b6 more refactor
central pdf dir
2025-04-28 17:15:19 +02:00

56 lines
940 B
Typst

#import "@preview/ctheorems:1.1.3": *
// What is this for?
// #show: thmrules.with(qed-symbol: $square$)
// 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)
#let theorem = thmbox( //tem
"theorem",
"Theorem",
fill: rgb("#eeffdd")
).with(
numbering: none
)
#let corollary = thmplain( //cor
"corollary",
"Corollary",
base: "theorem",
titlefmt: strong
)
#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"
)
#let axiom = thmbox( //axi
"axiom",
"Axiom"
)
#let lemma = thmbox( //lem
"lemma",
"Lemma",
fill: rgb("#cddfff")
)
#let note = thmbox( //nte
"note",
"Note"
)