When trying to draw a Feynman diagram using the feynmp-auto package, there simply is no result, the pdf comes out as a blank page. I use TeXstudio and MikTeX, and run the file with pdflatex.
I have read the documentation (in which it is stated that in the case one uses MikTeX, -shell-espace should be used) and have tried to force TeXstudio to run with -shell-escape in multiple ways (exhausted the options in Setting up LaTeX -> DVIPS -> PS2PDF with Shell-Escape (in TeXStudio)).
The MWE that I'm trying to run is the following.
\documentclass{article}
\usepackage{feynmp-auto}
\begin{document}
\unitlength=1mm
\begin{fmffile}{photon}
\begin{fmfgraph*}(40,25)
\fmfkeep{photon}
\fmfleft{i1,i2}
\fmfright{o1,o2}
\fmf{fermion}{i1,v1,i2}
\fmf{fermion}{o1,v2,o2}
\fmf{photon}{v1,v2}
\end{fmfgraph*}
\end{fmffile}
\end{document}
How does one get the diagram to show up in the pdf?
photon.mpis not what's included, butphoton.1, which is obtained whenphoton.mpis processed by Metapost. Remove all thephoton.*files and retry, or try\usepackage[force]{feynmp-auto}– egreg Sep 26 '14 at 18:08photon.*files and using\usepackage[force]{feynmp-auto}now, but no result. Does this mean Metapost isn't run? – Betohaku Sep 26 '14 at 18:10-shell-escapein the pdflatex command line, but the pdf file is not created when writing% !TeX TXS-program:compile = txs:///latex/[-shell-escape]in the document. Apparently these are not equivalent. – Betohaku Sep 27 '14 at 10:57