#cetz 0.2.0 get old mark arrow style
16 messages · Page 1 of 1 (latest)
With cetz 0.2.0 I get:
?r
#import "@preview/cetz:0.2.0"
#cetz.canvas(length: 2cm, {
import cetz.draw: *
line((0,0), (1,1), mark: (end: ">"))
})
These are the tips available in the CeTZ 0.2.0 manual
?r
#import "@preview/cetz:0.2.0"
#cetz.canvas(length: 2cm, {
import cetz.draw: *
line((0,0), (1,1), mark: (end: "stealth"), harpoon: true)
})
"stealth" offers something similar
Oh thats our fault we forgot about the barbed arrow, apologies
Can you add stealth as one of the tips in that table too?
?r
#import "@preview/cetz:0.2.0"
#cetz.canvas(length: 2cm, {
import cetz.draw: *
line((0,0), (1,1), mark: (end: "straight"))
})
no it does exist we just messed up on the docs
Thank you 🙂
Perfect 👍 👍
I guess there isn't a way to make the shortcut ">" to display as "straight"?
not currently no but you could assign "straight" to a variable and use that instead. Also note that set-style exists