我在这里使用了该应用程序: https://feynman.aivazis.com/
我将文件 feynman.sty 下载到与我的 TeX 文件相同的目录中,但它似乎不起作用。
代码如下:
\documentclass[11pt,a4paper]{article}
\usepackage{feynman}
\usepackage{amsmath}
\usepackage{slashed}
\begin{document}
\begin{feynman}
\fermion[showArrow=true, flip=true, label=$k$]{24.00, 9.00}{25.00, 9.00}
\fermion[showArrow=false]{23.00, 8.00}{24.00, 8.00}
\fermion[showArrow=false]{23.00, 9.00}{24.00, 8.00}
\electroweak[]{10.00, 9.00}{11.00, 10.00}
\fermion[]{4.00, 7.00}{5.00, 8.00}
\fermion[showArrow=false]{23.00, 7.00}{24.00, 8.00}
\fermion[showArrow=false]{23.00, 6.00}{24.00, 8.00}
\electroweak[]{7.00, 7.00}{8.00, 8.00}
\fermion[]{7.00, 6.00}{8.00, 7.00}
\fermion[]{10.00, 4.00}{11.00, 5.00}
\fermion[showArrow=true, flip=true, label=$k'$]{23.00, 10.00}{24.00, 9.00}
\fermion[showArrow=false, label=$P,M$, lineWidth=1]{24.00, 8.00}{25.00, 8.00}
\electroweak[label=$q$]{24.00, 8.00}{24.00, 9.00}\end{feynman}
\end{document}
如何解决这个问题?
编辑:这是我的费曼图的第二个代码:
\begin{feynman}
\electroweak[]{8.00, 10.00}{9.00, 11.00}
\fermion[]{7.00, 5.00}{8.00, 6.00}
\fermion[showArrow=false, label=$P,M$, labelDistance=0.50, labelLocation=1.66]{23.00, 10.00}{24.00, 10.00}
\electroweak[label=$q$]{23.00, 10.00}{23.00, 11.00}
\fermion[]{13.00, 7.00}{14.00, 8.00}
\fermion[showArrow=false]{22.00, 11.00}{23.00, 10.00}
\fermion[]{8.00, 4.00}{9.00, 5.00}
\fermion[]{7.00, 5.00}{8.00, 6.00}
\fermion[]{10.00, 11.00}{11.00, 12.00}
\fermion[showArrow=true, flip=true, label=$k'$]{22.00, 12.00}{23.00, 11.00}
\fermion[]{8.00, 7.00}{9.00, 8.00}
\fermion[]{8.00, 5.00}{9.00, 6.00}
\fermion[]{4.00, 7.00}{5.00, 8.00}
\fermion[showArrow=false]{22.00, 10.00}{23.00, 10.00}
\fermion[showArrow=false]{22.00, 8.00}{23.00, 10.00}
\fermion[showArrow=true, flip=true, label=$k$]{23.00, 11.00}{24.00, 11.00}
\fermion[showArrow=false]{22.00, 9.00}{23.00, 10.00}
\fermion[]{7.00, 4.00}{8.00, 5.00}
\end{feynman}
从上述网站中的应用程序来看,我的问题是,在我的 Bakom 编辑器中,图片在整个页面上都模糊不清,如何缩小它?以下是该图表在上述网站中的样子:
答案1
图表中有一堆虚假对象。移除它们后,我得到了
\documentclass[11pt,a4paper]{article}
\usepackage{feynman}
\usepackage{amsmath}
\usepackage{showframe} % to show the page frame
\begin{document}
\begin{center}
\begin{feynman}
\fermion[
showArrow=false,
label={$P,M$},
labelDistance=0.50,
labelLocation=1.66
]{23.00, 10.00}{24.00, 10.00}
\electroweak[label=$q$]{23.00, 10.00}{23.00, 11.00}
\fermion[showArrow=false]{22.00, 11.00}{23.00, 10.00}
\fermion[showArrow=true, flip=true, label=$k'$]{22.00, 12.00}{23.00, 11.00}
\fermion[showArrow=false]{22.00, 10.00}{23.00, 10.00}
\fermion[showArrow=false]{22.00, 8.00}{23.00, 10.00}
\fermion[showArrow=true, flip=true, label=$k$]{23.00, 11.00}{24.00, 11.00}
\fermion[showArrow=false]{22.00, 9.00}{23.00, 10.00}
\end{feynman}
\end{center}
\end{document}
请注意,包含逗号的标签应该用括号括起来:
label={$P,M$}