Drawing Feynman diagrams with feynarts

2 replies · 3K views · last reply
Andrea M.
Messages
27
Reaction score
1
I'm trying to draw Feynman diagrams with the feynarts.sty package for LaTex. The problem is that if I write the following code

\begin{feynartspicture}(150,150)(1,1)
\FADiagram{}
\FAProp(0.,10.)(6.,10.)(0.,){/Straight}{0}
\FALabel(3.,9.18)[t]{$1$}
\FAProp(20.,10.)(14.,10.)(0.,){/Straight}{0}
\FALabel(17.,10.82){$2$}
\FAProp(6.,10.)(14.,10.)(0.8,){/Straight}{0}
\FALabel(10.,5.98)[t]{$3$}
\FAProp(6.,10.)(14.,10.)(-0.8,){/Straight}{0}
\FALabel(10.,14.02){$4$}
\FAVert(6.,10.){0}
\FAVert(14.,10.){0}
\end{feynartspicture}

I get this
Blank rendering with four numbered labels only: 4 at top, 2 at upper right, 1 at left, 3 at bottom. No lines or propagators are visible.


instead of this

Feynman diagram of a one-loop self-energy: a horizontal line labelled 1 enters from the left and a line labelled 2 exits to the right, joined by two arcs labelled 4 (top) and 3 (bottom) with filled dots at the two vertices.


how can I fix this?
 
I found the solution. I need to compile following the latex -> dvips -> ps2pdf sequence. This can be made in TexShop putting the command

%!TEX TS-program = latex

in the first line of the tex file.