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.


How does one get the diagram to show up in the pdf?

  • Did you compile twice? Two runs of LaTeX are necessary when there's a new diagram in the document (or we're at the first run).
    – egreg
    Commented Sep 26, 2014 at 17:47
  • @egreg Yes. The file photon.mp is created in the first run (and probably overwritten in the second), and should thus be available for inclusion in the second run.
    – Betohaku
    Commented Sep 26, 2014 at 18:02
  • photon.mp is not what's included, but photon.1, which is obtained when photon.mp is processed by Metapost. Remove all the photon.* files and retry, or try \usepackage[force]{feynmp-auto}
    – egreg
    Commented Sep 26, 2014 at 18:08
  • I've done both deleting the photon.* files and using \usepackage[force]{feynmp-auto} now, but no result. Does this mean Metapost isn't run?
    – Betohaku
    Commented Sep 26, 2014 at 18:10
  • I think so. Sorry, but I can't test on MiKTeX.
    – egreg
    Commented Sep 26, 2014 at 19:21


Browse other questions tagged .