2

Possible Duplicate:
TikZ: How to draw an arrow in the middle of the line?

I'd like to use Tikz for drawing Feynman diagrams. I found an example in TeXample, but it looks inefficient.

One of the things I would appreciate is that the decoration > would appear midway of each part of the path, say

\draw[mypath] (0,0) -- (1,1) -- (2,1) -- (3,0);

to produce a path formed by three arrows.

Questions

  • Is this possible?
  • How should the style by defined?
Dox
  • 5,729
  • 1
    This would be much more clear if you can provide a MWE. Every path and every segment of the path depends on how you define every path/.style={...} etc. Sorry for the misunderstanding but it's really not clear from your question. But the general answer is that yes it is possible. – percusse Aug 29 '12 at 11:22

1 Answers1

2

Look at my answer to TikZ: How to draw an arrow in the middle of the line?: I define a style to apply some styles to each segment of a path.

Paul Gaborit
  • 70,770
  • 10
  • 176
  • 283