fought LaTeX and won.

This commit is contained in:
Stefan Dresselhaus
2017-08-28 18:39:18 +02:00
parent e42aff2a18
commit 9f39a52c2b
11 changed files with 2429 additions and 184 deletions

View File

@ -1,13 +1,16 @@
all: ma.md bibma.bib template.tex settings/abkuerzungen.tex settings/commands.tex settings/environments.tex settings/hyphenation.tex settings/packages.tex files/titlepage.tex files/erklaerung.tex
pandoc -s -N --template=template.tex ma.md -o ma.tex
rm -f ma.pdf ma.aux ma.idx ma.lof ma.log ma.lot ma.out ma.tdo ma.toc
rm -f ma.pdf ma.aux ma.idx ma.lof ma.log ma.lot ma.out ma.tdo ma.toc ma.bbl ma.blg ma.loa
pdflatex -interaction batchmode ma.tex || true
while test `cat ma.log | grep -e "rerunfilecheck \(Warning\|Info\).*has changed" | wc -l` -gt 0 ; do \
bibtexu ma
pdflatex -interaction batchmode ma.tex || true
while test `cat ma.log | grep -e "\(Rerun to get citations correct\)" | wc -l` -gt 0 ; do \
rm ma.log && (pdflatex -interaction batchmode ma.tex || true) \
done
rm -f ma.aux ma.idx ma.lof ma.log ma.lot ma.out ma.tdo ma.toc
rm -f ma.aux ma.idx ma.lof ma.lot ma.out ma.tdo ma.toc ma.bbl ma.blg ma.loa
# rm -f ma.log
clean:
rm -f ma.pdf ma.aux ma.idx ma.lof ma.log ma.lot ma.out ma.tdo ma.toc
rm -f ma.pdf ma.aux ma.idx ma.lof ma.log ma.lot ma.out ma.tdo ma.toc ma.bbl ma.blg ma.loa
rm -f ma.tex