GasTeX: Graphs and Automata Simplified in TeX

version 2.7

Last update: January 15, 2005

JasTeX : the long-awaited graphical interface in Java for GasTeX.

It was developped for GasTeX 2.3 and has no tools to draw the new macros (polygons, curves, ...) introduced in GasTeX 2.4.
Here is a modified version by Pierre Moro. It is compatible with java 1.4 and 1.5 and it comply to the new syntax of \drawline.

New in version 2.7 (02/05/04)

gastex is now compatible with the xcolor package which allows very useful color expressions such as red!50!blue!60!white.

New in version 2.6 (23/04/04)

Improved precision of some computations.

New in version 2.5 (17/04/04)

The horizontal shifts that one gets sometimes (e.g. with overlays in presentations) should no more occur provided \nullfont is used inside the picture environment:
\begin{picture}(100,35)(-50,0)\nullfont
...
\end{picture}
\selectfont is automatically used by gastex for node or edge labels.
I found this solution looking in the package pgf (portable graphics format) by Till Tantau.
I also recommend his excellent beamer package for laptop presentations.

Introduction and examples

GasTeX is a set of LaTeX macros which allow to draw very easily graphs, automata, nets, diagrams, etc... under the picture environment of LaTeX. A picture with gastex basically consists of nodes and edges. Here are a few examples of pictures that are easily defined with gastex. and a whole lot of automata examples by Jean-Éric Pin.

Download

In order to use gastex you should download the following files: A Debian package for gastex is available here thanks to Thomas Skora.

Documentation

There is no real documentation for gastex. The best is to learn by examples (see above and the file ex-gastex.tex.
See also the file gastex.sty where all macros are documented,

Feedback

I hope you will find gastex helpful. Let me know if you have any problem or suggestion to improve gastex.
If you are using gastex, I'd like to know it so please send me an email and if you wish I'll let you know about new versions if any (I don't intend to spend much time in the near future).

Remarks

History since version 2.0

version 2.4: (New: 12/08/03) All these macros use gasset parameters and in particular: Nframe, Nfill, linecolor, fillcolor, dash, ...

Uncompatibility: The macro \drawline was introduced in version 2.1 to draw a line between two points. The new version allows to draw a line defined by an arbitrary number of points but the syntax is different. It was \drawline(x1,y1,x2,y2) and it is now \drawline(x1,y1)(x2,y2).

version 2.3:
(05/05/02) version 2.2: (03/01/02) version 2.1: version 2.01:

Known problems and (hopefully) solutions