compile.sh 661 Bytes
Newer Older
Harry Fuchs's avatar
Harry Fuchs committed
1
2
3
cp edit-this-file.tex tmp.tex
python3 preprocessor.py
pandoc -f org -t latex tmp.tex -s -o gdim.tex --metadata-file meta.yaml --template="latex.template"
Harry Fuchs's avatar
Harry Fuchs committed
4

Harry Fuchs's avatar
Harry Fuchs committed
5
6
clear && clear
echo "start pdflatex"
Harry Fuchs's avatar
Harry Fuchs committed
7

Harry Fuchs's avatar
Harry Fuchs committed
8
9
10
11
12
13
14
15
16
17
if [ "$1" == "fail-on-error" ]; then
  latexoption=""
  mkdir output
  cp gdim.tex ./output/dgeo-alekseev.tex
  echo "STOP"
  #TODO make pdflatex work
  exit 0
else
  latexoption="-interaction=nonstopmode"
fi
Harry Fuchs's avatar
Harry Fuchs committed
18

Harry Fuchs's avatar
Harry Fuchs committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pdflatex $latexoption gdim.tex
if [ $$? = 0 ] ; then \
  pdflatex $$NAME ; \
  pdflatex $$NAME ; \
else \
 \echo "Compilation failed" ; \
 exit 20
fi

#pdflatex gdim.tex

#TODO rename
mv gdim.pdf dgeo-alekseev.pdf
mkdir output
cp dgeo-alekseev.pdf ./output/