I am trying to draw some Feynman diagrams using TikZ but seem to run into trouble where the arrow of a parent is also applied to the child, giving me two arrows on one line. (I have been using the example here as a base for creating my own)
Here's what my output look like (I am aware this diagram is incorrect):
As you can see the position line has two arrows overlapping, it seems it is only the arrows that are inherited.
Code:
\documentclass[10pt]{revtex4-1}
\usepackage{tikz}
\begin{document}
\usetikzlibrary{decorations.pathmorphing,decorations.markings,trees,positioning,arrows}
\tikzset{
photon/.style={,decorate, decoration={snake}, draw=red},
particle/.style={,draw=blue, postaction={decorate},
decoration={markings,mark=at position 0.5 with {\arrow[draw=blue]{>}}}},
antiparticle/.style={,draw=blue, postaction={decorate},
decoration={markings,mark=at position 0.5 with {\arrow[draw=blue]{<}}}},
gluon/.style={,decorate, draw=black,
decoration={snake,amplitude=4pt, segment length=5pt}}
}
\begin{tikzpicture}[
thick,
level/.style={level distance=2cm},
level 2/.style={sibling distance=2cm},
]
\begin{scope}
\node{}
child[grow=right]{
edge from parent [particle]
child []{
edge from parent [photon]
node [above=2pt, anchor=south,shift={(0.2,0)}] {$\gamma$};
}
child[] {
edge from parent [antiparticle]
node [above=2pt, anchor=south] {$e^+$};
}
node [above=3pt](gam) {$e^-$}
};
\end{scope}
\end{tikzpicture}
\end{document}