xemacs latex custimization

Jean Eid <[email protected]> Tue, 30 Nov 2004 16:02:00 -0500
Newsgroups gmane.emacs.xemacs.general
Message-ID <Pine.SGI.4.40.0411301554080.56824892-100000@origin.chass.utoronto.ca>
Hi,

I need to bind a key to do the following:
1) kill a process runnning on the current file
2) TeXify the file and create a dvi file from the .tex file
3) dvips the dvi file to create a .ps file
4) view the postscript file.


is there a way to do this? right now I have to do each seperately i.e. key
binding them to different keys and execute them sequentially. However, I
would like to come up with a function that does it all at the same time.

P.S 1) above is needed because xemacs complains that I cannot have two
processes running on the same file. This is so when I envoke gv to view
the ps file and execute C-c C-c


Any help is greatly appreciated. the only thing I thought of that I know
how to do is to have an executable bin bash file that does all 4 steps.
However, I would like to do it from whithin xemacs.


Thank you