The most convenient way to start JaxoDraw depends on your operating system and on how you installed the program. See the installation section for generic instructions on compiling and running JaxoDraw.
If you want to compile JaxoDraw yourself from sources, you have to use the ant script build.xml to create the executable jaxodraw.jar file (see the section on ant). The binary distributions already contain a pre-compiled jaxodraw.jar file, which can then be executed with the command
java -jar jaxodraw-xxx.jarin the current directory (xxx is the version number). Supposing you have a Java Runtime Environment installed and configured on your system, this will work on any platform.
The current version JaxoDraw-2.0 supports the following command line parameters:
By default, all parameters starting with '--' do not pop up the graphical user interface of JaxoDraw.
Furthermore, if you have saved an XML file with a JaxoGraph in an earlier session, you may read in this graph directly on the command line by supplying the file name as an argument (the extension of the file has to be .xml).
Drawing Feynman diagrams with JaxoDraw is pretty easy and self-explaining. The program has been designed with the main strategy to be easy to use. In particular, if you are familiar with the xfig program, you will have little problems to get used to JaxoDraw. In general, to draw an element of a Feynman diagram, you first choose the drawing mode by clicking on the corresponding button in the button panel, and then draw the object by left mouse-clicking and dragging on the canvas. Drawn objects may then be moved/resized or edited by choosing the corresponding button in the edit button panel and then clicking on one of the handles specifying the object.
A few things to note:
JaxoDraw allows the permanent setting of preferences via the Preferences menu. If you press the "Save" button for the first time in the Preferences dialog, the current settings are stored in a specific preferences file. The exact name and location of this file depends on your operating system. It is read automatically every time JaxoDraw is started. Normally, you should not edit this file manually, but use the Preferences menu dialog of the graphical user interface. See the Preferences menu item of the menu bar for more information on the items that may be saved on a permanent basis.
There are two color spaces that may be chosen in the Preferences menu: the colordvi space that restricts colors to the ones defined by the colordvi LaTeX class; and the 'complete' space, that lets you choose any color. If you use the complete space and do a LaTeX export, the colors will be adjusted to the 'closest' colordvi values. The following information applies to the colordvi space.
In the current version of JaxoDraw, the user may choose from a set of 84 colors that are presented in a convenient color chooser panel if the user clicks an object in color mode. The colors include all the 68 colors defined by the colordvi LaTeX class (on a standard TeTeX distribution, these may be found in /usr/share/texmf/tex/plain/dvips/colordvi.tex) and 16 gray scales. If figures with color are produced via the latex -> dvips command of JaxoDraw, these colors will be used as defined in the colordvi style file. For direct Postscript output, we have tried to reproduce as closely as possible the RGB values of these colors, but since there are no complete RGB specifications (for free), the output will not be exactly the same as in the LaTeX case.
As a reference, there are two files in the source distribution of JaxoDraw, that illustrate the differences. The latexcolor.ps file in the JaxoDraw/doc/ directory gives a collection of all the colors present in colordvi as produced by latex -> dvips. The file pscolor.ps in the same directory gives the corresponding collection as produced by direct Postscript output.
Notice that when using Blob, Box or Triangle objects, if the fill color is a gray scale, the line color will always be black. If you want a different line color, the fill color must not be a gray scale (but it can be the Gray color). This is done to mimic the behavior of the axodraw LaTeX style.
There are two ways of entering text in JaxoDraw: Postscript text mode and LaTeX text mode. Even though they may be used at the same time in a graph, they will appear mutually exclusive in any derived output (a warning message is displayed if a Postscript export/preview is attempted with some LaTeX text present in the graph, and vice versa).
\alpha | \lambda | \upsilon | \Lambda | ||||
\beta | \mu | \phi | \Xi | ||||
\gamma | \nu | \chi | \Pi | ||||
\delta | \xi | \psi | \Sigma | ||||
\epsilon | o | \omega | \Phi | ||||
\zeta | \pi | \vartheta | \Psi | ||||
\eta | \rho | \varphi | \Omega | ||||
\theta | \varsigma | \Gamma | |||||
\iota | \sigma | \Delta | |||||
\kappa | \tau | \Theta |
JaxoDraw allows the grouping of different objects into a single one so that they can be moved, resized and edited at the same time. Grouping groups is also allowed, and the hierarchy is always respected. To build a group of objects, first select the desired objects, then right click and select 'Group' from the drop-down menu.
Apart from grouping objects using the Select mode, one can use also the ``faint box'' method. At any time, it is possible to click the right mouse button on the canvas and by dragging, there will appear a faint gray box. Once the button is released, all objects entirely located inside this box will be grouped together. This method may be used also when the program is not in select mode, i.e., without having the Select button pressed.
It is possible to work with several graphs at a time by using the tabs of JaxoDraw. At the first start-up, the program just contains one tab ("Untitled"), you may add tabs with the New tab entry in the File menu and tabs may be closed with the Close entry. These operation are also presented in a pop-up menu if the user right-clicks on a tab. Notice that new tabs sharing the same name with existing opened tabs, will be automatically numbered. Objects from one graph may be copied to other graphs, using a copy and paste procedure treated in the next section.
It is possible to copy objects from one canvas to another one, by first copying them to the clipboard, and pasting the clipboard content into the desired canvas tab afterwards. To copy objects to the clipboard, select them (using the Select button or the 'faint box' method) and choose 'Edit - Copy' (notice that the previous clipboard content will be lost). Next click on the canvas tab were you want to paste the clipboard content and then click on the paste icon of the tool bar (alternatively you can use the Paste item of the Option menu, or right click on the canvas tab and choose the Paste entry from the pop-up menu).
JaxoDraw allows to import existing LaTeX files, even if they were not originally created by JaxoDraw. However, only commands that are known to JaxoDraw are actually recognized (that are commands that are used when exporting to a LaTeX file), unknown commands will be silently ignored. The commands known to JaxoDraw are:
\ArrowArc | \ArrowArcn | \ArrowLine | \CArc |
\CBox | \CCirc | \COval | \CTri |
\DashArrowArc | \DashArrowArcn | \DashArrowLine | \DashCArc |
\DashLine | \GBox | \GCirc | \GlueArc |
\Gluon | \GOval | \GTri | \Line |
\PhotonArc | \Photon | \SetColor | \SetWidth |
\Text | \usepackage | \Vertex | \ZigZag |
(see the axodraw user guide for documentation on these commands [3]). In addition, the following LaTeX commands are required:
\documentclass | \begin{document} | \begin{picture} |
If these ones are not found in the file to be imported, the import process is abandoned with a warning message.
Due to the specific algorithm internally used by JaxoDraw to draw triangles, the commands \GTri and \CTri will work only when the imported LaTeX file has been generated from JaxoDraw itself. Otherwise they will be ignored. Moreover, because of rounding errors in the export/import routines, sometimes the imported graphs may be slightly different from the original ones (possible differences being the number of wiggles/windings of photon/gluon objects and the position of objects). These differences are usually of one unit. Lines that start with %%\JaxoComment will be read in as a description of the graph while lines of the form %%\JaxoScale{scale} allow to read in a floating point value scale factor which is used internally by JaxoDraw to convert Java coordinates into LaTeX coordinates. If it is not given, the scale factor defaults to 1. Finally lines of the form %%\JaxoDrawID: are identifiers used by JaxoDraw to reconstruct some objects.
The WatchFile mode is switched on and off via a button in the tool bar. When switched on, a postscript preview will only export the current graph into a temporary file, but will not open it with the current default postscript viewer. This has the advantage that if you have already a postscript viewer window open, no new window will pop up, you can just redraw the graph in the old window. Note that for this to work, you need to switch on the WatchFile mode after your first preview operation, otherwise no postscript window will be opened in the first place.
Version 2.0 of JaxoDraw introduced a plugin architecture, in order to draw some functionality out of the JaxoDraw core. This makes it easy to use optional features, like export to uncommon formats, while keeping the size of the main program at a minimum.
Plugins are installed (and un-installed) using the Plugin Manager panel accessible from the Options menu. Once a plugin is installed, JaxoDraw will automatically recognize it at start-up and the corresponding functionality will be available for the session (eg export to some other file format).
Please check the JaxoDraw web site for a list of available plugins, at the time of this writing, there were plugins available for export to PDF and SVG format.
Note that it is also possible to write your own plugins for new export/import formats. A tutorial for doing that is available on the JaxoDraw web site.
Please send your comments, questions or bug reports to the jaxodraw-discuss mailing list:
jaxodraw-discuss@lists.sourceforge.net
When reporting bugs, you should be as specific as possible about the problem so that we can easily reproduce it. Include some information about your operating system, the Java version and the version of JaxoDraw that you are using. Include for instance the output of the
java -jar jaxodraw-xxx.jar --infoand
java -jar jaxodraw-xxx.jar --versioncommands (this information is also available under the Help menu of the graphical user interface). You should also try to run JaxoDraw in debug mode:
java -jar jaxodraw-xxx.jar -debugand check for any relevant information.
If you are having problems with the LaTeX compilation process, also include detailed information about your LaTeX distribution, the version of dvips, your Postscript viewer and any other information that may be relevant.
We will try to make all messages of general interest available on our Web-site
http://jaxodraw.sourceforge.net/Please check these pages and also the FAQ and Known problems sections of this document before reporting any bugs.
Prev | Home | Next |