diff options
Diffstat (limited to 'notes/mathe3/makefile')
-rw-r--r-- | notes/mathe3/makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/notes/mathe3/makefile b/notes/mathe3/makefile index 36d0026..bfe8b0d 100644 --- a/notes/mathe3/makefile +++ b/notes/mathe3/makefile @@ -15,6 +15,14 @@ part: @progress 1 pdflatex @echo done. +exam: + @mkdir -p build/ + @pandoc exam.md --filter pandoc-latex-environment --toc -N -V fontsize=11pt -V geometry:a4paper -V geometry:margin=2.5cm -o $(CURDIR)/build/exam.tex --pdf-engine-opt=-shell-escape -H header.tex -B examtitle.tex >/dev/null + @(pdflatex -shell-escape -halt-on-error -output-directory $(CURDIR)/build/ $(CURDIR)/build/exam.tex | grep '^!.*' -A200 --color=always ||true) & + @progress 1 pdflatex + @cp build/exam.pdf . &>/dev/null + @echo done. + clean: @$(RM) -rf build |