cetz-package / cetz

CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.
https://cetz-package.github.io
GNU Lesser General Public License v3.0
733 stars 34 forks source link

Allow optionally specifying branch lengths for trees #641

Open kollienne opened 3 days ago

kollienne commented 3 days ago

This treats any pair that begins with a number (2, "a") as a branch-length and child node, allowing arbitrary branch lengths in trees.

I'm open to feedback on this, as it is it probably breaks existing documents where trees are labelled using integers.

johannes-wolf commented 3 days ago

Thank you! Can you please add a test case that shows this feature?