我一直在尝试从 jaxodraw 导出 latex 文档。所需的软件包似乎是 axodraw4j。我有从以下网址下载的 64 位 Basic MikTeX Installer这里。MikTeX 通常会在需要时下载包,但它似乎不适用于 axodraw4j。
因此,我一直在尝试手动安装 Windows 10 笔记本电脑上的软件包。在笔记本电脑上搜索“amsmath”,我能够在 MikTeX 搜索树中找到其他软件包的位置。这是地址 (C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty)。我从这里并将其安装到以下地址(C:\Program Files\MiKTeX 2.9\tex\latex\axodraw4j\axodraw4j.sty)
我运行了以下代码。
\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}
但是,我得到的输出是“未找到文件‘axodraw4j.sty’。\usepackage”。我不确定我做错了什么。我可以将文件路径输入 usepackage 命令吗?或者有更好的方法来诊断问题?谢谢!