Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • 1
    The pic isn't really needed, this should also be possible with any decoration, even one decoration that places one, the other or both slashes. But I was committed to the pic because it was much easier to handle. Commented 11 hours ago
  • Excellent with three approach play with pic, but I found that to put the \pic {slash} at the center of the offseted arrow, the dualharpoon/.default=.75, value shoule be the same as ext/auto offset=.75ex,? Maybe these two should always be the same in this specific case? Commented 7 hours ago
  • 1
    And if you don't want the dependency on ext.nodes for the slashes: since the pics are sloped – unlike the nodes –, the offset is just a yshift (just like in your markings declaration). The positive in one direction and the negative in the other one. You might want to look into allow upside down for the slashes. If #1371 does make it into a version of TikZ, the auto with offset stuff needs to be rewritten anyway. Commented 7 hours ago
  • "I think I got a bit confused with your ext/auto offset=1ex for the nodes. In a previous version" Because the setting was copied from here, which was used by label, not for slash, the .pic now, the new version. Commented 7 hours ago
  • 1
    I've updated the answer and added allow upside down to the pics. That will always make them appear the same way in relation the the path's direction. I've also moved the auto offset stuff into the definition of dualharpoon so that i can use #1ex as well. (I've also cleaned up some comments.) Commented 7 hours ago

lang-tex