typst-drafting icon indicating copy to clipboard operation
typst-drafting copied to clipboard

out of bounds notes

Open Doublonmousse opened this issue 2 years ago • 1 comments

margin notes don't seem to be able to flow across pages so they get cut off with only parts of the note shown if it can't fit on a single page

Screenshot 2023-11-13 at 18 29 26

Doublonmousse avatar Nov 13 '23 10:11 Doublonmousse

Unfortunately this is a tricky problem to solve. Margin notes are placed to avoid reflowing content, but this means they don't create natural breaks for themselves. I.e., there isn't an easy way to indicate the margin note should flow to the next page like this: https://github.com/typst/typst/issues/735 (when it's supported).

It's not ideal, but your best bet in the meantime is to manually specify dy: -<length> in the call to margin-note to ensure the full note is visible:

#import "@preview/drafting:0.1.1": margin-note, set-page-properties
#set page(height: 2in, margin: (right: 2in))
#set-page-properties(margin-right: 2in)

= Hello, world
#lorem(80)
#margin-note(dy: -3cm)[#lorem(20)]
#lorem(80)

image

ntjess avatar Nov 13 '23 19:11 ntjess