...
 
Commits (2)
......@@ -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
latex-workshop.zip: 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.zip latex-workshop; );\
cp "$$dir/latex-workshop.zip" ./;\
rm -r "$$dir"
clean:
rm -f latex.pdf $(ZETAS_PDF) notes.pdf examples/2h_fake.pdf examples/preamble.pdf handout.pdf latex-workshop.zip