[Tex/LaTex] Axodraw Package Manual Installation

axodraw4jpackages

I've been trying to export latex documents from jaxodraw. The package required appears to be axodraw4j. I have the Basic MikTeX Installer, 64-bit which I downloaded from here. MikTeX will typically download packages when required but it appears to not work for axodraw4j.

So, I've been attempting to manually install the package on my Windows 10 laptop. Searching my laptop for "amsmath," I was able to find the location of the other packages in the MikTeX search tree. Here is the address (C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty). I downloaded axodraw from here and installed it to the following address (C:\Program Files\MiKTeX 2.9\tex\latex\axodraw4j\axodraw4j.sty)

I ran the following code.

\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}

However, I get the output "File `axodraw4j.sty' not found. \usepackage." I'm not sure what I have done wrong. Could I just input the file pathway into the usepackage command? Or is there a better way to diagnose the problem? Thanks!

Best Answer

From the MiKTeX documentation:

Related Question