Skip to content
\n

I get Assertion failed: Unknown element 'anchor_1' in elements ().

\n

Motivation: I want to draw arrows between sibling nodes in a tree.

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Currently, you cannot use custom names, but reference tree nodes via their \"index\" anchors: \"0-0\" would be the first child of the root node, \"0-1\" the second etc. This is not ideal, I've created a ticket to allow outputting anchors.

","upvoteCount":1,"url":"https://github.com/cetz-package/cetz/discussions/698#discussioncomment-10745233"}}}
Discussion options

You must be logged in to vote

Currently, you cannot use custom names, but reference tree nodes via their "index" anchors: "0-0" would be the first child of the root node, "0-1" the second etc. This is not ideal, I've created a ticket to allow outputting anchors.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by noahjutz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants