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?

marked as duplicate by percusse, Marco Daniel, Paul Gaborit, lockstep, diabonas Aug 30 '12 at 9:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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
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.

  • I guess it's better to close this as a duplicate. Nice answer by the way. – percusse Aug 29 '12 at 9:05
  • @percusse I didn't notice Paul's solution. Thank you for pointing it out. Cheers. – Dox Aug 29 '12 at 11:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.