diff --git a/installparty/lumi-handout/.gitignore b/installparty/lumi-handout/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..465850ab5b6b316188cdf5ba0d9f7cfaed694d0a --- /dev/null +++ b/installparty/lumi-handout/.gitignore @@ -0,0 +1,2 @@ +handout.pdf.processed +venv/ diff --git a/installparty/lumi-handout/README b/installparty/lumi-handout/README new file mode 100644 index 0000000000000000000000000000000000000000..5e2c08a627d9eaa71f94b9d293a55cadc477058f --- /dev/null +++ b/installparty/lumi-handout/README @@ -0,0 +1,3 @@ +To build a clean handout run ./compile.py + +It requires you to have jinja2 installed (in a virtualenv) diff --git a/installparty/lumi-handout/compile.py b/installparty/lumi-handout/compile.py new file mode 100755 index 0000000000000000000000000000000000000000..ca18a1268c5215248b051ea6354990921bf435c6 --- /dev/null +++ b/installparty/lumi-handout/compile.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 +from jinja2 import Environment, FileSystemLoader + +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") + with open("handout.tex.processed","w") as fd: + fd.write(template.render({"registration":registration,"sticks":sticks,"cleanhandout":True})) + diff --git a/installparty/lumi-handout/data/alug.pdf b/installparty/lumi-handout/data/alug.pdf new file mode 120000 index 0000000000000000000000000000000000000000..04f232ecdcf6a0db196bc64441e4fbfbc3bc8554 --- /dev/null +++ b/installparty/lumi-handout/data/alug.pdf @@ -0,0 +1 @@ +../../../logos/alug.pdf \ No newline at end of file diff --git a/installparty/lumi-handout/battery-staple.png b/installparty/lumi-handout/data/battery-staple.png similarity index 100% rename from installparty/lumi-handout/battery-staple.png rename to installparty/lumi-handout/data/battery-staple.png diff --git a/installparty/lumi-handout/cautionary.png b/installparty/lumi-handout/data/cautionary.png similarity index 100% rename from installparty/lumi-handout/cautionary.png rename to installparty/lumi-handout/data/cautionary.png diff --git a/installparty/lumi-handout/eduroam.png b/installparty/lumi-handout/data/eduroam.png similarity index 100% rename from installparty/lumi-handout/eduroam.png rename to installparty/lumi-handout/data/eduroam.png diff --git a/installparty/lumi-handout/data/osak.png b/installparty/lumi-handout/data/osak.png new file mode 120000 index 0000000000000000000000000000000000000000..7d70607f683728184d9e26436c5148163aa5d94a --- /dev/null +++ b/installparty/lumi-handout/data/osak.png @@ -0,0 +1 @@ +../../../logos/osak.png \ No newline at end of file diff --git a/installparty/lumi-handout/password-reuse.jpg b/installparty/lumi-handout/data/password-reuse.jpg similarity index 100% rename from installparty/lumi-handout/password-reuse.jpg rename to installparty/lumi-handout/data/password-reuse.jpg diff --git a/installparty/lumi-handout/handout.tex b/installparty/lumi-handout/handout.tex index 29aecd868a2b8ba71e39fe1176d6e7268bae8f0f..179714a8f7e31fdc2827ed4fc71a594110b740fd 100644 --- a/installparty/lumi-handout/handout.tex +++ b/installparty/lumi-handout/handout.tex @@ -35,7 +35,7 @@ \newcommand{\kopfrechts}{ {\large \begin{tabular}{r l} - Dein Name: & \underline{\hspace{6cm}}\\ + Dein Name: & \underline{ {{ registration.name }} }\\ % Dein Pizza-Code: & \underline{\hspace{6cm}}\\ \end{tabular} } @@ -96,7 +96,7 @@ \begin{itemize} \item Um Platz für Linux zu schaffen, starte zunächst Windows. \end{itemize} -\underline{{\large Hier erstmal \textbf{STOPP}:}} Rufe mit dem \hilfewinker{} einen Helfer herbei und halte ihn bis zum nächsten Abschnitt bei dir. +\underline{ { \large Hier erstmal \textbf{STOPP}: } } Rufe mit dem \hilfewinker{} einen Helfer herbei und halte ihn bis zum nächsten Abschnitt bei dir. Falls gerade kein Helfer verfügbar sein sollte, lies solange den aktuellen \textbf{Geier} oder iss etwas. \begin{itemize} \item Schau' dir mit einem Helfer die Festplattenverwaltung an. Schafft so viel Platz wie möglich. @@ -129,7 +129,7 @@ Falls gerade kein Helfer verfügbar sein sollte, lies solange den aktuellen \tex \end{minipage} \begin{minipage}{0.6\textwidth} \vspace{1mm} -\includegraphics[width=\textwidth]{battery-staple} +\includegraphics[width=\textwidth]{data/battery-staple} \end{minipage} \vspace{2mm} \begin{itemize} @@ -154,12 +154,12 @@ Falls gerade kein Helfer verfügbar sein sollte, lies solange den aktuellen \tex \end{minipage} \begin{minipage}{0.5\textwidth} \vspace{-13mm} -\includegraphics[width=\textwidth]{password-reuse} +\includegraphics[width=\textwidth]{data/password-reuse} \end{minipage} \vfill \begin{minipage}{0.3\textwidth} - \includegraphics[width=0.9\textwidth]{../../logos/alug.pdf} + \includegraphics[width=0.9\textwidth]{data/alug.pdf} \end{minipage} \begin{minipage}{0.7\textwidth} \textbf{Egal, ob du Spaß an oder auch Probleme mit deinem Linux hast, komm' zur \alug{} {\small (\alugurl)}!}\\ @@ -199,7 +199,7 @@ Falls gerade kein Helfer verfügbar sein sollte, lies solange den aktuellen \tex \end{minipage} \begin{minipage}{0.5\textwidth} \centering - \includegraphics[width=.8\textwidth]{eduroam} + \includegraphics[width=.8\textwidth]{data/eduroam} \end{minipage} \vspace{-2mm} @@ -214,7 +214,7 @@ Falls gerade kein Helfer verfügbar sein sollte, lies solange den aktuellen \tex \item Unter \burl{https://videoag.fsmpi.rwth-aachen.de/?course=14ss-kiss} findest du die Aufzeichnung unserer letztjährigen Linux Workshops. Dort geben wir dir einen kleinen Einblick in dein neues Linux. \begin{center} \vspace{1em} - \begin{overpic}[width=0.6\textwidth]{cautionary.png} + \begin{overpic}[width=0.6\textwidth]{data/cautionary.png} \put(15,4){\burl{https://xkcd.com/456}} \end{overpic} \end{center} @@ -231,7 +231,7 @@ Falls gerade kein Helfer verfügbar sein sollte, lies solange den aktuellen \tex \vfill \begin{minipage}{0.3\textwidth} - \includegraphics[width=\textwidth]{../../logos/osak.png} + \includegraphics[width=\textwidth]{data/osak.png} \end{minipage} \begin{minipage}{0.7\textwidth} \textbf{Schreib uns gern an \osakmail{} deine Fragen, dein Feedback oder was du sonst auf dem Herzen hast!}\\ @@ -251,9 +251,9 @@ Falls gerade kein Helfer verfügbar sein sollte, lies solange den aktuellen \tex \end{tikzpicture} -\section*{\laufzettel\hfill -\textbf{Laptop-Modell} \underline{\hspace{4cm}} ~~ -\textbf{\lipstick{} Nr.} \underline{\hspace{4cm}}} +\section*{\laufzettel}\hfill +\textbf{Laptop-Modell} \underline{ {{ registration.laptop_vendor }} \hspace{2cm}} ~~ +\textbf{\lipstick{} Nr.} \underline{ {% if cleanhandout %}\hspace{4cm}{% else %}{% for stick in sticks %} {{stick.typ}}/{{stick.number}} {% endfor %} \hspace{2cm} {% endif %}} \textbf{Dieser Zettel wird nur von Helfern ausgefüllt.} Bitte gib ihn uns bei der Abmeldung zurück. \vspace{-1.5em} @@ -262,8 +262,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} & $\square$ Ja & $\square$ Nein\\\hline - \textit{Partitionstabelle} & $\square$ GPT & $\square$ MBR & \textit{Dual-Boot} & $\square$ Ja & $\square$ Nein & \textit{\lipnsa{}}\footnote{} & $\square$ Ja & $\square$ Nein +\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{\lipnsa{}}\footnote{} & $\square$ Ja & $\square$ Nein \end{tabular} \footnotetext{\lipnsaexp} \end{center} @@ -309,7 +309,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 - \hphantom{Gustav} & ~ \\[2ex]\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 %} ~ & ~ \hfill \\[2ex]\hline ~ & ~ \hfill \\[2ex]\hline ~ & ~ \hfill \\[2ex]\hline