I'm trying to execute the code:
\documentclass{article}
\usepackage{feynmp}
\begin{document}
\unitlength = 1mm
% determine the unit for the size of diagram.
\begin{fmffile}{fmfile}{simple_tree}
\begin{fmfgraph}{50,35}
\fmfleft{i1,i2}
\fmfright{o1,o2,o3,o4,o5,o6,o7,o8,o9,o10,o11}
\fmf{fermion}{i1,v1,o1}
\fmf{gluon}{v1,v2}
\fmf{fermion}{o2,v2,v3}
\fmf{fermion}{v3,v4,v5,o3}
\fmf{fermion}{v5,v6}
\fmf{fermion}{o4,o5}
\end{fmffile}
\end{document}
However, I get an error that begins with
! Missing $ inserted
May I ask where I am going wrong here?
Edit: I've changed the code as follows, with the feynmp-auto and graph corrections:
\documentclass{article}
\usepackage{feynmp-auto}
\begin{document}
\unitlength = 40mm
% determine the unit for the size of diagram.
\begin{fmffile}{simple_tree}
\begin{fmfgraph}(50,35)
\fmfleft{i1,i2}
\fmfright{o1,o2,o3,o4,o5}
\fmf{fermion}{i1,v1,o1}
\fmf{gluon}{v1,v2}
\fmf{fermion}{o2,v2,v3}
\fmf{fermion}{v3,v4,v5,o3}
\fmf{gluon}{v5,v6}
\fmf{fermion}{o4,v6,o5}
\end{fmfgraph}
\end{fmffile}
\end{document}
Now however I get the error:
! LaTeX Error: File `feynmp-auto.sty' not found.
from Texmaker. I used command line and get the same thing.
$-complaint references the use of_insimple_tree. However, your minimal document won't compile for other reasons as well. For example, the environmentfmfgraphis never closed. – Werner Mar 20 '13 at 19:07\begin{fmffile}{simple_tree}(an argument too many);\begin{fmfgraph}(50,35)(parentheses rather than braces); an\end{fmfgraph}is also missing. – egreg Mar 20 '13 at 19:12