Newer
Older
Lecture_repo / Lectures_my / NumMet / 2016 / Lecture5 / tikzfeynman.sty
@mchrzasz mchrzasz on 12 Oct 2016 1 KB fixed small things
  1. % Tikz Feynman Diagrams
  2. % by Flip Tanedo
  3. % 4 January 2011, work in progress
  4.  
  5. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  6. %%% TIKZ - for drawing Feynman diagrams %%%%
  7. %%% ... use with pdflatex %%%%
  8. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  9.  
  10. \usepackage{tikz}
  11. \usetikzlibrary{arrows,shapes}
  12. \usetikzlibrary{trees}
  13. \usetikzlibrary{matrix,arrows} % For commutative diagram
  14. % http://www.felixl.de/commu.pdf
  15. \usetikzlibrary{positioning} % For "above of=" commands
  16. \usetikzlibrary{calc,through} % For coordinates
  17. \usetikzlibrary{decorations.pathreplacing} % For curly braces
  18. \usepackage[tikz]{bclogo} % For cute logo boxes
  19. \usepackage{pgffor} % For repeating patterns
  20.  
  21. \usetikzlibrary{decorations.pathmorphing} % For Feynman Diagrams
  22. \usetikzlibrary{decorations.markings}
  23. \tikzset{
  24. % >=stealth', %% Different kind of arrows
  25. vector/.style={decorate, decoration={snake}, draw},
  26. fermion/.style={postaction={decorate},
  27. decoration={markings,mark=at position .55 with {\arrow{>}}}},
  28. fermionbar/.style={draw, postaction={decorate},
  29. decoration={markings,mark=at position .55 with {\arrow{<}}}},
  30. fermionnoarrow/.style={},
  31. gluon/.style={decorate,
  32. decoration={coil,amplitude=4pt, segment length=5pt}},
  33. scalar/.style={dashed, postaction={decorate},
  34. decoration={markings,mark=at position .55 with {\arrow{>}}}},
  35. scalarbar/.style={dashed, postaction={decorate},
  36. decoration={markings,mark=at position .55 with {\arrow{<}}}},
  37. scalarnoarrow/.style={dashed,draw},
  38. %
  39. %% Special vectors (when you need to fine-tune wiggles)
  40. provector/.style={decorate, decoration={snake,amplitude=2.5pt}, draw},
  41. antivector/.style={decorate, decoration={snake,amplitude=-2.5pt}, draw},
  42. }
  43.