Graphic using Xfig and LaTeX
     

Producing graphics using Xfig and LaTeX

Xifg is really useful for producing graphics which also contain some LaTeX formulas fonts etc. The following picture was put together using Xfig.

1. Open xfig and when you add text, you'll see a button for "text flags" - inside it, set "special flags" to "special". Then type latex symbols in maths mode, eg $\lambda$ etc.

2. Export the .fig file using the "file" -> "export" menu and choose "Combined pslatex (both parts)". This saves two files: filename.pstex and filename.pstex_t. Finally input the filename.pstex_t into your .tex file:

The package psfrag offers an other alternative. However it can be a bit messy to use.

  \begin{figure}[htp]
\centering
\input{filename.pstex_t}
\end{figure}



Nial Friel
Last modified: Wed May 11 14:22:21 BST 2005