added allow-overlap parameter for notes

This commit is contained in:
2025-07-16 17:20:31 +02:00
parent 03138269f9
commit 1f24ba8efe
5 changed files with 37 additions and 10 deletions

View File

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