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

@ -5,13 +5,15 @@
/// - color (color): The note's color
/// - shape (str): The note's shape (see @@SHAPES for accepted values)
/// - aligned (bool): True if the note is aligned with another note, in which case `side` must be `"over"`, false otherwise
/// - allow-overlap (bool): If set to `false`, the note will try to reserve space in the column to avoid overlapping with neighboring participants. If set to `true`, the not will overlap other participants
#let _note(
side,
content,
pos: none,
color: rgb("#FEFFDD"),
shape: "default",
aligned: false
aligned: false,
allow-overlap: true
) = {}
/// Accepted values for `shape` argument of @@_note()