wip content

This commit is contained in:
2026-06-20 20:51:44 -04:00
parent 742b2d9fef
commit 8fc002cda1
14 changed files with 202 additions and 94 deletions

32
lib.typ
View File

@@ -33,7 +33,35 @@
}
}#let note = callout.with(kind: "note", label: "Note:")
#let note = callout.with(kind: "note", label: "Note:")
#let warn = callout.with(kind: "warn", label: "Warning:")
#let tip = callout.with(kind: "tip", label: "Tip:")
#let todo = callout.with(kind: "todo", label: "TODO:")
// #let todo = callout.with(kind: "todo", label: "TODO:")
#let todo(caption, ..args) = callout(kind: "todo", label: "TODO:", {
show figure: none
(
caption,
figure(kind: "todo", supplement: "TODO", caption: caption, none),
..args.pos(),
).join(parbreak())
})
#let example = callout.with(kind: "eg", label: "For example:")
#let details(body, label: "Details") = {
context if target() == "html" {
html.details({
html.summary(strong[Click for #label])
body
})
} else {
[
#strong(label):
#body
]
}
}
#let solution = details.with(label: "Solution")