From 008384341726f5dcae27fc57a8ce411db0b2383a Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 11 Feb 2025 10:08:45 -0800 Subject: [PATCH] Added `generic` object to typst --- lib/typst/local/handout/0.1.0/lib.typ | 3 +-- lib/typst/local/handout/0.1.0/object.typ | 8 ++++++++ 2 files changed, 9 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 06eddc9..b900fda 100755 --- a/lib/typst/local/handout/0.1.0/lib.typ +++ b/lib/typst/local/handout/0.1.0/lib.typ @@ -3,8 +3,7 @@ // Re-exports // All functions that maybe used by client code are listed here #import "misc.typ": * -#import "object.typ": problem, definition, theorem -#import "solution.typ": if_solutions, if_no_solutions, solution +#import "object.typ": problem, definition, theorem, example, remark, generic /// Main handout wrapper. diff --git a/lib/typst/local/handout/0.1.0/object.typ b/lib/typst/local/handout/0.1.0/object.typ index 7d4d09b..ed38683 100644 --- a/lib/typst/local/handout/0.1.0/object.typ +++ b/lib/typst/local/handout/0.1.0/object.typ @@ -98,3 +98,11 @@ #let theorem = _mkobj("Theorem") #let example = _mkobj("Example") #let remark = _mkobj("Remark") + +#let generic(obj_content) = { + block( + above: 8mm, + below: 2mm, + text(weight: "bold", obj_content), + ) +}