Configurable margin-notes with smart positioning and matching wide blocks for Typst
Note
This is the readme file for the project repository and contains more development-oriented info.
A more friendly readme for the published package can be found on Typst Universe..
- Remember to
typst watch main.typ Marginalia.pdfandtypst watch main.typ preview.svg --pages 1while development to make these stay current.
Use tt run to check for test regressions.
The tests don’t necessarily represent ideal behavior. If the behavior
improves, they should be updated. Use tt update <name> to update the reference
of a test, and tt new <name> to create a new test.
Important
Note that the tests need to have a modified numbering style as the GitHub CI
runner does not have Inter.
- Replace all occurrences of the old version number with the new one, except where it refers to specific changes made in that version.
- Also replace placeholder
?.?.?with the new number.
- Commit and create a tagged release.
- “Sync Fork” in https://github.com/nleanba/typst-packages
- In
nleanba/typst-packages, Pull and create new branch from main - Create folder
packages/preview/marginalia/<VERSION>and copyLICENSE,README.md,lib.typ, andtypst.toml - Commit and create a pull-request to
typst/packages. main.typ: reset#let VERSION = "?.?.?".
This is a personal project of mine. I welcome bug reports and feature requests, but I don’t consider this a community project and have no real interest in reviewing pull-requests etc.
Have you encountered a bug? Please report it as an issue.
Has this package been useful to you?
I am always happy when someone gives me a sticker star⭐