![tikz-Feynman 中的真空气泡](https://linux22.com/image/374001/tikz-Feynman%20%E4%B8%AD%E7%9A%84%E7%9C%9F%E7%A9%BA%E6%B0%94%E6%B3%A1.png)
我想画出$\phi^4$理论真空泡。最简单的是“8字形”,文档中根本没有提到这种图。我找不到手动设置顶点并绘制它的方法。帮忙吗?
答案1
这是一个不需要 lualatex 的示例,即可上传到 arXiv。
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz-feynman}
\tikzfeynmanset{compat=1.1.0}
\begin{document}
\begin{align}
\Delta E&~=~
\begin{tikzpicture}[line width=.7pt,baseline=(v.south)]
\begin{feynman}
\vertex (v);
\vertex[above=2cm of v](t);
\vertex[below=2cm of v](b);
\diagram*{
(v) -- [scalar,out=135,in=180] (t) --[scalar,out=0,in=45] (v)
-- [scalar,out=-135,in=180] (b) --[scalar,out=0,in=-45] (v)
};
\draw[fill=black] (v) circle (2pt);
\end{feynman}
\end{tikzpicture}\;.
\end{align}
If you really want the diagram to be centerd vertically, you could use
\verb|\vcenter|.
\begin{align}
\Delta E&~=~\vcenter{\hbox{
\begin{tikzpicture}[line width=.7pt]
\begin{feynman}
\vertex (v);
\vertex[above=2cm of v](t);
\vertex[below=2cm of v](b);
\diagram*{
(v) -- [scalar,out=135,in=180] (t) --[scalar,out=0,in=45] (v)
-- [scalar,out=-135,in=180] (b) --[scalar,out=0,in=-45] (v)
};
\draw[fill=black] (v) circle (2pt);
\end{feynman}
\end{tikzpicture}}}\;.
\end{align}
\end{document}