Commit ea172dfe authored by Daniel Schulte's avatar Daniel Schulte

Updated compile.py and renamed template

compile.py now calls pdflatex for you
renamed template file to handout.tex.template
parent 3bbbfd71
Pipeline #37 skipped
handout.pdf.processed
handout.tex
venv/
#!/usr/bin/env python3
from jinja2 import Environment, FileSystemLoader
import subprocess
if __name__ == "__main__":
registration = dict()
......@@ -11,7 +12,7 @@ if __name__ == "__main__":
sticks = []
env = Environment(loader=FileSystemLoader("."))
template = env.get_template("handout.tex")
with open("handout.tex.processed","w") as fd:
template = env.get_template("handout.tex.template")
with open("handout.tex","w") as fd:
fd.write(template.render({"registration":registration,"sticks":sticks,"cleanhandout":True}))
subprocess.call("pdflatex handout.tex", shell=True)
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