#import "@preview/cetz:0.4.2"
#set page(width: auto, height: auto, margin: 0.5cm)
#align(center)[
#cetz.canvas(length:3cm,{
import cetz.draw: *
ortho(
x: 150deg,
y: 160deg,
z: 180deg,
{
//axes
line(
(0,0,0),(3,0,0),
mark:(end:"stealth",fill:black)
)
line(
(0,0,0),(0,3,0),
mark:(end:"stealth",fill:black)
)
line(
(0,0,0),(0,0,3),
mark:(end:"stealth",fill:black)
)
// same coordinates:
line(
(0,0,0),(2,1,1)
)
cetz.decorations.flat-brace(flip:true,
(0,0,0),(2,1,1),
)
}
)
})
]
Both ends of the brace were supposed to touch the ends of the line.
