From 352c20343b509b7beba7cd2083b4b4a530cfd471 Mon Sep 17 00:00:00 2001 From: David Kilias Date: Fri, 10 Apr 2020 11:39:07 +0200 Subject: [PATCH] add makefile to build pdf --- Makefile | 10 ++++++++++ latexdockercmd.sh | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 Makefile create mode 100755 latexdockercmd.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9418486 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: clean aktiv + +aktiv: Aufnahmeantrag_aktiv/src/Aufnahmeantrag_aktiv.tex\ + Aufnahmeantrag_aktiv/src/headfoot.tex + ./latexdockercmd.sh pdflatex Aufnahmeantrag_aktiv/src/Aufnahmeantrag_aktiv.tex + +clean: + rm *.aux *.log *.out *.pdf + +default: aktiv \ No newline at end of file diff --git a/latexdockercmd.sh b/latexdockercmd.sh new file mode 100755 index 0000000..1b8a460 --- /dev/null +++ b/latexdockercmd.sh @@ -0,0 +1,4 @@ +#!/bin/sh +IMAGE=blang/latex:ubuntu +# IMAGE=blang/latex:ctanbasic +exec docker run --rm -i --user="$(id -u):$(id -g)" --net=none -v "$PWD":/data "$IMAGE" "$@"