Skip to content

Instantly share code, notes, and snippets.

@acgetchell
Last active August 8, 2016 22:49
Show Gist options
  • Save acgetchell/3595449 to your computer and use it in GitHub Desktop.
Save acgetchell/3595449 to your computer and use it in GitHub Desktop.
FeynMP preamble
\usepackage[final]{feynmp}
\DeclareGraphicsRule{*}{mps}{*}{}
\makeatletter
\def\endfmffile{%
\fmfcmd{\p@rcent\space the end.^^J%
end.^^J%
endinput;}%
\if@fmfio
\immediate\closeout\@outfmf
\fi
\ifnum\pdfshellescape=\@ne
\immediate\write18{mpost \thefmffile}%
\fi}
\makeatother
\title{Your title}
\author{You \\
\texttt{Your email}}
\date{\today}
\begin{document}
\unitlength = 1mm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment