Added generic
object to typst
This commit is contained in:
parent
7efc3c83a5
commit
0083843417
@ -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.
|
||||
|
@ -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),
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user