JP-Ellis / tikz-feynman

Feynman Diagrams with TikZ
http://www.jpellis.me/projects/tikz-feynman
Other
148 stars 20 forks source link

Momentum arrows unreadable #80

Closed RobertSchuh closed 4 months ago

RobertSchuh commented 4 months ago

I tried reproducing the examples but when using

\feynmandiagram [large, vertical=e to f] {
  a -- [fermion] b -- [photon, momentum=\(k\)] c -- [fermion] d,
  b -- [fermion, momentum'=\(p_{1}\)] e -- [fermion, momentum'=\(p_{2}\)] c,
  e -- [gluon]  f,
  h -- [fermion] f -- [fermion] i;
};

I get: image

How can I get readable momentum arrows?

JP-Ellis commented 4 months ago

Simply replace each momentum with momentum'. As per the documentation:

The primed (') version place the momentum arrow on the other side of the edge; that is, if the momentum arrow was on the right, it will be placed on the left of the edge