LaTeX question about Feynman Diagrams

Click For Summary

Discussion Overview

The discussion revolves around the challenges of creating Feynman diagrams in LaTeX, specifically using the feynmf package. Participants share their experiences and technical issues encountered during the compilation process, as well as alternative packages they have used.

Discussion Character

  • Technical explanation, Debate/contested

Main Points Raised

  • One participant reports difficulties with the feynmf package, particularly with the compilation error related to the use of the asterisk in the \begin{fmffile*} command, and expresses frustration with the resulting small and unmodifiable graph.
  • Another participant mentions their preference for the axodraw package, indicating it works reasonably well for their needs.
  • A different participant questions the understanding of the "latex-dvips-ps2pdf route," noting that TeX does not allow axodraw to function with pdflatex.
  • One participant recalls needing to run metafont when changes were made in a fmffile environment before executing pdflatex.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the best approach or solution to the issues raised, with multiple competing views on the use of different packages and methods for creating Feynman diagrams.

Contextual Notes

Some limitations are noted, such as the specific requirements for running different packages and the potential need for additional steps in the compilation process, which may not be universally applicable.

ChrisVer
Science Advisor
Messages
3,372
Reaction score
465
Has anyone of you tried to work with creating Feynman Graphs in LaTeX?

I tried using the feynmf package, as explained here:
https://www.sharelatex.com/learn/Feynman_diagrams
and used the same introductory script:
\begin{fmffile*}{diagram}
\begin{fmfgraph}(40,25)
\fmfleft{i1,i2}
\fmfright{o1,o2}
\fmf{fermion}{i1,v1,o1}
\fmf{fermion}{i2,v2,o2}
\fmf{photon}{v1,v2}
\end{fmfgraph}
\end{fmffile*}

Trying to run it like this doesn't work, and during compiling I get the message that (\begin{fmffile*}{diagram}) is wrong... After removing the *, the compiling works, but I get a very weird graph which:
1. Is very small
2. I am not able to interfere with... (like changing the lines-vertices)

Has anyone ever had that problem? any way to solve it?
 
Physics news on Phys.org
I have no experience with feynmf, I usually use axodraw and it works reasonably.
 
Do you understand what the procedure:
"latex-dvips-ps2pdf route"
means? Because TeX won't make axodraw work with pdflatex...
 
I vaguely remember that I had to run metafont (?) whenever I changed something in a fmffile-environment before running pdflatex.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 7 ·
Replies
7
Views
9K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K