Study note on Feynmf
Nov 21st, 2007 by umbriel
This is how we draw Feynman Diagrams in Latex. To fulfill the general requirement, I just use the package: feynmf. It can be downloaded from ubuntu forum for linux and it just goes with most of the ctex for windows.
For the grammar, there is a really nice and brief introduction to start:
osksn2.hep.sci.osaka-u.ac.jp/~taku/osx/fmfsamples.pdf
So I will not go to the detail of the grammar but just want to mention one thing, which spent me about two hours to find out the reason.
When you finish the tex file, usually, you will go to compile it. But with the \fmffile environment, the first time, it will meet a problem, saying that there is no filename.tfm file. But it will produce a file with .mf and the same file name as you defined in \fmffile environment. Here comes the problem, for most of the Tex compiler, if you compile the file again, as we do for the ref. part, the Feynman diagram will come out but without any label on propagator or vertex. So the proper way to do this is just after the first compiling, go to the terminal mode and use command:
mf filename.mf
Then press enter to go pass several “errors” and you get the .tfm file. Now if you compile it again, you will get the right result. It may be a small problem but since it is not mentioned anywhere on the net, I just post it. Good luck.
Good stuff. Thank you.
asymptote is another choice:)
To vasin: Can asymptote be used as paint software? I mean, no command lines.