Brace
brace()
Draw a curly brace between two points.
cetz.decorations.brace((0,1),(2,1))
cetz.decorations.brace((0,0),(2,0), outer-inset: 0)
start:
Start point
end:
End point
Styling
Root: brace
Sets the height of the brace, from its baseline to its middle tip.
Thickness of tapered braces (if ratio, relative to half the amplitude).
Use the fill
style for tapered braces and set stroke
to none.
Anchors
- start Where the brace starts, same as the
start
parameter. - end Where the brace end, same as the
end
parameter. - spike Point of the spike, halfway between
start
andend
and shifted byamplitude
towards the pointing direction. - content Point to place content/text at, in front of the spike.
- center Center of the enclosing rectangle.