You need the fig2dev program in the TransFig package in addition to xfig to be complete. The fig2dev program is the program which allows you to print figures and export them to various languages and formats such as PostScript, GIF, JPEG, etc.
Related Software
You can get the source from ftp://epb.lbl.gov/xfig, http://www.xfig.org/xfigdist, ftp://ftp.x.org/contrib/applications/drawing_tools/xfig and its mirror sites or from any CTAN machine ( ftp://ftp.tex.ac.uk/pub/archive/graphics, for example).
If you want to install xfig in a directory other than
the default X11 binary directory:
add "BINDIR=<directory>" at the
top of the Imakefile, where <directory> is the full path of the
directory in which you want xfig to be installed.
Also, you may have to redefine MKDIRHIER because make looks for it relative to
the BINDIR variable.
Finally, uncomment and change XAPPLOADDIR to the directory where you want
the app-defaults resource files to go. You will have to use the
environment variable XAPPLRESDIR in your shell to point to this directory.
To use JPEG, you must have JPEG library (Version 5b or later).
If you already has the JPEG library installed in your system area then make
sure the USEINSTALLEDJPEG variable is uncommented (the default).
If you don't have JPEG installed, get the source from
ftp://ftp.uu.net/graphics/jpeg
or ftp://ftp.x.org/contrib/libraries
and comment out the USEINSTALLEDJPEG variable,
and set the JPEGLIBDIR variable to the directory
where source of JPEG library is stored.
If you don't want JPEG support, comment out `#define USEJPEG' using the XCOMM comment directive (e.g. XCOMM #define USEJPEG).
You need the PNG library (-lpng) and the zlib (-lz) compression library.
You can find the PNG sources at http://www.libpng.org/pub/png/libpng.html and
the zlib sources at ftp://ftp.cdrom.com/pub/infozip/zlib.
To enable XPM support, uncomment `#define USEXPM'
and modify the definition of XPMLIBDIR if necessary.
To use XPM, you must have XPM3 package (Version 3.4c or later).
If you want to use Xaw3d (Three-D Athena Widget) library,
uncomment `#define XAW3D',
and change the `XAW3DINC variable to point to the directory where your
3D Athena widget headers are located.
When Xaw3d is used instead of Xaw,
the buttons will appear 3 dimensional.
The Xaw3d library should be compiled without -DARROW_SCROLLBAR.
Small Icons -
If you have a small screen (e.g. 800x600 or so) you may want to use the small
mode panel buttons for xfig.
If so, uncomment the `#define USESMALLICONS' line.
If your system doesn't have strcasecmp()
and/or strncasecmp(), uncomment
If your system doesn't have strstr(),
uncomment `#define NOSTRSTR'.
If your system doesn't have strerror()
(but support sys_errlist),
uncomment `NEED_STRERROR = -DNEED_STRERROR'.
If you have a wheel mouse, uncomment the `#define WHEELMOUSE' line.
See wheel mouse
for a description of the wheel function in xfig.
If you want to enable internationalization facility of xfig,
uncomment ``#define I18N'' (remove (XCOMM).
See Internationalization for more information.
Suggestion to Package Maintainers: If you are preparing a package to be distributed to the world in the binary form, it is recommended to enable internationalization facility so that the package can be used also in Japan or Korea.
If you don't use make install and copy files manually, note that:
the xfig executable should go in your command search path,
Fig.ad and Fig-color.ad should go in the app-defaults
directory with the names Fig and Fig-color respectively,
The CompKeyDB file , the Doc/html directory, and the
xfig-howto.pdf and xfig.pdf files should be copied into
the directory specified by the XFIGLIBDIR variable in the Imakefile
If you don't want to use NFSS2 font selection for LaTeX text,
comment out `DDNFSS = -DNFSS' using the XCOMM directive.
If you don't want to use epsfig macros as distributes with LaTeX2e,
comment out `DDEPSF = -DEPSF' in the same way.
Hint: Users of LaTeX2e will probably want to include both of these options; users of LaTeX 2.09 will probably want to include neither.
To use JPEG,
you must have JPEG library (Version 5b or later).
If you already if the JPEG library installed in your system area then make
sure the USEINSTALLEDJPEG variable is uncommented (the default).
If you don't have JPEG installed, get the source from
ftp://ftp.uu.net/graphics/jpeg
or ftp://ftp.x.org/contrib/libraries
If you don't want JPEG support, comment out `#define USEJPEG' using the XCOMM comment directive (e.g. XCOMM #define USEJPEG).
You need the PNG library (-lpng) and the zlib (-lz) compression library.
You can find the PNG sources at http://www.libpng.org/pub/png/libpng.html and
the zlib sources at ftp://ftp.cdrom.com/pub/infozip/zlib.
To enable XPM support, uncomment `#define USEXPM'
and change XPMLIBDIR if necessary.
To use this facility,
you must have XPM3 package (Version 3.4c or later).
If your system doesn't have strcasecmp()
and/or strncasecmp(), uncomment
If your system doesn't have strstr(),
uncomment `#define NOSTRSTR'.
If your system doesn't have strerror()
(but support sys_errlist),
uncomment `NEED_STRERROR = -DNEED_STRERROR'.
On Solaris 2,
you must add -lnsl to LOCAL_LIBRARIES.
On HP-UX, you may need to reduce optimization level to +O2.
If you want to enable internationalization facility of fig2dev,
uncomment ``#define I18N'' (remove (XCOMM).
See Internationalization for more information.
See README and Imakefile for more details.
GhostScript must be compiled with pbmraw, ppmraw, pcx256, jpeg, and tiff24nc driver.
GhostScript can be found at ftp://prep.ai.mit.edu/pub/gnu and its mirror sites, or at ftp.cs.wisc.edu/ghost/aladdin.
Commands that may actually be used are: pbmtoxbm, pgmtopbm, pnmdepth, pnmscale, pnmtopng, pnmtotiff, ppmquant, ppmtoacad, ppmtogif, ppmtopcx, ppmtopgm, ppmtojpeg and ppmtoxpm.
netpbm can be found at
http://download.sourceforge.net/netpbm/
or
ftp://ftp.x.org/contrib/graphics
or its
mirror sites
in /contrib/graphics.
Be sure that it includes ppmtojpeg. This may be found only in the newer
releases, such as 9.0 and 9.1
Xaw3d (Three-D Athena Widget) library
XPM3 package
JPEG library
fig2dev (TransFig)
GhostScript
cdraw2fig
chemtool
figbuild
GIMP
gnuplot
grass2fig
gzip (gunzip)
hp2xx
jfig
mifXfig
Msphinx
netpbm
pic2fig
plot2fig
plotutils (GNU)
pstoedit
xfigbar and xfigpie
xgraph
xpaint
xv