我正在尝试从一篇文章中重现该图表:
我实现了这个目标:
如您所见,循环后的线条没有被绘制,以下是代码:
\documentclass[12pt,a4paper]{article}
\usepackage[compat=1.1.0]{tikz-feynman}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\begin{feynman}
\vertex (a1) {\(\overline b\)};
\vertex[right=1.5cm of a1] (a2);
\vertex[right=1cm of a2] (a3);
\vertex[right=1.5cm of a3] (a4) {\(\overline s\)};
\vertex[below=2em of a1] (b1) {\(u\)};
\vertex[below=2em of a4] (b2) {\(u\)};
\vertex at ($(a2)!0.5!(a3)!0.5cm!90:(a3)$) (d);
\vertex[above=1cm of d] (c1);
\vertex[above right=1cm of c1] (c2) {$l$};
\vertex[above left=1cm of c1] (c3) {$\overline{l}$};
\diagram* {
(a4) -- [fermion] (a3) -- [charged boson, edge label=$W^+$] (a2) -- [anti fermion] (a1),
(b1) -- [fermion] (b2),
(a2) -- [fermion, quarter left] (d) -- [fermion, quarter left] (a3),
};
(d) -- [photon] (c1);
(c1) -- [fermion] (c2);
(c1) -- [anti fermion] (c3);
\draw [decoration={brace}, decorate] (b1.south west) -- (a1.north west)
node [pos=0.5, left] {\(B^{+}\)};
\draw [decoration={brace}, decorate] (a4.north east) -- (b2.south east)
node [pos=0.5, right] {\(K^+\)};
\end{feynman}
\end{tikzpicture}
\caption{}
\end{figure}
\end{document}
我还没有介绍$\overline{u},\overline{c},\overline{t}$
标签。
答案1
我根据您的要求和使用带电 W+ 玻色子的变化调整了手册中的示例。基本上我的更改如下:
- 重命名标签或节点
content
- 删除
in/out
选项以实现直线 vertex c2
稍微移动一下- 留下了一些细微的差别
uct
- 引入
anti
-particles以保持一致性 - 水平“镜像”图表
- 忽略了
figure
环境,因为很容易添加
\documentclass[12pt,a4paper]{article}
\usepackage[compat=1.1.0]{tikz-feynman}
\begin{document}
\begin{tikzpicture}
\begin{feynman}
\vertex (a1) {\(\overline b\)};
\vertex[right=1.5cm of a1] (a2);
\vertex[right=1cm of a2] (a3);
\vertex[right=1.5cm of a3] (a4) {\(\overline s\)};% <<
\vertex[below=2em of a1] (b1) {\(u\)};% <<
\vertex[below=2em of a4] (b2) {\(u\)};% <<
%% See section 13.5 of PGF/TikZ manual
\vertex at ($(a2)!0.5!(a3)!0.7cm!90:(a3)$) (d);% <<
%% Equivalent way to obtain (d):
% \vertex at ($(b2)!0.5!(b3) + (0, -0.5cm)$) (d);
\vertex[above=of a4] (c1) {\(l^{-}\)};% <<
\vertex[above=2em of c1] (c3) {\(l^{+}\)};% <<
\vertex at ($(c1)!0.5!(c3) - (2.3cm, 0)$) (c2);
\diagram* {% <<
(a4) -- [fermion] (a3) -- [charged boson, edge label=$W^+$](a2) -- [fermion] (a1),
(b1) -- [fermion] (b2),
(c3) -- [fermion] (c2) -- [fermion] (c1),
(a2) -- [anti fermion, quarter left, edge label=\(uct\)] (d) -- [anti fermion, quarter left] (a3),
(d) -- [boson, edge label=\(\gamma / Z^{0}\)] (c2),
};
\draw [decoration={brace}, decorate] (b1.south west)
-- (a1.north west) node [pos=0.5, left] {\(B^{+}\)};
% << deleted 1 draw statement
\draw [decoration={brace}, decorate] (a4.north east)
-- (b2.south east) node [pos=0.5, right] {\(K^{+}\)};% <<
\end{feynman}
\end{tikzpicture}
\end{document}