Drawing Feynman diagrams with feynarts

In summary, to successfully draw Feynman diagrams using the feynarts.sty package for LaTeX, the file must be compiled using the sequence latex -> dvips -> ps2pdf. This can be achieved in TexShop by adding the command "%!TEX TS-program = latex" on the first line of the tex file.
  • #1
Andrea M.
28
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
  • #2
How did you compile the file and what output did you look at?
 
  • #3
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.
 

1. How do I create Feynman diagrams using Feynarts?

To create Feynman diagrams using Feynarts, you will need to have the program installed on your computer. Then, you can open the program and follow the instructions to draw your desired diagram. You can also refer to online tutorials or guides for step-by-step instructions.

2. Can Feynarts be used for any type of Feynman diagram?

Yes, Feynarts can be used to create any type of Feynman diagram. It has a wide range of features and options that allow for the creation of complex diagrams with multiple particles and interactions.

3. Is Feynarts only compatible with certain operating systems?

No, Feynarts is compatible with most operating systems including Windows, Mac, and Linux. However, some versions may have slight variations in their user interface or features.

4. Can I customize the appearance of my Feynman diagrams using Feynarts?

Yes, Feynarts allows for customization of various aspects of the diagram such as line styles, particle labels, and colors. You can also add annotations and notes to your diagrams.

5. Can I export my Feynman diagrams from Feynarts to other programs?

Yes, Feynarts allows for exporting of diagrams in various formats such as EPS, PDF, and SVG. This allows for easy integration with other programs or documents.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
353
  • Nuclear Engineering
Replies
7
Views
2K
  • General Math
Replies
24
Views
2K
Replies
3
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
5K
Replies
0
Views
313
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Science and Math Textbooks
Replies
2
Views
1K
  • Cosmology
Replies
4
Views
1K
Back
Top