Skip to content

Releases: GiggleLiu/chalks

Release list

Chalks v0.1.1

Choose a tag to compare

@GiggleLiu GiggleLiu released this 05 Sep 04:09
45d50fc

Chalks 0.1.1 adds curved, labeled arrows between pinned expressions:

#import "@preview/chalks:0.1.1": annotate, pin

#pin("start")[$x$] becomes #pin("end")[$x^2$].
#annotate(arrow: ("start", "end"), bend: 16pt, label: [square])

Positive bends go below left-to-right arrows; negative bends go above. Straight arrows remain the default. Leave room for the curve and label in the document layout.

  • Fix annotations with em and percentage margins, including Typst 0.15 and local font-size changes. Fixes #3.
  • Support sketch dimensions and annotation offsets in em.
  • Resolve pin names per page and report duplicates.
  • Include arrow(via: ...), previously available only in the checkout.
  • Reject non-finite geometry and limit excessive stroke/fill work.
  • Add placement and arrow geometry regressions; test on Typst 0.14.2 and 0.15.1.

Validated with 23 Rust tests, formatting, Clippy, both Typst versions, and typst-package-check. The WASM was rebuilt with Rust 1.93.1 on x86_64 Linux.

The @preview/chalks:0.1.1 import becomes available after Typst Universe submission #5763 is merged and deployed. Until then, use the release package locally or run make install from the v0.1.1 checkout.