My code is:
#import "@preview/cetz:0.5.2"
#import cetz.draw: *
#cetz.canvas({
hide(circle((2,0), name: "circle", radius: 1))
line((1,0), (3,0), name: "a")
line((), "circle.120deg", name: "b")
line("circle.120deg", (1,0), name: "c")
content("a", [a], anchor: "north")
content("b", [b], anchor: "south-west")
content("c", [c], anchor: "south-east")
})
Result:
Is there no way to replace the three line commands with a single one — like line((1,0), (3,0), "circle.120deg", closed: true) — while also naming each line so that the polygon’s sides can be labeled?
