Imagine situations like this:
#import "@preview/cetz:0.5.2"
#import cetz.draw: *
#cetz.canvas({
hide(circle((2,0), name: "circle", radius: 1))
line((1,0), (3,0), "circle.120deg", close: true)
content((a: (1,0), number: 50%, b: (3,0)), [$a$], anchor: "north")
content((a: (3,0), number: 50%, b: "circle.120deg"), [$b$], anchor: "south-west")
content((a: "circle.120deg", number: 50%, b: (1,0)), [$c$], anchor: "south-east")
})
If I could name the points while creating line, I wouldn't have to repeat them in content. This could perhaps be achieved with a syntax like:
line((1,0).A, (3,0).B, "circle.120deg".C, close: true)
It is true that #let A = (1,0) #let B = (3,0) can solve this problem, but isn't the syntax I suggested feasible? Thanks in advance.
Imagine situations like this:
If I could name the points while creating
line, I wouldn't have to repeat them incontent. This could perhaps be achieved with a syntax like:It is true that
#let A = (1,0) #let B = (3,0)can solve this problem, but isn't the syntax I suggested feasible? Thanks in advance.