Commit ea172dfe authored by Daniel Schulte's avatar Daniel Schulte
Browse files

Updated and renamed template now calls pdflatex for you
renamed template file to handout.tex.template
parent 3bbbfd71
Pipeline #37 skipped
#!/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}))"pdflatex handout.tex", shell=True)
Supports Markdown
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