TeXfig is a small tool which uses LaTeX for setting the text in xfig documents. This is useful for producing figures with complicated text elements like formulas.