-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I use typst drafting as the typst equivalent of todonotes.
I'm new to typst, which is why I struggled to get some equivalent functionality, but I think I managed:
I'd like to propose to
- add some extra examples in the documentation which show the usage of different variants of notes
- add a general
#notecommand, which can switch between the inline & margin variant, with a default to margin.
(or if not, also add this to the documentation as an example of working with it...)
If you are ok with this, I can send a PR (when I find some time)
A note, defaulting to a margin note:
#let note(inline: false, ..kwargs) = {
if inline {
inline-note(..kwargs)
} else {
margin-note(..kwargs)
}
}An example of defining custom todo-commands:
#let todo-ballon = rect.with(inset: 0.3em, radius: 0.5em)
#let todo-unsure = note.with(
stroke: maroon,
rect : todo-ballon.with(fill: maroon.lighten(70%)))
#let todo-add = note.with(
stroke: blue,
rect : todo-ballon.with(fill: blue.lighten(60%)))
#let todo-change = note.with(...)Usage:
#todo-add(inline: true)[Inline todo note, showing that I should add something...]
#todo-add[Todo note in the margin, showing that I should add something here...]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels