better mod4 examples
This commit is contained in:
7
lib.typ
7
lib.typ
@@ -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:")
|
||||
|
||||
Reference in New Issue
Block a user