Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?
share|improve this question

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
add comment

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer
    
I guess it's better to close this as a duplicate. Nice answer by the way. –  percusse Aug 29 '12 at 9:05
    
@paul That's what I needed. Thank you! –  Dox Aug 29 '12 at 11:23
    
@percusse I didn't notice Paul's solution. Thank you for pointing it out. Cheers. –  Dox Aug 29 '12 at 11:25
add comment

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