Drawing Feynman diagrams with feynarts

Click For Summary
SUMMARY

The discussion focuses on using the feynarts.sty package for drawing Feynman diagrams in LaTeX. The user encountered issues with the output of their diagrams and discovered that the correct compilation sequence is latex -> dvips -> ps2pdf. To ensure proper compilation in TexShop, the command %!TEX TS-program = latex should be included at the beginning of the LaTeX file.

PREREQUISITES
  • Feynman diagram drawing using feynarts.sty
  • LaTeX document preparation
  • Understanding of compilation sequences in LaTeX
  • TexShop usage for LaTeX editing
NEXT STEPS
  • Research LaTeX compilation sequences and their impact on output quality
  • Learn advanced features of the feynarts.sty package
  • Explore troubleshooting common LaTeX errors in diagram rendering
  • Investigate alternative packages for Feynman diagram creation in LaTeX
USEFUL FOR

Researchers, physicists, and students who need to create Feynman diagrams using LaTeX, as well as anyone looking to enhance their LaTeX document preparation skills.

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
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?
 
Physics news on Phys.org
How did you compile the file and what output did you look at?
 
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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 0 ·
Replies
0
Views
6K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K