-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile_main.sh
executable file
·26 lines (21 loc) · 1.02 KB
/
compile_main.sh
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
project="dissertation"
arg="main"
filters="Warning\|warning\|(/usr/\|.code.tex\|Copyright\|.out\|.map"
rm -f *.aux ./*/*.aux ./*/*/*.aux *.nav *.log ./*/*.log ./*/*/*.log *.out *.snm *.blg *.bbl *.toc "$arg.sh~" _region_.pdf _region_.tex > /dev/null 2>&1;
pdflatex --shell-escape -draftmode -interaction=batchmode "$arg" > /dev/null 2>&1;
bibtex -terse "$arg" ;
pdflatex --shell-escape -draftmode -interaction=batchmode "$arg" > /dev/null 2>&1;
pdflatex --shell-escape -draftmode -interaction=batchmode "$arg" > /dev/null 2>&1; # Necessary for the TOC, must be after bibtex.
pdflatex --shell-escape -interaction=nonstopmode -file-line-error "$arg" | grep -v "$filters"
rm -f *.aux ./*/*.aux ./*/*/*.aux *.nav *.out *.snm *.blg *.bbl *.toc *.log ./*/*.log ./*/*/*.log "$arg.sh~" _region_.pdf _region_.tex > /dev/null 2>&1;
# Copy dissertation
#cp "$arg".pdf "$project".pdf
#evince report.pdf;
#latex report ;
#latex report ;
#bibtex report ;
#latex report ;
#latex report ;
#dvips -o report.ps report.dvi ;
#ps2pdf report.ps ;
#rm report.ps ;