Skip to content

Overflowing margin note #17

@aronvandepol

Description

@aronvandepol

I’m using marginalia to add long side notes in a history dissertation context. These notes often run long. The current behavior is that marginal notes overflow the available margin space instead of breaking and continuing on the next page.

This makes it difficult to work with long notes (which are very common in historical scholarship). Since all my notes are numbered, I wouldn’t mind them breaking and continuing on the next page — that would actually be the expected behavior.

I understand that the design assumption might be to keep notes relatively short, but for dissertation-style work it would be a very useful feature (or at least helpful to know whether such a break is possible with the current implementation).

Minimal Example
The following example reproduces the issue — note the very long notes created with #lorem(20) and #lorem(25) which overflow the margin rather than breaking across pages:

#import "@preview/marginalia:0.2.3" as marginalia: note, notefigure, wideblock

#show: marginalia.setup.with(
  inner: ( far: 2mm, width: 10mm, sep: 5mm ),
  outer: ( far: 8mm, width: 40mm, sep: 5mm ),
)

#show: marginalia.show-frame

#let note = note.with(
  numbering: (.., i) => super[#i],
  anchor-numbering: (.., i) => super[#i],
  par-style: (justify: true)
)

// Simulate a page with lots of notes
#for i in range(0, 6) [
  #lorem(3)
  #note[#lorem(20)]
  #note[#lorem(25)]
  #lorem(60)
]

Expected behavior

  • Break to the next page when they exceed the available margin height
  • Offer an option/parameter that enables/disables breaking behavior.

Actual behavior
Long notes overflow the margin and run past the page boundary.

marginalia version: 0.2.3

Additional context
This use case is common in humanities dissertations, where side notes can be as long as footnotes. Even if not the “typical” use case, it would be a helpful option to support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cantfixCannot be fixed with current Typst

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions