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 Maven
to create the executable
jaxodraw.jar
file (see the section on
Compiling the sources). The binary
distributions already contain a pre-compiled jaxodraw.jar
file, which can
then be executed with the command
java -jar jaxodraw-xxx.jar
in 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 of JaxoDraw supports the following command line parameters:
--version
--help
--info
-verbose
-debug
-verbose
.
-quiet
-nosplash
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
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
command of JaxoDraw, these colors will be used as
defined in the ->
dvipscolordvi
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
.
The file ->
dvipspscolor.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. From version 3.0 on, both text modesmay be used at the same time in a graph. Prior to version 3.0, they would 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).
Postscript text mode
When entering the Postscript text mode, the user may enter a text string that will appear directly on screen and in any generated output (i.e., also in any printer output). In edit mode, the user may choose the text size and font of the text object. A set of Greek characters is available via a syntax that is derived from the corresponding LaTeX commands:
![]() |
\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
|
Note that no $
signs are necessary for these commands
(any $
signs will appear verbatim on the screen). If the user
enters a string starting with a "\
" that is not recognized as
a valid Greek letter, it will be replaced by a question mark "?".
Note also that not all fonts are able to display greek characters.
If you see no greek characters in your output, try a different font family.
Super- and subscripts are available in some rudimentary form via a
syntax that is again derived from the corresponding LaTeX syntax,
i.e., for
you would type
A^{\mu}_{\nu}
. Note again
that no $ signs are necessary and that the brackets are always
required even if there is just one character as an argument.
Curly brackets are implemented via a syntax that
is again inspired by LaTeX: \{
and \}
.
LaTeX text mode
From version 3.0 on, any LaTeX text is directly rendered on-screen using the
JLaTeXMath library.
Prior to version 3.0, a LaTeX text was only visible after an external LaTeX compilation,
this functionality has been extracted into the axodraw4j-plugin
.
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).
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.
This functionality was added to JaxoDraw in version 3.0. It allows to attach two handles of any two objects so they can be moved together.
To attach two objects, the objects are first selected (via the select edit mode or the right-click and drag method) and then attached via the Attach edit mode (or the menu entry in the pop-up menu). Note that only two objects may be attached at a time and the handles that are attached are those whose distance is minimal between the two objects.
The following table gives an overview of the currently recognized keyboard shortcuts
in JaxoDraw.
The DEFAULT
meta-mask is the appropriate accelerator key for menu shortcuts
on the running platform, i.e. on Windows/Linux this defaults to the Ctrl
key
and on Macs to the Cmd
key.
DEFAULT-A |
Select all | DEFAULT-B |
Show toolbar | ALT-B |
Background |
DEFAULT-C |
Copy | ALT-C |
Duplicate | SHIfT-C |
Vertex: circle-cross |
DEFAULT-D |
Description | SHIFT-D |
Vertex: dot | ALT-D |
Delete |
Delete |
Clear | Shift-Delete |
Clear all | E |
English |
ALT-E |
Edit | F |
French | DEFAULT-F |
Statusbar |
ALT-F |
Foreground | G |
German | DEFAULT-G |
Gridbar |
SHIFT-G |
User Guide | ALT-G |
Select | CTRL-H |
Group selection |
SHIFT+CTRL-H |
Ungroup selection | I |
Italian | SHIFT-I |
System Info |
DEFAULT-L |
Look & Feel | SHIFT-L |
Log View | ALT-L |
Color |
ALT-M |
Move | DEFAULT-N |
New graph | ALT-N |
Ungroup |
DEFAULT-O |
Open file | SHIFT-O |
Vertex: diamond | DEFAULT-P |
|
DEFAULT-Q |
Quit | DEFAULT-R |
Import | DEFAULT+SHIFT-R |
Export |
ALT-R |
Resize | S |
Spanish | DEFAULT-S |
Save file |
DEFAULT+SHIFT-S |
Save as | SHIFT-S |
Vertex: square | ALT-S |
Refresh |
DEFAULT-T |
New tab | DEFAULT-U |
Preferences | DEFAULT-V |
Paste |
DEFAULT-W |
Close | SHIFT-W |
Web Site | DEFAULT+SHIFT-W |
Close all |
DEFAULT-X |
Cut selection | SHIFT-X |
Vertex: cross | DEFAULT-Y |
Redo |
DEFAULT-Z |
Undo | ALT-Z |
Zoom | ? |
About |
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 current list of available plugins. As of version 3.0, there are plugins available for export to LaTeX (axodraw4j), PDF, Text, Serialization and SVG formats.
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 --info
and
java -jar jaxodraw-xxx.jar --version
commands (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 -debug
and 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
https://jaxodraw.sourceforge.io/
Please check these pages and also the FAQ and Known problems sections of this document before reporting any bugs.
Prev | Home | Next |