forked from HEL/chronos
added allow-overlap parameter for notes
This commit is contained in:
13
src/note.typ
13
src/note.typ
@ -14,7 +14,15 @@
|
||||
"hex"
|
||||
)
|
||||
|
||||
#let _note(side, content, pos: none, color: COL-NOTE, shape: "default", aligned: false) = {
|
||||
#let _note(
|
||||
side,
|
||||
content,
|
||||
pos: none,
|
||||
color: COL-NOTE,
|
||||
shape: "default",
|
||||
aligned: false,
|
||||
allow-overlap: true
|
||||
) = {
|
||||
if side == "over" {
|
||||
if pos == none {
|
||||
panic("Pos cannot be none with side 'over'")
|
||||
@ -37,6 +45,7 @@
|
||||
color: color,
|
||||
shape: shape,
|
||||
aligned: aligned,
|
||||
aligned-with: none
|
||||
aligned-with: none,
|
||||
allow-overlap: allow-overlap
|
||||
),)
|
||||
}
|
||||
|
Reference in New Issue
Block a user