#cetz 0.2.0 get old mark arrow style

16 messages · Page 1 of 1 (latest)

tulip crystal
#

When mirating to cetz 0.2.0 I found out that the default make style for '>' was changed. I would like to keep the old arrow style as in the picture, does someone has an idea how to do that with the new cetz version?

#

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: ">"))
})
bright flower
#

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)
})
bright flower
#

"stealth" offers something similar

dry swallow
#

Oh thats our fault we forgot about the barbed arrow, apologies

bright flower
#

Can you add stealth as one of the tips in that table too?

dry swallow
#

?r

#import "@preview/cetz:0.2.0"
#cetz.canvas(length: 2cm, {
  import cetz.draw: *
  line((0,0), (1,1), mark: (end: "straight"))
})
dry swallow
#

no it does exist we just messed up on the docs

tulip crystal
#

I guess there isn't a way to make the shortcut ">" to display as "straight"?

dry swallow
#

not currently no but you could assign "straight" to a variable and use that instead. Also note that set-style exists