-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_book_debug.sh
executable file
·50 lines (50 loc) · 2.15 KB
/
make_book_debug.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
#/bin/bash
python scripts/make_preamble.py
python scripts/make_tikzcd_preamble.py
if [ "$1" == "cm" ]; then
python2 ./scripts/make_book_cm.py ./ > book.tex
elif [ "$1" == "alegreya-sans" ]; then
python2 ./scripts/make_book_alegreya_sans.py ./ > book.tex
elif [ "$1" == "alegreya-sans-tcb" ]; then
python2 ./scripts/make_book_alegreya_sans_tcb.py ./ > book.tex
elif [ "$1" == "arno" ]; then
python2 ./scripts/make_book_arno.py ./ > book.tex
elif [ "$1" == "darwin" ]; then
python2 ./scripts/make_book_darwin.py ./ > book.tex
fi
python3 scripts/process_parentheses.py book.tex
mkdir tmp/$1/
cp book.tex tmp/book.tex
mv book.tex tmp/$1/book.tex
python ./scripts/process_labels_tags.py tmp/$1/book.tex
cp index_style.ist tmp/$1/index_style.ist
cp stacks-project.cls tmp/$1/
cp stacks-project-book.cls tmp/$1/
cd tmp/$1/
python ../../scripts/process_raw_html_latex.py book.tex
max_strings=80000000 hash_extra=10000000 pool_size=4250000 main_memory=12000000 lualatex -interaction=errorstopmode book
splitindex book
makeindex -s index_style.ist book-notation.idx
makeindex -s index_style.ist book-set-theory.idx
makeindex -s index_style.ist book-categories.idx
makeindex -s index_style.ist book-higher-categories.idx
#makeindex -s index_style.ist book-algebra.idx
#makeindex -s index_style.ist book-algebraic-geometry.idx
#makeindex -s index_style.ist book-analysis.idx
#makeindex -s index_style.ist book-differential-geometry.idx
#makeindex -s index_style.ist book-functional-analysis.idx
#makeindex -s index_style.ist book-infty-categories.idx
#makeindex -s index_style.ist book-homological-algebra.idx
#makeindex -s index_style.ist book-homotopical-algebra.idx
#makeindex -s index_style.ist book-homotopy-theory.idx
#makeindex -s index_style.ist book-monoids.idx
#makeindex -s index_style.ist book-number-theory.idx
#makeindex -s index_style.ist book-p-adic-geometry.idx
#makeindex -s index_style.ist book-physics.idx
#makeindex -s index_style.ist book-simplicial-stuff.idx
#makeindex -s index_style.ist book-supersymmetry.idx
#makeindex -s index_style.ist book-topology.idx
#makeindex -s index_style.ist book-type-theory.idx
biber book
cd ../../
mv tmp/$1/book.pdf output/book/$1.pdf