#! /bin/csh
if(! (-e $1.lw)) then
echo " file $1.lw does not exist"
exit
endif

lweave $1

echo ""
echo "calling latex"
echo ""
latex $1.tex 

