Index: mttroot/mtt/bin/trans/doc2dvi ================================================================== --- mttroot/mtt/bin/trans/doc2dvi +++ mttroot/mtt/bin/trans/doc2dvi @@ -13,22 +13,36 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.2 1998/04/15 18:40:43 peterg +## Run LateX three times +## ## Revision 1.1 1998/03/03 08:35:50 peterg ## Initial revision ## ############################################################### system=$1 +documenttype=$2 # Inform user -echo Creating $system.dvi +echo "Creating $system.dvi ($documenttype)" -#Run latex thrice +#Run latex , bibtex and makeindex latex $system.doc > doc2dvi.log +bibtex $system >> doc2dvi.log +latex $system.doc >> doc2dvi.log +latex $system.doc >> doc2dvi.log + +if [ "$documenttype" = "book" ]; then + makeindex $system >> doc2dvi.log +else + touch $system.ind +fi + latex $system.doc >> doc2dvi.log latex $system.doc >> doc2dvi.log # Make sure transformation succeeeds exit 0