xfig and LaTeX
Problem
I have done a picture in xfig. In this picture, there is text. I
would like to format this text with LaTeX. How can I do that
in less than 7 steps ?
Solution
- In xfig, choose the Edit tool.
- For each text element that you want to format with LaTeX
- Click on it. An edition window will appear.
- Set the Special Flag to Special.
- Press on the button Done to close the window.
- Click on the Export button, on top of xfig's window.
- First export your picture in the Combined
PS/LaTex (PS part) language.
- Then export your picture in the Combined
PS/LaTex (LaTeX part) langage.
- In your LaTeX file, put the line
\input{picture.pstex_t} where you want your picture to
appear. (The file picture.pstex_t
is the one created by xfig when you exported the LaTeX part of your picture.)
- Et voilą !
If you want to center your picture and add a caption, replace the line
\input{picture.pstex_t} (step 6) by (thanks Karim):
\begin{figure}
\begin{center}
\input{picture.pstex_t}
\caption{Your caption}
\end{center}
\end{figure}