Installing axodraw4j.sty

From version 2.0 on, JaxoDraw uses its own LaTeX style file axodraw4j. This package is derived from J. Vermaseren's axodraw style file, which was used in earlier versions by JaxoDraw. axodraw4j is supposed to be completely backward compatible with axodraw, ie any graphs written for axodraw will also be processed correctly by axodraw4j. There are just a few additions for the drawing of Bezier curves and the resizing of arrows.

We do not want to promote axodraw4j for general usage yet, because it is still in an incomplete state at this point. However, you need to install axodraw4j if you want to use the LaTeX-EPS export feature of JaxoDraw. For documentation on the package please consult the original axodraw user guide by J. Vermaseren.

Note: It is not necessary to install axodraw4j in order to run JaxoDraw. You will just not be able to use the LaTeX/LaTeX - EPS export options but you may still generate direct Postscript output of your Feynman diagrams.

In the current version of JaxoDraw we distribute a modified version of J. Vermaseren's axodraw package (with kind permission of the author) in the distribution home directory. You have to install axodraw4j.sty such that LaTeX can find it on your system. This appendix describes how to do that.

First get the axodraw4j.sty file from the JaxoDraw distribution home directory. axodraw4j.sty is largely backward compatible with axodraw i.e. you will be able to compile all you old tex files with the new style file.

Please refer to the axodraw user guide for a detailed documentation of the package. The documentation is available from the axodraw web site.

The documentation for axodraw4j.sty is available from the JaxoDraw web site. We shall only outline here how you make axodraw available on your system and how you use it with the LaTeX output from JaxoDraw.

Linux instructions

For installation, you have two options: if you intend to use axodraw4j just for yourself on a multi-user platform, you may install it locally; if you want to make it available for all the users on the system, you should do a global installation. Note that you will need root privileges for a global installation.

Installing axodraw4j locally

The easiest way to use axodraw4j is to put the axodraw4j.sty file in the same directory as your LaTeX source file (like the one produced by JaxoDraw via the Export -> LaTeX command). This is usually the same directory where you execute the program (but note that you cannot execute JaxoDraw from a different directory in this case). You can then run latex on your source file as usual, the style file will be found because the current directory is by default in the TEXINPUTS search path.

An alternative (better) way is to put the style file in a special directory (this is particularly useful if you have several style files which are not part of your standard LaTeX distribution). Let's say you put it into the directory latex/ in your home directory. You then have to set the TEXINPUTS variable to this path. If you are using bash, just do

export TEXINPUTS=$HOME/latex//:

(the //: at the end tells LaTeX also to look into sub-directories of this path). If you want to make that permanent, you should put this line into your .bash_profile file. You will then be able to start JaxoDraw from any directory, independently of the location of axodraw4j.sty.

Installing axodraw4j system-wide

Installing axodraw4j system wide is very easy. Just put the style file somewhere in the global search path of your LaTeX distribution (for TeTeX, typically /usr/share/texmf/tex/latex/misc/) and update the TEX database with

mktexlsr

(you will have to be root for doing this). Note that there is also an rpm package of axodraw4j available on the JaxoDraw downloads page, which may be used on Redhat-like systems.

Finally, always check the JaxoDraw web site for eventual binary installers.

Windows instructions

Under Windows, you have to do basically the same as under Linux. First put your axodraw4j.sty file into the MikTeX search tree (somewhere under /texmf/tex/latex/, replace the slash by a backslash!) and update your database with the command mktexlsr in the /texmf/tex/miktex/bin directory.


Prev Home Next