-
Notifications
You must be signed in to change notification settings - Fork 0
/
meta_latex_all.sh
executable file
·40 lines (30 loc) · 991 Bytes
/
meta_latex_all.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
#!/bin/bash
# Create directory if it doesn't exist
if [ ! -d "metafiles" ]; then
mkdir metafiles
fi
cd metafiles
if [ ! -d "build" ]; then
mkdir build
fi
cd ..
# Run latex and biber with metafiles as in-/output directories
lualatex -interaction=nonstopmode -shell-escape -output-directory=metafiles main
# Move the resulting pdf
mv metafiles/main.pdf [PhD_Thesis]JohnDoe.pdf
cd metafiles
biber main
# biber --validate_datamodel main
cd ..
# Make glossaries
makeglossaries -d metafiles main
# Run latex and biber with metafiles as in-/output directories
lualatex -interaction=nonstopmode -shell-escape -output-directory=metafiles main
# Move the resulting pdf
mv metafiles/main.pdf [PhD_Thesis]JohnDoe.pdf
# Make glossaries
makeglossaries -d metafiles main
# Run latex and biber with metafiles as in-/output directories
lualatex -interaction=nonstopmode -shell-escape -output-directory=metafiles main
# Move the resulting pdf
mv metafiles/main.pdf [PhD_Thesis]JohnDoe.pdf