XSteve's xfig page

I use XFig to draw graphics on my linux systems. Here are some tips for that program.

Change default settings via the app-defaults mechanism

  • On cygwin store the file as: c:/cygwin/etc/X11/app-defaults/Fig
  • On unix store the File Fig in a directory that is referenced by the XAPPLRESDIR environment variable (e.g.: setenv XAPPLRESDIR ~/xsteve-config/app-defaults, store Fig in that directory)
  • ! is the comment char in the app defaults file
  • You can find out the possible settings via 'man xfig'
! Contents of the file Fig
! Changes from xsteve
Fig.inches: off

!0:none 1:2mm 2:5mm 3:10mm 4:20mm
Fig.startgridmode: 2

!0:any 1:1mm 2:2mm 3:5mm 4:10mm 5:20mm
Fig.startposnmode: 3

Fig.zoom: 2.0

Fig.splash: False

User Libraries

XFig uses symbol libraries. You can add a subdirectory to make your own library available.
  • On Cygwin the following path is used: c:/cygwin/usr/X11R6/lib/X11/xfig/Libraries/
  • On Unix the following path is used: /usr/X11R6/lib/X11/xfig/Libraries/
  • I use the following command to create a symbolic link to my nlogic library:
    ln -s ~/data/xfiglib/nlogic /usr/X11R6/lib/X11/xfig/Libraries/nlogic'

My nlogic XFig User Library

I have created a simple library to draw digital schematics. It includes the following symbols:
  • 2-Input And Gate
  • D-FlipFlop
  • 2-Input Multiplexer
  • 2-Input Nand Gate
  • 2-Input Nor Gate
  • 2-Input Or Gate
  • Inverter
You can download the nlogic xfig library here. To use it, put it in the xfig Libraries path as described above.

Convert ps to fig

 pstoedit -f fig file.ps file.fig

Convert fig to eps

 fig2dev -L eps -m 1.00 -c file.fig file.eps

Back to my Programming Homepage

Last modified: Thu Apr 7 21:38:07 CEST 2005