#set page(width: 300pt, height: 240pt, margin: (x: 2.5cm, rest: 1cm)) #import "@preview/deixis:0.1.1": * #show: deixis-setup-notes #show raw: set text(size: 0.85em) #lorem(10) #deixis-margin-note[A plain margin note.] #lorem(10) // use rect container for subsequent notes #deixis-set(container-func: (margin-note: rect)) #deixis-margin-note( stroke: teal, fill: teal.transparentize(95%), link: "right-angle", )[][A colorful margin note.] #deixis-margin-note( stroke: green, fill: green.transparentize(95%), link: "right-angle", mark-align: (mark: horizon, body: horizon), )[This is a marked text][A left side note, aligned horizontally to its mark.]. #lorem(10) #deixis-margin-note( inline-mode: "highlight", stroke: (link: stroke(paint: orange, dash: "dashed"), body: orange), fill: (mark: orange.transparentize(80%), body: orange.transparentize(95%)), side: right, link: "curve", )[Another highlighted text][A note with different styling.]. #import "@preview/colorful-boxes:1.4.3": stickybox #lorem(3) #deixis-margin-note( fill: blue.lighten(85%), container-func: (body, ..args) => stickybox(body, fill: args.at("fill"), rotation: args.at("rotation", default: 0deg)), rotation: 10deg, // all unknown named parameters are passed to container-func )[Sticky note.] #lorem(5) #deixis-margin-note( marker: "", stroke: red, fill: red.transparentize(95%), link: "right-angle", )[A note with empty marker.] #lorem(5)