费曼图宏包的使用。无法编译出正确的图

2019-12-10 22:08发布

```tex %!TEX program=pdflatex \documentclass[a4paper,12pt,openany]{article} \usepackage[left=1.25in...

```tex %!TEX program=pdflatex \documentclass[a4paper,12pt,openany]{article} \usepackage[left=1.25in,right=1.25in,top=1in,bottom=1in]{geometry} \usepackage{amsmath,array,amssymb,framed,pstricks,xcolor,xspace} \usepackage{tikz-feynman} \usepackage[framed,amsmath,thmmarks]{ntheorem} \usepackage[utf8]{inputenc} \usepackage{fontenc} \usepackage[colorlinks,linkcolor=blue]{hyperref} \DeclareFixedFont{\tnrm}{OT1}{ptm}{m}{n}{12pt} \linespread{1.25} \begin{document} \feynmandiagram [horizontal= a to b]{ i1 -- [fermion] a -- [fermion] i2, a -- [photon] b, f1 -- [fermion] b -- [fermion] f2, } \end{document} ```