From 23f0826852c85ea439d4629de13da9cf1d4668f9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 28 Apr 2023 16:34:02 +0200 Subject: sync --- notes/mathe3/makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'notes/mathe3/makefile') 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 -- cgit v1.2.3