TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


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

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

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