#!/bin/csh
#
# Assemble bits of LaTeX with common header
#
# 
# There is another version of LaTeX  under  /usr/local/teTeX/bin 
# which has the graphics packages !  Pete Gronbech
#

cd ~/thesis
set thesisfile = 'thesis'

set slave  = /usr/local/teTeX/bin 
#set slave = /datastorage2/tex/bin

# Look at tex manual  ( by man tex ) !!!!
# to see how to set things up !

################################################
setenv TEXINPUTS :datastorage2/tex/lib/texmf/tex/latex2e/base:.:/usr/local/lib/tex/macros:/lhcdisk/fox/latex/xypic/texinputs:/lhcdisk/fox/pstricks/pstricks/inputs
setenv TEXFONTS :.:/usr/local/lib/tex/fonts:/lhcdisk/fox/latex/xypic/texfonts:/datastorage2/tex/lib/texmf/fonts//

setenv MFINPUTS :.:/lhcdisk/fox/latex/xypic/mfinputs
################################################

rm -f MetaFile*

echo '######### LaTeX 1 ###########'
$slave/latex $thesisfile
echo '#############################'

echo '#############################'
mf '\mode:=localfont; input ./MetaFile.mf'
gftopk MetaFile.300gf


echo '######### LaTeX 2 ###########'
$slave/latex $thesisfile
echo '######### LaTeX 3 ###########'
$slave/latex $thesisfile
echo '#############################'

exit

dvips $thesisfile
echo '#############################'
gv ${thesisfile}.ps &
echo '#############################'
echo DONE.
exit




