uni-ausarbeitung/build.sh

26 lines
532 B
Bash
Raw Normal View History

2020-06-28 21:59:13 +00:00
#!/bin/bash
# cleanup
latexmk -C
if [ -f chapter/out.tex ]
then
rm chapter/out.md
rm chapter/out.tex
fi
# run pandoc
2020-08-03 06:51:41 +00:00
if [ $1 == "pandoc" ]
2020-06-28 21:59:13 +00:00
then
cat chapter/*.md > chapter/out.md
pandoc --lua-filter templates/germanquotes.lua --citeproc --filter pandoc-crossref \
2020-06-28 21:59:13 +00:00
-M cref=true --top-level-division=chapter \
--bibliography library/library.bib --biblatex \
-o chapter/out.tex chapter/out.md
fi
# run latex build
if [ $1 != "clean" ]
then
latexmk -latexoption="-shell-escape" main.tex
fi