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

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formattex TChihh.tex r1 manage 1.3 K 2014-04-08 - 17:50 JoshuaThompson  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2020-08-19 - TWikiAdminUser
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox/SandboxArchive All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback