Creating SMS diagrams that look like the standard ones
A good source of premade diagrams is in the
diagrams
subdirectory of the SVN repository for AN-11-328.
This twiki provides a minimal example of how to compile a diagram into a PDF figure.
Prerequisites
Diagrams are created using the feynmf package, available here:
http://www.ctan.org/pkg/feynmf
Unzip this package and type
make
. The screen output gives some guidance on where to put the resulting files.
The simplest thing to do is to put them all into the directory with your latex files, but more elegant solutions are possible too.
Minimal example
- See the attached file
TChihh.tex
or the AN repository given above for latex snippets to draw diagrams using feynmf.
- Wrap the diagram tex file in a minimal latex document:
\documentclass{article}
\usepackage{feynmp}
%define any tex symbol macros needed by diagram
\begin{document}
\thispagestyle{empty}
\input{TChihh.tex}
\end{document}
- compile the latex document and the diagram, then convert it to PDF and crop it
latex wrapper.tex
mpost TChihh.mp #this filename will match the name given in the argument of \begin{fmffile}{TChihh} in the TChihh.tex file
latex wrapper.tex
dvips -o wrapper.ps wrapper.dvi
ps2pdf wrapper.ps
pdfcrop --margins '10 10 10 10' wrapper.pdf
--
JoshuaThompson - 08 Apr 2014