When compiling the following:
% !TeX program = xelatex
\documentclass{standalone}
\usepackage[force]{feynmp-auto}
\DeclareGraphicsRule{}{mps}{}{} % for being able to read the produced file
\begin{document}
\begin{equation}
\begin{fmffile}{phi-phi}
\begin{fmfgraph}(4,3)% units are now in cm
% \fmfpen{thick}
\fmfleft{i}
\fmfright{o}
\fmflabel{$x$}{i}
\fmflabel{$y$}{v}
\fmflabel{$z$}{o}
\fmf{plain}{i,v,v,o}
\fmfdot{v}
\end{fmfgraph}
\end{fmffile}
\end{equation}
\begin{equation}
\begin{fmffile}{psi-psi}
\begin{fmfgraph}(4,3)% units are now in cm
% \fmfpen{thick}
\fmfleft{i}
\fmfright{o}
\fmflabel{$x$}{i}
\fmflabel{$y$}{v}
\fmflabel{$z$}{o}
\fmf{dashes}{i,v,v,o}
\fmfdot{v}
\end{fmfgraph}
\end{fmffile}
\end{equation}
\end{document}
I get the output:
What is going wrong?
I'm compiling with XelateX. Also, I am not interested in solutions that are based on tikz-feynman.


equation*without loading e.g. theamsmathpackage. Alsostandalonewill cause troubles because it does not have a fixed width. Please test your code before posting to make sure there aren't any errors in it. – samcarter_is_at_topanswers.xyz Mar 09 '23 at 15:32