I have a hard time aligning diagrams in equations where everything fits on the same line:
As you can see the + is not aligned with the external lines. Here is the code
% !TeX program = xelatex
\documentclass{standalone}
\usepackage[force]{feynmp-auto}
\DeclareGraphicsRule{}{mps}{}{} % for being able to read the produced file
\begin{document}
\setlength{\unitlength}{1cm}
\begin{eqnarray}
\begin{fmffile}{psi-phi}
\begin{fmfgraph}(4,3)% units are now in cm
\fmfleft{i}
\fmfright{o}
\fmflabel{$\phi$}{i}
\fmf{fermion}{i,v}
\fmf{dashes}{v,v}
\fmf{fermion}{v,o}
\fmfdot{v}
\end{fmfgraph}
\end{fmffile}
&\quad + \quad&
\begin{fmffile}{phi-psi}
\begin{fmfgraph}(4,3)% units are now in cm
\fmfleft{i}
\fmfright{o}
\fmflabel{$\phi$}{i}
\fmf{dashes}{i,v}
\fmf{fermion}{v,v}
\fmf{dashes}{v,o}
\fmfdot{v}
\end{fmfgraph}
\end{fmffile}
\end{eqnarray}
\end{document}
I'm compiling with XelateX. Also, I am not interested in solutions that are based on tikz-feynman.


\documentclass[12pt,a4paper]{article}instead of\documentclass{standalone}for this MWE, becausestandalonedoes not provide theeqnarrayenvironment as far as I know. – Jasper Habicht Mar 09 '23 at 15:01