Using LaTeX expressions in Xfig
This is a really cool method to get those awesome LaTeX expressions working with Xfig figures.
Before you enter a mathematical expression, make sure to turn "Special Flags" to "special" under "Text Flags".
Complete your figure with the drawings and don't forget to enter your expressions in math mode (i.e. $...$).
Save the figure as a *.fig file.
Now, export the figure using the "combined PS/LaTeX (both parts)" language.
Next, make a file name_of_fig.tex and put this in it:
Run LaTeX.
You will have a name_of_fig.dvi file.
Run the following to convert to *.eps:
You can now include this in your LaTeX document using the usual method.
Before you enter a mathematical expression, make sure to turn "Special Flags" to "special" under "Text Flags".
Complete your figure with the drawings and don't forget to enter your expressions in math mode (i.e. $...$).
Save the figure as a *.fig file.
Now, export the figure using the "combined PS/LaTeX (both parts)" language.
Next, make a file name_of_fig.tex and put this in it:
\documentclass{article}
\usepackage{epsfig}
\usepackage{color}
\setlength{\textwidth}{100cm}
\setlength{\textheight}{100cm}
\begin{document}
\pagestyle{empty}
\input{name_of_file.pstex_t}
\end{document}
Run LaTeX.
You will have a name_of_fig.dvi file.
Run the following to convert to *.eps:
[silverstreak@localhost]$ dvips -E name_of_file.dvi -o name_of_file.eps
You can now include this in your LaTeX document using the usual method.
0 Comments:
Post a Comment
<< Home