Drawing Feynman diagrams with feynarts

  • Thread starter Andrea M.
  • Start date
  • #1
28
1

Main Question or Discussion Point

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
Schermata 2015-11-13 alle 23.05.21.png


instead of this

Schermata 2015-11-13 alle 23.06.56.png


how can I fix this?
 

Answers and Replies

  • #2
Orodruin
Staff Emeritus
Science Advisor
Homework Helper
Insights Author
Gold Member
16,817
6,626
How did you compile the file and what output did you look at?
 
  • #3
28
1
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.
 

Related Threads on Drawing Feynman diagrams with feynarts

Replies
5
Views
7K
  • Last Post
Replies
6
Views
594
Replies
4
Views
5K
Replies
3
Views
34K
  • Last Post
Replies
2
Views
890
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
4
Views
46K
Replies
17
Views
16K
  • Last Post
Replies
1
Views
2K
Replies
3
Views
1K
Top