-
Notifications
You must be signed in to change notification settings - Fork 0
/
makelatex
executable file
·39 lines (34 loc) · 1000 Bytes
/
makelatex
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
#!/bin/bash
#
# bibtex stuff
#
pdflatex -shell-escape -draftmode -halt-on-error 0_researchnotes.tex
if [ $? -ne 0 ]; then
echo "Compilation failed! (You may have to comment this block out"
echo "if it's your first time compiling this document."
exit
fi
for auxfile in ch_*.aux; do
bibtex `basename $auxfile .aux`
done
for auxfile in ap_*.aux; do
bibtex `basename $auxfile .aux`
done
#
# feynman diagrams
#
diagrams=(fr123 fr4to17 fr18to21 fr22to25 fr26 prob1 prob2)
for diagram in "${diagrams[@]}"; do
if [ ! -f ${diagram}.mf ]; then mf ${diagram}; fi
done
#
# index
#
pdflatex -interaction=batchmode -shell-escape -draftmode 0_researchnotes.tex > /dev/null 2>&1
makeindex -s indexHeader.ist 0_researchnotes
python3 scripts/fixIndex.py
mv temp.idx 0_researchnotes.idx
mv temp.ind 0_researchnotes.ind
pdflatex -interaction=batchmode -shell-escape -draftmode 0_researchnotes.tex > /dev/null 2>&1
pdflatex -interaction=batchmode -shell-escape 0_researchnotes.tex
./distclean