0

The TikZ Manual, section 59.5 and some very good questions on this site explain how to declare new shapes for TikZ nodes with \pgfdeclareshape{myshape} ... to later use them with

\node[shape=myshape] (name) {text};

But is it also possible to create a new shape to place on a path, which would then be used like this?

\draw (0,0) myshape (5, 7);

How can one declare a new path command?

XZS
  • 2,953
  • adding commands like that you need to alter the sequence of interpretation in tikz. That I would not recommend, but what is wrong with: \draw (0,0) (name) (5,7)? By the way, shape=myshape does not give the shape a name, I suppose you mean name instead of myshape? – nickpapior Dec 12 '13 at 09:44
  • @zeroth: shape=myshape is the usage I intended assuming that it was defined somewhere with \pgfdeclareshape{myshape}... – XZS Dec 12 '13 at 10:02
  • @Jake: The duplicate is correct, this answers my question. – XZS Dec 12 '13 at 10:03

0 Answers0