From 84e07165bfc9c569d4e871481bc1589037100aa6 Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 23 Jan 2025 18:21:53 -0800 Subject: [PATCH] Tweak `#note()` --- lib/typst/local/handout/0.1.0/handout.typ | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/typst/local/handout/0.1.0/handout.typ b/lib/typst/local/handout/0.1.0/handout.typ index f35cebd..c966c02 100755 --- a/lib/typst/local/handout/0.1.0/handout.typ +++ b/lib/typst/local/handout/0.1.0/handout.typ @@ -185,15 +185,18 @@ // -#let hint(content) = { - text(fill: rgb(100, 100, 100), style: "oblique", "Hint: ") +#let note(content, type: none) = { + if type != none { + text(fill: rgb(100, 100, 100), style: "oblique", [#type: ]) + } text(fill: rgb(100, 100, 100), content) } -#let note(content) = { - text(fill: rgb(100, 100, 100), content) +#let hint(content) = { + note(content, type: "Hint") } + #let examplesolution(content) = { let c = oblue @@ -281,6 +284,7 @@ if show_solutions { warn } + doc }