LaTeX LaTeX question about Feynman Diagrams

AI Thread Summary
Creating Feynman diagrams in LaTeX using the feynmf package can present challenges, particularly with compilation errors and output quality. The initial script provided does not compile correctly when using the \begin{fmffile*}{diagram} command, leading to an error message. Removing the asterisk allows compilation but results in a diagram that is small and difficult to modify. Users express a preference for the axodraw package, which seems to work better for their needs. There is also confusion regarding the "latex-dvips-ps2pdf route," which is necessary for proper functioning of certain packages like axodraw with pdflatex. Additionally, there are mentions of needing to run metafont after making changes in a fmffile environment before using pdflatex, indicating a need for clarity on the workflow for successful diagram creation.
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

Back
Top