LaTeX Learn How to Draw Feynman Diagrams in MikTeX: A Step-By-Step Guide

Click For Summary
SUMMARY

This discussion focuses on drawing Feynman diagrams using the feynmf package in MikTeX 2.8 on Windows XP. The user encountered an issue where labels, specifically the label "$Z$", do not appear in the generated PDF. Other users confirmed that the code is correct and suggested that the problem likely lies with the MikTeX installation. A reinstallation of MikTeX is recommended as a potential solution to resolve the labeling issue.

PREREQUISITES
  • Familiarity with LaTeX document preparation system
  • Understanding of Feynman diagrams and their representation
  • Basic knowledge of the feynmf package for LaTeX
  • Experience with MikTeX installation and troubleshooting
NEXT STEPS
  • Research MikTeX 2.8 installation and troubleshooting techniques
  • Explore advanced features of the feynmf package for enhanced diagram labeling
  • Learn about alternative LaTeX packages for Feynman diagrams, such as TikZ-Feynman
  • Investigate common issues and solutions related to LaTeX PDF output
USEFUL FOR

This discussion is beneficial for physicists, researchers, and students who are creating Feynman diagrams using LaTeX, particularly those using MikTeX on older Windows systems.

thoms2543
Messages
51
Reaction score
0
I am trying to draw feynman diagram by using LaTeX code but the label in the code do not appear in the pdf(only the diagram appear). I am using the MikTeX 2.8 in windows XP and userpackage is feynmf. I have try several time and search through the web but I can't figure out any solution for this. Is anybody know how to solve this problem?e.g. this following is the code from some source

Code:
\documentclass{article}
\usepackage{feynmf}
\begin{document}
\setlength{\unitlength}{1mm}
An example of a Feynman graph drawn with Thorsten Ohl's \texttt{feynmf} package.
\begin{center}
\begin{fmffile}{feynexa}
\begin{fmfchar*}(40,25)
\fmfleft{em,ep}
\fmf{fermion}{em,Zee,ep}
\fmf{photon,label=$Z$}{Zee,Zff}
\fmf{fermion}{fb,Zff,f}
\fmfright{fb,f}
\fmfdot{Zee,Zff}
\end{fmfchar*}
\end{fmffile}
\end{center}
\end{document}
I only manage to get the diagram but the label Z does not appear.
 
Last edited by a moderator:
Physics news on Phys.org
I ran your code in Overleaf and got the following:

1564333433810.png


Seems there is no error in the code. Your MikTex might be the source of trouble. A reinstall might help.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
9K