Possible Duplicate:
How to use kile with feynmf or feynmp?
I would like to use feynmf, or better feynmp, with pdflatex. My first idea was to replace all the files file.[0-9]* which are produced after running mpost on file.mp corresponding to a \fmffile{file} environment by their PDF version obtained with epstopdf. But unfortunately pdflatex complains
! LaTeX Error: Unknown graphics extension: .1.
Obviously it does not know the filetype from this extension. How can I tell LaTeX that these are PDF files? The names of the files do of course not appear explicitly in my LaTeX source.
Note that I looked at How to use kile with feynmf or feynmp? which does not seem to work for me. Also I would prefer a solution which allows me to be able to compile with both latex and pdflatex (of course after generating the corresponding feynmf graph files). I do not mind running feynmf and mpost by hand.
ps2pdf tmp-pics.ps
\DeclareGraphicsRule{*}{mps}{*}{}to the document and runningmpost t. – egreg Apr 13 '12 at 22:01\usepackage{feynmp-auto}instead of\usepackage{feynmp}– Stan Jun 10 '15 at 11:35