wif-exposee/latex/create.sh

18 lines
528 B
Bash
Raw Normal View History

2022-11-22 13:00:03 +01:00
#!/bin/sh
RESULT_DIR="../result"
OUTPUT_DIR="../temp"
FILE="thesis"
cd tex
mkdir $RESULT_DIR
mkdir $OUTPUT_DIR
cp literatur.bib $OUTPUT_DIR
pdflatex -output-directory="$OUTPUT_DIR" -synctex=1 -interaction=nonstopmode ${FILE}.tex
cd $OUTPUT_DIR
biber ${FILE}
makeindex ${FILE}.idx
cd ../tex
pdflatex -output-directory="$OUTPUT_DIR" -synctex=1 -interaction=nonstopmode ${FILE}.tex
pdflatex -output-directory="$OUTPUT_DIR" -synctex=2 -interaction=nonstopmode ${FILE}.tex
cat $OUTPUT_DIR/${FILE}.pdf > $RESULT_DIR/${FILE}.pdf
cd ..