Hi everyone,
I just published probability-tree, a small Typst package for drawing n×p probability trees (the classic French-style trees, growing left-to-right), built on top of CeTZ.
It supports:
- probability labels above, below or on the edge (
above/below/on/hybrid), optionally sloped - per-node and per-probability overrides (
sn/sp) - text styles: bold, italic, small caps, highlighting, custom functions
- in
onmode, the edge is cut under the label while keeping transparency
MIT licensed — feedback welcome!
Note:
the package is not yet on @preview — I’m waiting for feedback before publishing to the Typst Universe. For now, install it locally (@local) or grab the files from GitHub.
