Hi!
Hi!

In order to provide a nice fax-frontend for the mgetty+sendfax package, I 
adapted XTeXShell to my needs: Based on the feature, that XTeXShell can be
customized via a setup-file, I added an extra "fax"-pushbutton with which you
can spool the actual TeX-file for faxing.

Based on a faxheader who contains the faxnumber after a certain keyword, you
simply compose your fax under TeX. If you've finished composing, you just
click on the "fax"-pushbutton and a small C-programm will be called, extracting
the faxnumber and calling faxspool with this number and the DVI-file. The fax 
will be send with the next faxrunq call.

In order to install the fax-functionality for XTeXShell and mgetty+sendfax, 
first get Tcl/Tk with the TclX extentions. If the XTeXShell runs properly,
change the commandlist section at the very end of the config-file .xtexsh.setup :

Eg I'm using the following commands:

----- snip ----
#*** (Name of widget, command)

set commandlist [list                                             \
        [list "TeX"    ":save tex :fname"]                        \
        [list "LaTeX"  ":save latex :fname"]                      \
        [list "XDVI"   "xdvi -s 4 -geometry 600x730 :fnamewoext.dvi"]       \
        [list "Print"  "lpr -d :fnamewoext.dvi"]  \
[list "Fax"    "fax :fnamewoext"]      ]
----- snip -----

Then compile the fax.c program, name the executable "fax" and store it somewhere 
in your searchpath. If you've installed the mgetty+sendfax package correctly, 
everything should work now. If not check the searchpaths and make sure that 
faxspool and fax are accessible.

In case of any problems, feel free to contact me. (But please don't flame me for 
any error, I'm neither a C- nor a TeX-wizard :^) Any improvements are welcome...)

Requirements:

mgetty+sendfax (of course... :^)
XTeXShell-0.91 (or newer, eg. from tsx-11.mit.edu in pub/linux/packages/TeX)
X-Windows (X11R5)
Tcl/Tk with TclX extentions

Enjoy, Fabian (fabian@vivian.rhein-main.de)