Skip to content
Snippets Groups Projects
Commit 0df1211c authored by Valentin Bruch's avatar Valentin Bruch
Browse files

lumi handout: replace template by pure LaTeX

parent c36ebf22
No related branches found
No related tags found
No related merge requests found
handout.tex
venv/
#!/usr/bin/env python3
from jinja2 import Environment, FileSystemLoader
import subprocess
if __name__ == "__main__":
registration = dict()
registration["name"]="\hspace{6cm}"
registration["laptop_vendor"]="\hspace{4cm}"
registration["optimus"]=False
registration["dual_boot"]=False
sticks = []
env = Environment(loader=FileSystemLoader("."))
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 && pdflatex handout.tex", shell=True)
......@@ -35,7 +35,7 @@
\newcommand{\kopfrechts}{
{\large
\begin{tabular}{r l}
Dein Name: & \underline{{ '{'+registration.name+'}' }}\\
Dein Name: & \underline{\hspace{6cm}}\\
% Dein Pizza-Code: & \underline{\hspace{6cm}}\\
\end{tabular}
}
......@@ -257,8 +257,8 @@ Falls gerade kein Helfer verfügbar sein sollte, lies solange den aktuellen \tex
\section*{\laufzettel\hfill
\textbf{Laptop-Modell} \underline{{ '{'+registration.laptop_vendor+'}' }} ~~
\textbf{\lipstick{} Nr.} \underline{{'{'}}{% if cleanhandout %}\hspace{4cm}{% else %}{% for stick in sticks %} {{stick.typ}}/{{stick.number}} {% endfor %} \hspace{2cm} {% endif %}}{{'}'}}
\textbf{Laptop-Modell} \underline{\hspace{4cm}} ~~
\textbf{\lipstick{} Nr.} \underline{\hspace{4cm}}}
\textbf{Dieser Zettel wird nur von Helfern ausgefüllt.} Bitte gib ihn uns bei der Abmeldung zurück.
\vspace{-1.5em}
......@@ -267,8 +267,8 @@ Falls gerade kein Helfer verfügbar sein sollte, lies solange den aktuellen \tex
{\renewcommand{\arraystretch}{2}
\begin{center}
\begin{tabular}{r l l | r l l | r l l}
\textit{Architektur} & $\square$ 32 Bit \textbf{only} & $\square$ 64 Bit & \textit{EFI} & $\square$ Ja & $\square$ Nein & \textit{NVidia Optimus} & {% if registration.optimus and not cleanhandout %} $\checkmark$ {% else %} $\square$ {% endif %} Ja & {% if not registration.optimus and not cleanhandout %} $\checkmark$ {% else %} $\square$ {% endif %} Nein\\\hline
\textit{Partitionstabelle} & $\square$ GPT & $\square$ MBR & \textit{Dual-Boot} & {% if registration.dual_boot and not cleanhandout %} $\checkmark$ {% else %} $\square$ {% endif %} Ja & {% if not registration.dual_boot and not cleanhandout %} $\checkmark$ {% else %} $\square$ {% endif %} Nein & \textit{BitLocker} & $\square$ Ja & $\square$ Nein
\textit{Architektur} & $\square$ 32 Bit \textbf{only} & $\square$ 64 Bit & \textit{EFI} & $\square$ Ja & $\square$ Nein & \textit{NVidia Optimus} & $\square$ Ja & $\square$ Nein\\\hline
\textit{Partitionstabelle} & $\square$ GPT & $\square$ MBR & \textit{Dual-Boot} & $\square$ Ja & $\square$ Nein & \textit{BitLocker} & $\square$ Ja & $\square$ Nein
\end{tabular}
\end{center}
}
......@@ -313,7 +313,7 @@ $\square$ \large Die Installation wurde komplett \textit{und} erfolgreich abgesc
\begin{widetable}{\textwidth}{c || l}
\textbf{Name} & Probleme, Lösungsversuche, Notizen und sonstige Aktionen \\\hline\hline
{% if not cleanhandout %} {% if registration.windows8 or not registration.rj45 or not registration.backup %} ~~~ LIPCLMS ~~~ & ~~ {% if registration.windows8 %}Windows $\geq$ 8{% endif %} ~~~~ {% if not registration.rj45 %}Keine RJ45-Schnittstelle{% endif %} ~~~~ {% if not registration.backup %}Kein Backup!{% endif %}\\[2ex]\hline {% else %} \hphantom{Gustav} & ~ \\[2ex]\hline {% endif %} {% else %} \hphantom{Gustav} & ~ \\[2ex]\hline {% endif %}
\hphantom{Gustav} & ~ \\[2ex]\hline
~ & ~ \hfill \\[2ex]\hline
~ & ~ \hfill \\[2ex]\hline
~ & ~ \hfill \\[2ex]\hline
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment