XfigPad

This application provides a small scribble pad for Xfig, enabling the creation of mathematical formulas and equations directly editable within Xfig, based on the LaTeX-like syntax used in Lout.

XfigPad exports the selected math equation objects to Xfig's cut buffer (~/.xfig), allowing you to paste them as objects within Xfig.

Ruby script

xfigpad.rb 0.5c ... work with ruby-1.8
xfigpad.rb 0.5d ... support ruby-2.0.0 and ruby-1.8

ScreenShot


Requirements

XfigPad requires a Unix-like OS such as Linux, as it depends on the following applications.
I use XfigPad both Cygwin and CentOS, which provide compiled packages for these applications (with the exception of Lout on Cygwin, which is easily compiled).
ruby
ruby-1.8.5-31.el5_9 or 2.0.0
ruby-tcltk
ruby-tcltk-1.8.5-31.el5_9
lout (>=3.36)
http://savannah.nongnu.org/projects/lout/
lout-3.36-1.el5
pstoedit (>=3.62)
http://www.pstoedit.net/
( symbol 'mu' was not correctly coverted in ver. 3.50 )
gs
ghostscript-8.70-15.el5_9.3
xfig
xfig-3.2.4-21.3.el5

Example formula file

test.xfp