#[beginner] tufte-memo template not working
12 messages · Page 1 of 1 (latest)
Maybe you could share the exact document that triggers this, or a minimal version of the problem (just using the template), and the error message
my friend actually ran into this as well, so I saw this problem today. The template is not updated to work with latest typst version unfortunately.
I think The template can work to some extent, but the note features do not. It would be best if the template was updated.
Yeah I heard so, shame
Is there any way to use margin notes outside of the template easily?
the package marginalia implements it and it works in current typst, I'm using it
looks like tufte-memo uses the package drafting for this purpose, you could also look at that one
so 2 alternatives, I guess both work (drafting was recently updated)
btw i got it to compile
#let note(dy:-2em, numbered:true, content) = context {
if numbered {
notecounter.step()
text(weight:"bold",super(notecounter.display()))
}
text(size:9pt,font: sans-fonts,margin-note(if numbered {
text(weight:"bold",font:"Lucida Bright",size:11pt,{
super(notecounter.display())
text(size: 9pt, " ")
})
content
} else {
content}
,dy:dy))
}```
I edited the note function to start with a `context {` for the counter and i added `#import "@preview/drafting:0.2.2": *` to the start of the doc cuz it originally included drafting 0.2.0