使用 jaxodraw-2.1-0 绘制费曼图

使用 jaxodraw-2.1-0 绘制费曼图

我想用它jaxodraw来画漂亮的费曼图。我已经从这里下载了二进制文件http://jaxodraw.sourceforge.net/download/index.html并且程序运行良好。

我的问题是,一旦我运行pdflatex包含导出的代码的文件jaxodraw,我只会得到标签和任何图表。

这是我的.tex文件:

\documentclass[a4paper]{article}
\usepackage{axodraw4j}
\usepackage{pstricks}
\usepackage{color}

\setlength{\oddsidemargin}{0pt}
\setlength{\evensidemargin}{0pt}
\setlength{\topmargin}{0pt}
\setlength{\headheight}{0pt}
\setlength{\headsep}{0pt}
\setlength{\topskip}{0pt}
\setlength{\footskip}{0pt}
\setlength{\textwidth}{\paperwidth}
\addtolength{\textwidth}{-2in}
\setlength{\textheight}{\paperheight}
\addtolength{\textheight}{-2in}

\pagestyle{empty}

\begin{document}

%%JaxoComment:
%%JaxoScale{1.0}

\begin{center}
\fcolorbox{white}{white}{
  \begin{picture}(410,314) (95,-47)
    \SetWidth{1.0}
    \SetColor{Black}
    \Line[arrow,arrowpos=0.5,arrowlength=5,arrowwidth=2,arrowinset=0.2](96,194)(192,122)
    \Line[arrow,arrowpos=0.5,arrowlength=5,arrowwidth=2,arrowinset=0.2](192,122)(96,50)
    \Photon(192,122)(288,122){7.5}{5}
    \Line[arrow,arrowpos=0.5,arrowlength=5,arrowwidth=2,arrowinset=0.2](288,122)(384,194)
    \Line[arrow,arrowpos=0.5,arrowlength=5,arrowwidth=2,arrowinset=0.2](384,50)(288,122)
    \Photon(384,194)(432,242){7.5}{3}
    \Line[arrow,arrowpos=0.5,arrowlength=5,arrowwidth=2,arrowinset=0.2](504,218)(432,242)
    \Line[arrow,arrowpos=0.5,arrowlength=5,arrowwidth=2,arrowinset=0.2](432,242)(504,266)
    \Line[arrow,arrowpos=0.5,arrowlength=5,arrowwidth=2,arrowinset=0.2](504,146)(384,194)
    \Line[arrow,arrowpos=0.5,arrowlength=5,arrowwidth=2,arrowinset=0.2](384,50)(504,98)
    \Photon(384,50)(432,2){7.5}{3}
    \Line[arrow,arrowpos=0.5,arrowlength=5,arrowwidth=2,arrowinset=0.2](504,-46)(432,2)
    \Line[arrow,arrowpos=0.5,arrowlength=5,arrowwidth=2,arrowinset=0.2](432,2)(504,26)
%
% There is a postscript text here!
% There is a postscript text here!
% There is a postscript text here!
\Text(139,50)[lb]{\Large{\Black{$\overline{q}$}}}
\Text(233,44)[lb]{\Large{\Black{$\bar{t}$}}}
  \end{picture}
}
\end{center}

\end{document}

我阅读了一些有关安装.sty文件的信息,然后下载了它并按照此说明进行操作。http://blog.irrepupavel.com/2007/02/installing-latex-style-files-sty-on.html,但它对我来说不起作用。

答案1

使用 编译后,您应该已经Non-PDF special ignored!在文件中收到了许多条目。.logpdflatex

您需要.tex按照latex-> dvips->ps2pdf顺序编译文件,因为您正在处理pstricks。有多种方法可以pstricks使用 来编译具有功能性的文档pdflatex,但前一种选择是最简单的解决方法。

在此处输入图片描述

相关内容