#! /bin/csh
if (-e $1.lw) then
echo ""
echo "calling lw2nw"
echo ""
   lw2nw $1.lw > $1.nw
echo ""
echo "calling noweave -delay"
echo ""
   noweave -delay $1.nw > $1.temp

echo ""
echo "treating empty lines in code and taking care of pagebreaks"
echo ""
   emptyline $1.temp > $1.tex

else
echo ""
echo "file $1.lw does not exist"
echo ""
endif

