我最近下载了 Jaxodraw,用于构建费曼图。我的问题是,每当我以 LaTeX 格式导出代码时,都会收到以下错误:
File `pstricks.sty' not found. \usepackage
我尝试配置我的编译器以使用 XeLaTeX,但仍然收到错误。
以下是我想要编译的代码:
\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}(386,128) (111,-184)
\SetWidth{2.0}
\SetColor{Black}
\GOval(192,-128)(7,7)(0){0.882}
\SetWidth{1.0}
\Line[dash,dashsize=0.2](112,-80)(192,-128)
\Line[dash,dashsize=0.2](112,-176)(192,-128)
\SetWidth{2.0}
\GOval(304,-64)(7,7)(0){0.882}
\GOval(304,-176)(7,7)(0){0.882}
\GOval(416,-128)(7,7)(0){0.882}
\SetWidth{1.0}
\Line[dash,dashsize=0.2](496,-80)(416,-128)
\Line[dash,dashsize=0.2](496,-176)(416,-128)
\Bezier(192,-128)(224,-96)(256,-80)(304,-64)%JaxoID:FBez
\Bezier(192,-128)(240,-160)(272,-176)(304,-176)%JaxoID:FBez
\Bezier(304,-176)(352,-176)(400,-144)(416,-128)%JaxoID:FBez
\Bezier(304,-64)(352,-64)(384,-96)(416,-128)%JaxoID:FBez
\Arc(392,-120)(104.307,147.529,212.471)
\Arc[clock](216,-120)(104.307,32.471,-32.471)
\end{picture}
}
\end{center}
\end{document}
如果您能提供关于如何解决此错误的任何建议,我们将不胜感激。
答案1
你的示例不需要pstricks
。不要加载该包!