I want to get this Feynman diagram:
I have following code, however when I add \(g(b,\overline a)\)
, I get many errors. Could you please tell me how should I get desired result?
\begin{center}
\feynmandiagram[horizontal=a to b]{
i1[particle=\(u(r)\)] -- [anti fermion] a -- [anti fermion] i2[particle=\(u(b)\)],
a -- [gluon, edge label= \(g\)] b,
};
\end{center}
tikz-feynman
from your other question, I’ve never used that before), thestandalone
class is quite nice for this. ;)