tgif is a great vector graphic program for creating simple eps figures
http://bourbon.usc.edu:8001/tgif/
I finally figured out how to use tgif to easily generate eps figures
with complex LaTeX math embedded. tgif can display / position / modify
the WYSIWYG equation and the LyX math editor can be used to edit the
equation in a WYSIWYG editor.
1. In tgif, get the equation examples to work with latex and ps2epsi
(or pstoepsi) This will let you create equation objects in tgif that
show up WYSIWYG in tgif. For help, see:
http://bourbon.usc.edu:8001/tgif/faq/latex.html
To use LyX to edit the math equation in tgif, Generate a nice tgif
equation object to use as a template using the following steps:
2. Right click on the equation and select edit attribute->header.
3. Blank out this file (erase the contents).
4. Right click on the equation, select footer, and blank that file.
5. Right click on the equation, select the eq attribute, and copy a
simple LyX text file into this file with pagestyle empty.
6. Put the following in the cmd attribute for the equation:
cd /tmp;
xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex --export ps;
xterm -geom 40x8+200+400 -e ps2epsi $(file_name).ps $(file_name).eps
7. Put the following in your ~/.Xdefaults
Tgif.Editor: xterm -title '%s' -e /usr/bin/lyx '%s'
and run the command:
xrdb ~/.Xdefaults
8. Restart tgif with you equation template.
Now, when you double click on the equation in tgif, the image / eps gets
updated automatically from the lyx file. You can then recolor, rotate,
or scale this image as you like in tgif.
When you right click on the equation and select equation attribute->eq,
you start LyX as your editor. You can edit the equation using the LyX
math editor WYSIWYG environment. Note that you will have to double
click the equation to get it to update.
More info and and example are available at:
http://opus.che.sc.edu/~gatzke/internal/#lyxandtgif
Ed Gatzke