Fig4TeX A TeX macro package for drawing figures and writing on figures
Yvon Lafranche (Université de Rennes 1)

 | Introduction | Reference Guide | Tutorial | Examples | Pdf Documentation |

→ This site is being rebuilt. Informations that are not yet updated are however available in the previous site.

## What is Fig4TeX ?

Fig4TeX is a set of TeX macros designed to create a figure at compilation time of the TeX document, and to write text on it in a straightforward way, using the TeX fonts, under total control of the user. These macros can also be used to write a legend on an existing figure, given as a file created by any other software (see Final document   in next section).
The macros can be used with the traditionnal plain TeX environment as well as with LaTeX, in both DVI and PDF modes. They have been designed from the user's point of view and can be helpful to design a figurative drawing as well as to build an accurate geometric construction based on points in 2D or in 3D, so that this macro package can even be considered as a kind of geometric modeller.

This site includes the following topics, which can be reached using the navigation toolbar on top of each page:

• macro package version 1.9 - November 14, 2011

 Unix* format DOS - Windows format Contents of the file README (~3 Kb) README (~3 Kb) Short presentation fig4tex.sty (~1 Kb) fig4tex.sty (~1 Kb) LaTeX interface to macro package fig4tex.tex (~212 Kb) fig4tex.tex (~216 Kb) Macro package fig4tex.tgz (~92 Kb) fig4tex.zip (~93 Kb) Archive containing the previous files, as well as previous version 1.8.4 for backward compatibility.
 * Unix refers to any Unix system including Linux and Mac OS X.

## Version history

### Version 1.9 - November 14, 2011

• User interface consistency improved: all macros now begin with \fig and graphical attributes management has been simplified. Change of names mainly affect \ps* graphical macros which are replaced by \figdraw* macros. In the same way, \pssetdefault and \psreset are replaced by \figsetdefault and \figreset, and \psset has been removed.
→ There is no direct compatibility with the previous version: old files must be updated to use new macro names or simply change `fig4tex` by `fig4tex184` in the package reference statement in the old files. The file `fig4tex184.tex` is the last previous public version of Fig4TeX and is part of the archive available for download (see above).
• New macros \figptinv, \figptsinv, \figget, \figreset and \figsetdefault.
• Extension of \figset range of use.

### Version 1.8.4 - May 5, 2007

• Check for compatibility with other packages enhanced.
• Creation of the `fig4tex.sty` file to allow the macro package to be loaded via the `\usepackage` LaTeX command.
• Logo macro `\FigforTeX` created.

### Version 1.8.2 - March 15, 2007

• Management of the graphical files simplified: see the section Graphical files handling in the PDF documentation.
Nota: Some browsers may not have the expected behaviour: instead of displaying the specified section targeted by the previous link inside the PDF file, the first page of the document is displayed, or the PDF file is simply downloaded if there is no PDF plug-in.

### Version 1.8.1 - February 16, 2007

• Bug fixed in \psbeginfig (introduced in previous version and related to graphical file managing when no filename is given).

### Version 1.8 - February 6, 2007

• PDF support : this new version allows to produce a PDF file using pdftex or pdflatex. The user has only to change the compilation engine from tex to pdftex or from latex to pdflatex. Nothing else is needed, the macros work in the same way as in previous versions.
• New macro \figinsertE to insert JBIG2, JPEG, PDF or PNG files in PDF mode.

### Version 1.7.7 - July 5, 2004

• Since \Diamond is redefined in some LaTeX packages, the macros \Ast, \Bullet, \Circ and \Diamond are suppressed and replaced by \figAst, \figBullet, \figCirc, \figDiamond.
Nota : To make a file immediately compatible with earlier versions, one can insert the following line after loading Fig4TeX :
```\let\Ast=\figAst \let\Bullet=\figBullet \let\Circ=\figCirc \let\Diamond=\figDiamond
```
• Bug fixed in switching color modes.
• Modification of the internal representation of points and joined text.

### Version 1.7.4 - June 27, 2003

• Internal improvements.

### Version 1.7.1 - February 14, 2003

• New macros \figptmap and \figptsmap allowing to define a mapping by a matrix.
• New macros \figwriteb* that takes into account the baseline of the text to be written.

### Version 1.6.3 - October 15, 2002

• Faster (and better) trigonometric computations.

### Version 1.6.1 - June 24, 2002

• Fixes a bug introduced in Version 1.5 in \figwrite* macros.

### Version 1.6 - March 15, 2002

• New definition of \figinit and \figsetview following the addition of the orthogonal projection.
• New macro \pslineF{Filename} to draw a broken line from coordinates of points which are read from data file Filename.
• Bug fixed in \figptrot macro (3d case).

### Version 1.5 - February 12, 2002

• "Unlimited" number of points.

### Version 1.4 - December 6, 2002

• macros \Ast, \Bullet, \Circ, \Diamond added to prevent vertical misalignement.

### Version 1.0 - September 4, 2001

• first public version.