-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.bat
31 lines (30 loc) · 1.03 KB
/
compile.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
rem This script comes from UESTCthesis project. It is now adapted without
rem changing.
rem
rem @author Huang Hongye <qrqiuren@users.noreply.github.com>
set TEXINPUTS=./dependences//;
set TEXMFDBS=./dependences;
set jobname=thesis
@echo off
call clean.bat
del %jobname%.pdf
if exist %jobname%.pdf (
echo 请关闭打开的%jobname%.pdf再重新执行。
pause
exit
)
pdflatex .\%jobname%.tex
makeindex -s %jobname%.ist -t %jobname%.glg -o %jobname%.gls %jobname%.glo
makeindex -s %jobname%.ist -t %jobname%.alg -o %jobname%.acr %jobname%.acn
bibtex .\%jobname%.aux
bibtex .\publications.aux
pdflatex .\%jobname%.tex
makeindex -s %jobname%.ist -t %jobname%.glg -o %jobname%.gls %jobname%.glo
makeindex -s %jobname%.ist -t %jobname%.alg -o %jobname%.acr %jobname%.acn
pdflatex .\%jobname%.tex
call clean.bat
cls
echo ****************************************************************************
echo 正式编译前应该访问https://github.com/shifujun/UESTCthesis检查模板是否有更新!
echo ****************************************************************************
pause