Added generic object to typst

This commit is contained in:
Mark 2025-02-11 10:08:45 -08:00
parent 7efc3c83a5
commit 0083843417
2 changed files with 9 additions and 2 deletions

View File

@ -3,8 +3,7 @@
// Re-exports // Re-exports
// All functions that maybe used by client code are listed here // All functions that maybe used by client code are listed here
#import "misc.typ": * #import "misc.typ": *
#import "object.typ": problem, definition, theorem #import "object.typ": problem, definition, theorem, example, remark, generic
#import "solution.typ": if_solutions, if_no_solutions, solution
/// Main handout wrapper. /// Main handout wrapper.

View File

@ -98,3 +98,11 @@
#let theorem = _mkobj("Theorem") #let theorem = _mkobj("Theorem")
#let example = _mkobj("Example") #let example = _mkobj("Example")
#let remark = _mkobj("Remark") #let remark = _mkobj("Remark")
#let generic(obj_content) = {
block(
above: 8mm,
below: 2mm,
text(weight: "bold", obj_content),
)
}