How to import Xfig figure into LaTeX document1
1) Start Xfig with LaTeX options:
xfig -specialtext -latexfonts -startlatexFont default
2) Incorporate mathematical notation between $...$
into normal textbox.
3) Export figure as combined PS/LaTeX.
4) Create template TeX file template.tex
and input Xfig figure figure.pstex\_t
\usepackage{epsfig}
...
\input{figure.pstex_t}
5) Process template TeX file with LaTeX:
latex template.tex
6) Convert DVI output to PS:
dvips template.dvi -o template.ps
7) Convert from PS to EPS:
ps2eps -ignoreBB template.ps
8) Convert from EPS to PDF:
epstopdf template.eps
9) Alternatively, use wrapper scripts by Håvard Berland:
figtex2eps figure.xfig figtex2pdf figure.xfig
figtex2eps -pdf figure.xfig