build-thesis.bat 614 B

123456789101112131415161718192021222324
  1. rem Copyright (C) 2014-2020 by Thomas Auzinger <thomas@auzinger.name>
  2. @echo off
  3. rem Replace the 'x' in the next line with the name of the thesis' main LaTeX document without the '.tex' extension
  4. set SOURCE=x
  5. @echo on
  6. rem Build the thesis document
  7. pdflatex %SOURCE%
  8. bibtex %SOURCE%
  9. pdflatex %SOURCE%
  10. pdflatex %SOURCE%
  11. makeindex -t %SOURCE%.glg -s %SOURCE%.ist -o %SOURCE%.gls %SOURCE%.glo
  12. makeindex -t %SOURCE%.alg -s %SOURCE%.ist -o %SOURCE%.acr %SOURCE%.acn
  13. makeindex -t %SOURCE%.ilg -o %SOURCE%.ind %SOURCE%.idx
  14. pdflatex %SOURCE%
  15. pdflatex %SOURCE%
  16. @echo off
  17. echo.
  18. echo.
  19. echo Thesis document compiled.
  20. pause