User Tools

Site Tools


latex:feynman_equation_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
latex:feynman_equation_file [2017/07/25 01:22] iwnlatex:feynman_equation_file [2023/02/04 15:46] (current) iwn
Line 1: Line 1:
-This file show how you can typset a text with Feynman diagrams in equations.+This file show how you can typset a text with Feynman diagrams in equations. See [[latex:feynman_file|these instructions]] to compile the diagrams without the need for extra scripts or commands.
  
-{{ latex:feynman_equations.png ? 2000 }}+{{ latex:feynman:feynman_equations.png ? 2000 }}
  
 <code latex feynman_equations.tex> <code latex feynman_equations.tex>
 +% !TEX program = pdflatexmk
 +% !TEX parameter = -shell-escape
 % Author: Izaak Neutelings (July 2017) % Author: Izaak Neutelings (July 2017)
- +\documentclass[a4paper,12pt]{article}
-\documentclass[10pt,a4paper]{article}+
 \usepackage[margin=2.4cm]{geometry} % margins \usepackage[margin=2.4cm]{geometry} % margins
 \usepackage{amsmath} \usepackage{amsmath}
 \usepackage{graphicx} \usepackage{graphicx}
-\usepackage{feynmp} +\usepackage{feynmp-auto}
- +
-% macro to compile Feynman graphs without extra scripts +
-\DeclareGraphicsRule{*}{mps}{*}{} +
-\makeatletter +
-\def\endfmffile{ +
-  \fmfcmd{\p@rcent\space the end.^^J end.^^J endinput;+
-  \if@fmfio +
-    \immediate\closeout\@outfmf +
-  \fi +
-  %\ifnum\pdfshellescape=\@ne +
-  \ifnum\pdfshellescape>\z@ +
-    \immediate\write18{mpost \thefmffile} +
-  \fi} +
-\makeatother+
  
 \begin{document} \begin{document}
- 
- 
  
 \section{Typesetting equations with Feynman diagrams} \section{Typesetting equations with Feynman diagrams}
Line 52: Line 37:
  
 % SUSY % SUSY
-One solution to avoid finetuning in Eq.~\eqref{eq:hierarchy_problem} is supersymmetry (SUSY), which assumes each fermion has a scalar superpartner. SUSY will introduce an extra loop diagram: \vspace{5mm}+To avoid finetuning in Eq.~\eqref{eq:hierarchy_problem}, one can introduce supersymmetry (SUSY), which assumes each fermion has a scalar superpartner. SUSY will introduce an extra loop diagram: \vspace{5mm}
 \begin{equation}\label{eq:hierarchy_problem_SUSY} \begin{equation}\label{eq:hierarchy_problem_SUSY}
   \begin{fmffile}{higgs_mass_correction_SUSY}   \begin{fmffile}{higgs_mass_correction_SUSY}
Line 83: Line 68:
  
 % VLQ % VLQ
-Yet another solution are vector-like quarks (VLQs): \vspace{5mm}+Yet another solution to finetuning are models with vector-like quarks (VLQs): \vspace{5mm}
 \begin{equation}\label{eq:hierarchy_problem_VLQ} \begin{equation}\label{eq:hierarchy_problem_VLQ}
 \begin{fmffile}{higgs_mass_correction_VLQ} \begin{fmffile}{higgs_mass_correction_VLQ}
Line 126: Line 111:
 Notice that in the code, \verb|\,| was used to add extra space between the diagrams and math symbols. Alternatively, you can use the wider \verb|\quad|. Notice that in the code, \verb|\,| was used to add extra space between the diagrams and math symbols. Alternatively, you can use the wider \verb|\quad|.
  
-Further notice that the stop $\widetilde{\text{t}}$ and VLQ top partner T labels were sticking out, so an extra \verb|\vspace{5mm}| was needed above the equation to prevent these label from overlapping with the line above.\\+Because the stop label $\widetilde{\text{t}}$ and VLQ top partner T labels were sticking out, an extra \verb|\vspace{5mm}| was needed above the equation to prevent these label from overlapping with the line above.\\
  
-Note that equations with diagrams in the \verb|align| evironment might not compile. Instead, use the \verb|aligned| within the \verb|equation| environment. For example: +Equations with \verb|feymp| diagrams might not compile in the \verb|align| environment. Instead, use \verb|aligned| within the \verb|equation| environment. For example: 
-\begin{equation}\label{eq:hierarchy_problem}+\begin{equation}
 \begin{aligned} \begin{aligned}
   \Delta m_H^2 \,\, &=   \Delta m_H^2 \,\, &=
Line 149: Line 134:
 \end{equation} \end{equation}
  
-Another tip: use \verb|\\[10pt]| instead of just \verb|\\| at the end of a line in the \verb|aligned| environment to add extra vertical white space between two equations. +Another tip: use \verb|\\[10pt]| instead of just \verb|\\| at the end of a line in the \verb|aligned| environment to add extra vertical white space between two lines of equations.
- +
  
 \end{document} \end{document}
 </code> </code>
latex/feynman_equation_file.1500938544.txt.gz · Last modified: 2017/07/25 01:22 by iwn