Categories: Category tgif<< | Page list | >>
Tips for using LyX with Tgif....
Tgif is an interactive drawing tool that allows the user to draw and manipulate objects in the X Window system. It is similar to the xfig program. Tgif can also be used on Windows but you need to install Cygwin.
Like in xfig, you can insert LaTeX equations in images but, unlike xfig, you can see the final result directly in the image being edited. This means that you can have an idea of the space occupied by the equation without the need to postprocess it.
The interesting bit is that tgif allows using LyX for editing equations. By default it uses ps2epsi for generating an encapsulated postscript (eps) file with an embedded bitmap preview used by tgif itself for displaying the final result. Here you find a .sym (symbol) file adapted from the one distributed with tgif that instead uses epstool for embedding a bitmap preview, a couple of Bourne shell scripts, and a C program to be used only with certain versions of epstool.
You can open a file in tgif and double-click on an equation object to launch LyX. Edit the eqaution in LyX, then save the file and close LyX. The scripts should take the lyx file and convert it to an eps with bitmap preview and then import the eps file back into tgfif. This conversion process can take a few seconds in some cases.
Here is a list of the relevant files with some explanation:
The Tgif.DomainPath0 specifies both the name of the domain (the first string before the first ':' symbol) and a list of directories where symbol files are to be searched (the rest of the string after the first ':' symbol) in the same format as the PATH environment variable.
Vista- If you have issues with cygwin and vista, files.zip is a zip with file versions that may work for you. Install cygwin, compile and install tgif, soft link your LyXLauncher.exe file to your path, and copy the needed files above into your path.