How do I make a custom arrowhead in Tikz having a perpendicular bar before a triangle 45? I would also like to adapt this solution to a bar before a square, open square, etc.
For example, imagine arrow coming from (0,0) to (10,0), then the arrowhead would be a filled triangle roughly (9,1) — (10, 0) — (9, -1). I want to add a bar, which is a filled rectangle roughly (8.5,1) — (8.6, 1) — (8.6, -1) — (8.5, -1).
I guess I can use pgfdeclarearrow
to declar a bar somehow and then pgfarrowsdeclarecombine*
to combine it with existing arrows?
Best Answer
With the
arrows.meta
library inpgf
3.0 (released December 2013), combining arrow heads is pretty simple and can be done in advance or in-line:Just for Thomas: