Commit f9971884 authored by Andreas Zwinkau's avatar Andreas Zwinkau

add multimake for mass personalized documents

parent dea67eea
#!/usr/bin/env python3
import csv
import subprocess
import shutil
VERSION = subprocess.getoutput("git describe --always --tags")
def build(id,name,institute):
with open("customize.tex", "w") as fh:
fh.write("\\def\\fullname{%s}\n" % name)
fh.write("\\def\\institute{%s}\n" % institute)
fh.write("\\def\\version{%s}\n" % VERSION)
subprocess.check_output("make build/main.pdf", shell=True)
shutil.move("build/main.pdf", "build/%03d.pdf" % id)
with open("people.csv") as fh:
for id,row in enumerate(csv.reader(fh)):
build(id, *row)
......@@ -64,9 +64,9 @@
% Korrekter Zeilenabstand etc. durch Minipage.
{\huge{\thetitle}} \\[2cm]
by \theauthor \\[1cm]
for \fullname \\[4cm]
{\small Version: \version}
for \fullname \\[1cm]
by \theauthor \\[4cm]
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