better mod4 examples

This commit is contained in:
2026-06-22 00:29:22 -04:00
parent 8fc002cda1
commit d0d1a87cf5
3 changed files with 144 additions and 54 deletions

View File

@@ -50,9 +50,9 @@
#let example = callout.with(kind: "eg", label: "For example:")
#let details(body, label: "Details") = {
#let details(body, label: "Details", open: false) = {
context if target() == "html" {
html.details({
html.details(open: open, {
html.summary(strong[Click for #label])
body
})
@@ -64,4 +64,5 @@
}
}
#let solution = details.with(label: "Solution")
// #let solution = details.with(label: "Solution")
#let solution = callout.with(kind: "solution", label: "Solution:")