I want to create for example a rectangle/triangle/circle/ellipse that is as big as it’s contents, in cetz, how can I do that?
#import "@preview/cetz:0.2.2"
#import cetz.draw: *
#import cetz.styles: *
#cetz.canvas({
import cetz.draw: *
// Example usage
circle((0, 0), name: "circle", radius: 1)
content((0,0),"hello, but this is bigger")
})
I would like to avoid hardcoding the size of the container, since I don’t want to manually do it for every single node.