Added generic object to typst

This commit is contained in:
Mark 2025-02-09 20:13:33 -08:00
parent c81ed3c7b9
commit fb65744ee9
2 changed files with 9 additions and 1 deletions

View File

@ -3,7 +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 #import "solution.typ": if_solutions, if_no_solutions, solution

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),
)
}