答案1
以下是针对模仿您的图像的四种节点样式的基本定义的建议。
下面显示的输出来自pdflatex
,lualatex
定位有点偏离。
\documentclass[border=5mm]{standalone}
\usepackage{tikz-feynman}
\tikzset{
Sbase/.style={
circle,
draw,
minimum size=8mm, % increased from 3mm
/tikz/graphs/as={},
},
SA/.style={
Sbase,
path picture={
\draw (path picture bounding box.west) -- (path picture bounding box.east);
},
label={[yshift=-height("#1")]center:#1}
},
SB/.style={
Sbase,
path picture={
\draw (path picture bounding box.west) to[bend right=45] (path picture bounding box.north);
},
label={center:#1}
},
SC/.style={
Sbase,
path picture={
\draw (path picture bounding box.150) to[bend right=20] (path picture bounding box.30);
},
label={center:#1}
},
SD/.style={
Sbase,
path picture={
\draw (path picture bounding box.south) -- (path picture bounding box.north);
},
label={[xshift=width("#1")]center:#1}
},
SA/.default={},
SB/.default={},
SC/.default={},
SD/.default={},
}
\begin{document}
\feynmandiagram{
a[SA=1] -- b[SB=2] -- c[SC=3] -- d[SD=4]
};
\end{document}