Xfig is a version of the Fig graphics editor which runs under X Windows Version 11 windowing systems. This package can be used to draw block diagrams and figures. The graph can be exported into many kinds of output formats, e.g., LATEX, PiCTEX, or Encapsulated PostScript. For more information, please read the man pages on Xfig.
We recommend you to export your Xfig output in Encapsulated PostScript format, then use
\includegraphics (as described in
Section [*].[*].[*]) to
include them. If the Xfig drawing is larger than the dimensions of one
page, scale the drawing to fit within the dimensions of one page or
portions of the drawing will not appear in the thesis. There are some
restrictions on LATEX picture output. For example, the
length of a \line must be more than 10pt (or 1/7 in), the
diameter of a circle must be less than 1/2 inch, and the
diameter of a disk (\circle*) must be less than 0.2 inch. There
is an ellipse in Xfig, but there is no ellipse font in the
LATEX picture environment. If you draw an ellipse in Xfig and
export it in LATEX format to be used in the picture
environment, all you can get is an oval. There are no similar
restrictions if you select Encapsulated PostScript output.
Some LATEX fonts are available in the Xfig package that are compatible with the computer modern roman fonts. Times-Roman fonts are seemingly the best ones to use. If you need special characters or Greek letters, try the PSfrag package. PSfrag can replace a text string in a Encapsulated PostScript file with LATEX text or equations. For instance, if an Encapsulated PostScript figure has an angle to be denoted by , one can use the ``'' character from LATEX rather than drawing a in Xfig. There are three steps to use PSfrag:
\usepackage{psfrag} in the thesis.tex file before \begin{document}.
\psfrag commands to specify the text to replace. For the
example above, in Xfig place text ``q1'' where the
should appear in the figure and add the line \psfrag{q1}{$\theta_1$} to the thesis before the \includegraphics command for the figure.
\includegraphics command as usual.