我正在尝试使用 tikz-feynman 包生成以下费曼图
我有以下代码:
\documentclass{article}
\usepackage[compat=1.1.0]{tikz-feynman}
\usepackage{graphicx}
\usepackage{color}
\usetikzlibrary{decorations.markings}
\usepackage{forest}
\PreviewEnvironment{tikzpicture}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\usepackage{feynmf}
\begin{document}
\begin{figure}[H]
\begin{tikzpicture}
\begin{feynman}
\vertex [small, dot] (b) {};
\vertex [left=3cm of b, Gray!40!Black] (a) {$d_R$};
\vertex [right=3.0cm of b, Gray!40!Black] (c) {$u_R$};
\vertex [below=0.75cm of b] (d) {};
\vertex [small, dot, below=0.75cm of d] (e) {};
\vertex [right=2cm of e, NavyBlue] (f) {$e_L^-$};
\vertex [small, below=1.8cm of e] (g) {};
\diagram* {
(a) -- [fermion, Gray!40!Black, line width=0.35mm] (b) -- [fermion, Gray!40!Black, line width=0.35mm] (c),
(b) -- [charged boson, line width=0.35mm, OliveGreen, edge label=$W^-_R$] (d)-- [charged boson, line width=0.35mm, OliveGreen, edge label=$W^-_L$] (e),
(b) -- [boson, insertion=0.5, line width=0.35mm, OliveGreen] (e),
(e) -- [fermion, line width=0.35mm, NavyBlue] (f),
(e) -- [anti fermion, line width=0.35mm, BrickRed, edge label=$\color{BrickRed}\nu_{eL}$] (g),
};
\end{feynman}
\end{tikzpicture}
\end{figure}
\end{document}
生成以下图片
有人有解决办法吗?非常感谢!
答案1
请考虑发布完整的示例而不是代码片段。
\documentclass{article}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz-feynman}
\begin{document}
\begin{figure}[htb]
\begin{tikzpicture}
\begin{feynman}
\vertex [small, dot, label=90:\tiny{$V+A$}] (b) {};
\vertex [left=3cm of b, Gray!40!Black] (a) {$d_\mathrm{R}$};
\vertex [right=3.0cm of b, Gray!40!Black] (c) {$u_\mathrm{R}$};
\vertex [small, dot, below=1.5cm of b, label=350:\tiny{$V-A$}, label=180:\small{$\color{BrickRed} \sum_{i}[U_{ei}\nu_{iL}+S_{ei}N^c_{iR}]$}] (e) {};
\path (b) -- (e) coordinate[midway] (d);
\vertex [right=2cm of e, NavyBlue] (f) {$e_\mathrm{L}^-$};
\vertex [small, below=1.8cm of e] (g) {};
\diagram* {
(a) -- [fermion, Gray!40!Black, line width=0.35mm] (b) -- [fermion, Gray!40!Black, line width=0.35mm] (c),
(b) -- [charged boson, line width=0.35mm, OliveGreen, edge label=$W^-_\mathrm{R}$] (d)--
[insertion=0,charged boson, line width=0.35mm, OliveGreen, edge label=$W^-_\mathrm{L}$] (e),
(e) -- [fermion, line width=0.35mm, NavyBlue] (f),
(e) -- [anti fermion, line width=0.35mm, BrickRed, edge label=$\color{BrickRed}\nu_{eL}$] (g),
};
\end{feynman}
\end{tikzpicture}
\end{figure}
\end{document}