FILE=<filename> #to be filled by the user appropriately

latex "$FILE".tex
bibtex "$FILE"
latex "$FILE".tex
latex "$FILE".tex
dvips -t letter -Ppdf  -G0 "$FILE".dvi -o "$FILE".ps


gs -sDEVICE=pdfwrite -q -dBATCH -dNOPAUSE -dSAFER   -dPDFX   -dPDFSETTINGS=/prepress   -dAutoFilterColorImages=false   -dSubsetFonts=true -dEmbedAllFonts=true -dColorImageFilter=/FlateEncode   -dAutoFilterGrayImages=false -dCompatibilityLevel=1.5 -dGrayImageFilter=/FlateEncode -sOutputFile="$FILE".pdf "$FILE".ps



