Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LaTeX question about Feynman Diagrams

  1. Nov 17, 2014 #1

    ChrisVer

    User Avatar
    Gold Member

    Has anyone of you tried to work with creating Feynman Graphs in LaTeX?

    I tried using the feynmf package, as explained here:
    https://www.sharelatex.com/learn/Feynman_diagrams
    and used the same introductory script:
    \begin{fmffile*}{diagram}
    \begin{fmfgraph}(40,25)
    \fmfleft{i1,i2}
    \fmfright{o1,o2}
    \fmf{fermion}{i1,v1,o1}
    \fmf{fermion}{i2,v2,o2}
    \fmf{photon}{v1,v2}
    \end{fmfgraph}
    \end{fmffile*}

    Trying to run it like this doesn't work, and during compiling I get the message that (\begin{fmffile*}{diagram}) is wrong... After removing the *, the compiling works, but I get a very weird graph which:
    1. Is very small
    2. I am not able to interfere with... (like changing the lines-vertices)

    Has anyone ever had that problem? any way to solve it?
     
  2. jcsd
  3. Nov 17, 2014 #2

    Orodruin

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Gold Member

    I have no experience with feynmf, I usually use axodraw and it works reasonably.
     
  4. Nov 17, 2014 #3

    ChrisVer

    User Avatar
    Gold Member

    Do you understand what the procedure:
    "latex-dvips-ps2pdf route"
    means? Because TeX won't make axodraw work with pdflatex...
     
  5. Nov 17, 2014 #4

    kith

    User Avatar
    Science Advisor

    I vaguely remember that I had to run metafont (?) whenever I changed something in a fmffile-environment before running pdflatex.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: LaTeX question about Feynman Diagrams
  1. Question on Feynman (Replies: 5)

Loading...