![如何在我的费曼图上获得垂直线?](https://linux22.com/image/314229/%E5%A6%82%E4%BD%95%E5%9C%A8%E6%88%91%E7%9A%84%E8%B4%B9%E6%9B%BC%E5%9B%BE%E4%B8%8A%E8%8E%B7%E5%BE%97%E5%9E%82%E7%9B%B4%E7%BA%BF%EF%BC%9F.png)
我制作了这张费曼图:
\documentclass[a4paper]{article}
\usepackage{feynmp-auto}
\begin{document}
\begin{fmffile}{loop}
\begin{equation}
\begin{fmfgraph*}(70,50)
\fmfleft{q1}
\fmfright{q4}
\fmftop{q2,q3}
\fmflabel{$\infty$}{q1}
\fmflabel{$1$}{q2}
\fmflabel{$z$}{q3}
\fmflabel{$0$}{q4}
\fmf{plain}{v1,q2}
\fmf{plain}{v2,q3}
\fmf{plain}{v2,q4}
\fmf{plain}{v1,q1}
\fmf{plain,label=$q$}{v1,v2}
\end{fmfgraph*}
\end{equation}
\end{fmffile}
\end{document}
这使
但我希望$\infty$
和0
线为水平线, 和1
线z
为垂直线。我该怎么做?
答案1
基于答案的贡萨洛·梅迪纳,我尝试按照您的要求创建一个费曼图。我不确定我理解得对不对?但据我所知,您要求的是两条水平线和两条垂直线的费曼图?
\documentclass[11pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.markings}
\begin{document}
\tikzset{
line/.style={thick, decorate, draw=black,}
}
\begin{tikzpicture}[node distance=1cm and 1.5cm]
\coordinate[label=above:1] (e1);
\coordinate[below=of e1] (aux1);
\coordinate[left=of aux1,label=left:$\infty$] (e2);
\coordinate[right=3cm of aux1] (aux2);
\coordinate[above=of aux2,label=above:z] (e3);
\coordinate[right=of aux2,label=right:0] (e4);
\draw[line] (e1) -- (aux1);
\draw[line] (aux1) -- (e2);
\draw[line] (e3) -- (aux2);
\draw[line] (aux2) -- (e4);
\draw[line] (aux1) -- node[label=below:q] {} (aux2);
\end{tikzpicture}
\end{document}
希望我正确理解了你的问题?