From e2947ea54b3ec67b430f7636024f1bd3664bb65d Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 2 Oct 2025 07:58:03 -0700 Subject: [PATCH] lib edits --- lib/typst/local/handout/0.1.0/lib.typ | 11 +++++++++-- lib/typst/local/handout/0.1.0/solution.typ | 23 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/lib/typst/local/handout/0.1.0/lib.typ b/lib/typst/local/handout/0.1.0/lib.typ index e5ffa64..d17dfa4 100755 --- a/lib/typst/local/handout/0.1.0/lib.typ +++ b/lib/typst/local/handout/0.1.0/lib.typ @@ -5,7 +5,7 @@ #import "misc.typ": * #import "object.typ": definition, example, generic, problem, remark, theorem #import "solution.typ": ( - if_no_solutions, if_solutions, if_solutions_else, instructornote, + if_no_solutions, if_solutions, if_solutions_else, instructornote, review_box, sample_solution, solution, ) @@ -30,12 +30,17 @@ by: none, subtitle: none, short_warning: false, + page_numbers: true, ) = { set page( margin: 20mm, width: 8.5in, height: 11in, - footer: align(center, context counter(page).display()), + footer: { + if page_numbers { + align(center, context counter(page).display()) + } + }, footer-descent: 5mm, ) @@ -51,6 +56,8 @@ justify: true, ) + set math.mat(delim: "[") + // // List style set list( diff --git a/lib/typst/local/handout/0.1.0/solution.typ b/lib/typst/local/handout/0.1.0/solution.typ index ac9a052..80d8e3e 100755 --- a/lib/typst/local/handout/0.1.0/solution.typ +++ b/lib/typst/local/handout/0.1.0/solution.typ @@ -106,6 +106,29 @@ )) } +#let review_box(title, content) = { + align(center, stack( + block( + width: 100%, + breakable: false, + fill: oblue, + stroke: oblue + 2pt, + inset: 1.5mm, + align(left, text(fill: white, weight: "bold", title)), + ), + + block( + width: 100%, + height: auto, + breakable: false, + fill: oblue.lighten(80%).desaturate(10%), + stroke: oblue + 2pt, + inset: 3mm, + align(left, content), + ), + )) +} + #let instructornote(content) = { if_solutions(align(center, stack(