I want to create a Feynman diagram, with the feynmf package.
While compiling, no error occurs, but no diagram is produced.
I have searched through the net, and I found that I have to create an mf file.
The code I am using is
\documentclass{article}
\usepackage{feynmf}
\begin{document}
\unitlength = 1mm
% determine the unit for the size of diagram.
... here comes an example with feynmf
\begin{fmffile}{one} %one.mf will be created for this feynman diagram
\fmfframe(1,7)(1,7){ %Sets dimension of Diagram
\begin{fmfgraph*}(110,62) %Sets size of Diagram
\fmfleft{i1,i2} %Sets there to be 2 sources
\fmfright{o1,o2} %Sets there to be 2 outputs
\fmflabel{$e^-$}{i1} %Labels one of the left sources
\fmflabel{$e^+$}{i2} %Labels one of the left sources
\fmflabel{${\ensuremath{\erlpm}}$}{o1} %Labels one of the right outputs
\fmflabel{${\ensuremath{\erlpm}}$}{o2} %Labels one of the right outputs
\fmf{fermion}{i1,v1,i2} %Connects the sources with a vertex.
\fmf{fermion}{o1,v2,o2} %Connects the outputs with a vertex.
\fmf{photon,label=$\gamma/Z^0$}{v1,v2} %Labels the conneting line.
\end{fmfgraph*}
}
\end{fmffile}
The thing is that I have to create one.mf file, run LaTeX, run one.mf and run LaTeX again.
How am I supposed to run and create run.mf?






one.mfis created when you compile the document with LaTeX; then you open a command shell in the same directory as the document and typemf onefollowed by the "return" key. – egreg Mar 26 '12 at 13:57