Compare commits

...

2 Commits

Author SHA1 Message Date
orca 652e1cbb98
Linked affiliation to repository. 2024-02-05 08:02:01 +01:00
orca 09e9d24708
Changed style for `exercise` and `remark`. 2024-02-05 07:59:22 +01:00
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@
authors: (
(
name: "Orca",
affiliation: "git.disroot.org/orca/math-typst",
affiliation: link("https://git.disroot.org/orca/math-typst")[orca/math-typst],
email: "orcinus_orca@disroot.org",
),
),

View File

@ -55,10 +55,11 @@
#let definition(body, name: "") = math-block(name: name, id: definition-id, decoration: "outline", body)
#let remark(body, name: "") = math-block(name: name, id: remark-id, decoration: "none", body + v-space)
#let example(body, name: "") = math-block(name: name, id: example-id, decoration: "none", body + v-space)
#let exercise(body, name: "") = math-block(name: name, id: exercise-id, decoration: "none", body + v-space)
#let remark(body, name: "") = math-block(name: name, id: remark-id, emphasis: "italics", decoration: "none", body + v-space)
#let example(body, name: "") = math-block(name: name, id: example-id, emphasis: "italics", decoration: "none", body + v-space)
/* It takes the body of the proof, and formats it by adding the QED
symbol at the end, and the _#proof-id._ text at the front. */
#let proof(body) = [_#proof-id._ #body #h(1fr) #qed#v-space]