aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcli.js2
-rw-r--r--zeitung/parts/teacherprofiletemplate.tex6
2 files changed, 5 insertions, 3 deletions
diff --git a/cli.js b/cli.js
index f573013..8098dc7 100755
--- a/cli.js
+++ b/cli.js
@@ -285,7 +285,7 @@ if ((idx = params.indexOf("-r")) > -1) {
let pageY = 0;
for (const prof of profs) {
const [t, a, p, s] = prof.split(";").map(sanitize);
- textex += `\\def\\profname{${t}}\\def\\profabi{${a}}\\def\\profprof{${p}}\\def\\profsecret{${s}}\\def\\profnum{${flip}}\\def\\profx{${pageY}}\\teacherprofile\n`;
+ textex += `\\def\\profname{${t}}\\def\\profabi{${a}}\\def\\profprof{${p}}\\def\\profsecret{${s}}\\def\\profnum{${flip}}\\def\\profx{${pageY}}\\def\\proflast{${+(flip % 3 === 0)}}\\teacherprofile\n`;
if (flip % 3 === 0) {
textex += "\\clearpage\n";
}
diff --git a/zeitung/parts/teacherprofiletemplate.tex b/zeitung/parts/teacherprofiletemplate.tex
index f4e485a..13b3d4b 100644
--- a/zeitung/parts/teacherprofiletemplate.tex
+++ b/zeitung/parts/teacherprofiletemplate.tex
@@ -4,7 +4,7 @@
\begin{minipage}[c]{0.79\textwidth}
\textbf{Name:}\\ \profname\\
\textbf{Abijahrgang:}\\ \profabi\\
- \textbf{Brauf auf Schiff:}\\ \profprof\\
+ \textbf{Beruf auf Schiff:}\\ \profprof\\
\textbf{Das wissen meine Schüler nicht über mich:}\\ \profsecret\\
\end{minipage}
\fi
@@ -16,13 +16,15 @@
\begin{minipage}[c]{0.79\textwidth}
\textbf{Name:}\\ \profname\\
\textbf{Abijahrgang:}\\ \profabi\\
- \textbf{Brauf auf Schiff:}\\ \profprof\\
+ \textbf{Beruf auf Schiff:}\\ \profprof\\
\textbf{Das wissen meine Schüler nicht über mich:}\\ \profsecret\\
\end{minipage}
\fi
\end{minipage}
+\ifnum\proflast=0
\begin{figure}[H]
\hspace*{-1.5cm}\includegraphics[keepaspectratio=true, width=\paperwidth]{seil.png}
\end{figure}
+\fi