-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple_latex_maker.sh
63 lines (57 loc) · 1.42 KB
/
simple_latex_maker.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
DATE=$(date +"date-%Y-%m-%d_time-%H-%M-%S")
# This sometimes fixes an issue in my Sierra that stops stuff being found. Uncomment this line if you find PATH issues on OSX.
# export PATH="$PATH:/Library/TeX/Distributions/Programs/texbin"
pdflatex thesis.tex
bibtex thesis.aux
makeglossaries thesis
makeglossaries chapter_introduction
makeglossaries chapter_tmcomposition
makeglossaries chapter_tailanchor
makeglossaries chapter_predictfunction
makeglossaries chapter_conclusions
pdflatex thesis.tex
makeglossaries thesis
makeglossaries chapter_introduction
makeglossaries chapter_tmcomposition
makeglossaries chapter_tailanchor
makeglossaries chapter_predictfunction
makeglossaries chapter_conclusions
pdflatex thesis.tex
pdflatex thesis.tex
pdftotext thesis.pdf
echo "New lines, Wordcount, Characters"
wc thesis.txt
cp thesis.pdf ~/Dropbox/Manchester-PhD-Thesis.pdf
cp thesis.pdf pdfs/$DATE.pdf
#Cleaning up the junk files
## Core latex/pdflatex auxiliary files:
rm thesis.aux
rm thesis.lof
#rm thesis.log
rm thesis.lot
rm thesis.fls
rm thesis.out
rm thesis.toc
rm thesis.fmt
rm thesis.fot
rm thesis.cb
rm thesis.cb2rm
rm thesis.dvi
rm thesis.acn
rm thesis.glo
rm thesis.ist
## Gloassary output logs
rm thesis.glo
rm thesis.ist
rm thesis.acr
rm thesis.alg
rm thesis.glg
rm thesis.gls
## Bibliography auxiliary files (bibtex/biblatex/biber):
rm thesis.bbl
rm thesis.bcf
rm thesis.blg
rm thesis-blx.aux
rm thesis-blx.bib
rm thesis.brf
rm thesis.run.xml