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?
tikz. That I would not recommend, but what is wrong with:\draw (0,0) (name) (5,7)? By the way,shape=myshapedoes not give the shape a name, I suppose you meannameinstead ofmyshape? – nickpapior Dec 12 '13 at 09:44shape=myshapeis the usage I intended assuming that it was defined somewhere with\pgfdeclareshape{myshape}...– XZS Dec 12 '13 at 10:02