blob: 4d2bdd2cb9418458714e279578d2e77342f58740 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
TARGET="$1"
sed '/^# /d' "$1.md" | pandoc -f markdown -o "$1.html"
cat ../preamble.tex > "$1.tex"
echo '\begin{document}' >> "$1.tex"
printf '\\textbf{Databases} %s \\hfill Loek Le Blansch (2180996)\n' "`echo "$1" | sed 's/-/ /g'`" >> "$1.tex"
pandoc "$1.html" -t latex | sed 's/svg/pdf/g' >> "$1.tex"
echo '\end{document}' >> "$1.tex"
latexmk -quiet "$1.tex"
latexmk -quiet -c "$1.tex"
|