Skip to content

Text and nodes? #150

Answered by fenjalien
cprieto asked this question in Q&A
Sep 1, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

We don't really have nodes in CeTZ, just elements and their anchors. You could try using the tree library (see section 6.1 in the manual) for your diagram but at a glance Hasse Diagrams are cyclical and use multiple inheritance which I'm pretty sure isn't supported (@johannes-wolf?).

You can place content using the content element (3.3.8) and place them next to other elements by using anchors (2.2):

// Draws a circle at the origin
circle((0, 0), name: "circle")
// Draws content to the right of the circle, and places the element relative to its own "left" anchor
content("circle.right", [circle], anchor: "left")

About drawing custom diagrams though I don't know of a way to draw a line fro…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@johannes-wolf
Comment options

Answer selected by cprieto
Comment options

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