Commit 6e5940f9 authored by Julian Rother's avatar Julian Rother
Browse files

latex: Added to makefile

parent c2ddee68
......@@ -4,6 +4,9 @@ EXAMPLES = examples/2h_fake.pdf examples/tabular.pdf examples/figure.pdf example
EXAMPLE_INPUTS = $(wildcard examples/*.tex)
ZETAS_TEX = $(shell for i in $$(seq 0 8); do echo beispieldokument/zeta_$$i.tex; done)
ZETAS_PDF = $(shell for i in $$(seq 0 8); do echo beispieldokument/zeta_$$i.pdf; done)
ZETAS_IMAGES = $(wildcard beispieldokument/*.{eps,jpg})
all: latex.pdf $(ZETAS_PDF) notes.pdf handout.pdf
latex.pdf: latex.tex $(EXAMPLES) $(EXAMPLE_INPUTS) $(ZETAS_PDF)
latexmk -lualatex latex.tex
......@@ -22,3 +25,19 @@ examples/2h_fake.pdf: examples/2h_fake.tex
examples/preamble.pdf: examples/preamble.tex
cd examples; latexmk --lualatex preamble.tex
handout.pdf: handout.tex
latexmk -lualatex handout.tex handout.tex handout.pdf vorlage.tex $(ZETAS_TEX) $(ZETAS_PDF) $(ZETAS_IMAGES)
dir=$$(mktemp -d);\
mkdir "$$dir/latex-workshop";\
cp handout.tex handout.pdf vorlage.tex "$$dir/latex-workshop";\
mkdir "$$dir/latex-workshop/latex-workshop";\
cp $(ZETAS_TEX) $(ZETAS_PDF) $(ZETAS_IMAGES) "$$dir/latex-workshop/latex-workshop";\
( cd "$$dir"; zip -r latex-workshop; );\
cp "$$dir/" ./;\
rm -r "$$dir"
rm -f latex.pdf $(ZETAS_PDF) notes.pdf examples/2h_fake.pdf examples/preamble.pdf handout.pdf
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment