aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Borner2021-06-27 23:16:29 +0200
committerMarvin Borner2021-06-27 23:16:29 +0200
commit35764c1f8b8ae6338e6505f8b57dd148e99b9c17 (patch)
treec0ec6460ced20d7d45a7d554c19bdf8e6551a433
parenta77922e38c5c3bbf87a0d328f4244ce6fcec35cd (diff)
Final changes (hopefully)
-rwxr-xr-xgen.js9
-rw-r--r--zeitung/main.tex19
-rw-r--r--zeitung/parts/imprint.tex8
-rw-r--r--zeitung/parts/studentprofiles.tex21
-rw-r--r--zeitung/parts/studenttemplate.tex59
-rw-r--r--zeitung/parts/teacherquotes.tex2
-rw-r--r--zeitung/parts/teacherranking.tex1
-rw-r--r--zeitung/parts/teachers.tex4
8 files changed, 57 insertions, 66 deletions
diff --git a/gen.js b/gen.js
index 723b8ad..118f392 100755
--- a/gen.js
+++ b/gen.js
@@ -62,12 +62,12 @@ db.dump().then(async (data) => {
if (obj.qrcode === "nichts") obj.qrcode = "";
// 5head
- let textex = "";
+ let textex = "\\student";
for (elem of Object.keys(obj)) {
textex += `\\def\\std${elem}{${obj[elem]}}`;
}
- textex += `\\student\\studentbackground{${obj.id}}{${obj.qrcode}}\n\n`;
+ textex += `\\studentbackground{${obj.id}}{${obj.qrcode}}\n\n`;
// Characteristics olympics kinetics acoustics
textex += "\\begin{center}\\begin{minipage}{0.75\\paperwidth}\\begin{center}\n";
@@ -241,5 +241,8 @@ db.dump().then(async (data) => {
}
await fs.writeFile(__dirname + "/zeitung/parts/generated/teacherprofiles.tex", textex, "utf8");
- console.log("Probably finished?");
+ setTimeout(() => {
+ console.log("Finished!");
+ process.exit(0);
+ }, 50);
});
diff --git a/zeitung/main.tex b/zeitung/main.tex
index 23ea783..eecd83f 100644
--- a/zeitung/main.tex
+++ b/zeitung/main.tex
@@ -66,7 +66,14 @@
}
\newcommand\enableheader{
- \backgroundsetup{contents={\oddflip[keepaspectratio=true, width=\paperwidth]{kordel.png}},scale=1.1,placement=top,opacity=1,position={0.4\textwidth, 3.3cm}}
+ \backgroundsetup{contents={\evenflip[keepaspectratio=true, width=\paperwidth]{kordel.png}},scale=1.1,placement=top,opacity=1,position={0.4\textwidth, 3.3cm}}
+}
+
+\newcommand\emptypage{
+ \disableheader
+ \thispagestyle{empty}
+ \null\newpage
+ \enableheader
}
% Awesome column type
@@ -182,10 +189,6 @@
\def\ranking{\input{parts/rankingtemplate.tex}}
\def\generated#1{\input{parts/generated/#1.tex}}
-% \part{titlepage}
-% \disableheader
-% \thispagestyle{empty}
-% \null\newpage
\enableheader
\part{tableofcontents}
@@ -203,10 +206,8 @@
\part{conclusion}
\part{imprint}
-\disableheader
-\thispagestyle{empty}
-\null\newpage
-\enableheader
+\emptypage
+\emptypage
% \advert{asb}
% \part{final}
diff --git a/zeitung/parts/imprint.tex b/zeitung/parts/imprint.tex
index 191ad03..bdd37a4 100644
--- a/zeitung/parts/imprint.tex
+++ b/zeitung/parts/imprint.tex
@@ -8,14 +8,14 @@
Mit folgendem QR-Code kann diese Zeitung auch digital genossen werden:
\begin{center}
- \qrcode[nolink,height=2in]{ist doch schon online lel}
+ \qrcode[nolink,height=2in]{Ist doch schon online, lel}
\end{center}
\includegraphics[keepaspectratio=true, width=\textwidth]{parts/advertisements/abihome_imp.pdf}
\begin{table}[b]
\begin{tabular}{ l l }
- \textbf{V.i.S.d.P} & RBS TG13 \\ % Verantwortlich im Sinne des Presserechts
+ \textbf{V.i.S.d.P} & Matthias Schmiegel: Ginsterweg 17, 89079 Ulm \\
\textbf{Umsetzung (\LaTeX)} & Marvin Borner, Lars Krönner \\
\textbf{Datenverwaltung} & Marvin Borner, Lars Krönner \\
\textbf{Web-Hosting} & Marvin Borner \\
@@ -25,7 +25,7 @@ Mit folgendem QR-Code kann diese Zeitung auch digital genossen werden:
\textbf{Finanzierung \& Werbung} & Lars Mayer \\
\textbf{Planung \& Organisation} & Matthias Schmiegel, Sebastian Sutor \\
\textbf{Rechtsabteilung} & Lars Mayer, Sebastian Sutor \\
- \textbf{Zitate, Steckbriefe, etc.} & SchülerInnen des gesamten TG13 \\
- \textbf{Vielen Dank an unsere Sponsoren} & ASB, IHK, Uni Ulm, B-Group AG, Gardena, LeasePlan, Autohaus Zanker GmbH \& Co. KG
+ \textbf{Zitate, Steckbriefe, etc.} & SchülerInnen des gesamten TG13 \\
+ \textbf{Unsere Sponsoren <3} & ASB, IHK, Uni Ulm, B-Group AG, Gardena, LeasePlan, Autohaus Zanker GmbH \& Co. KG
\end{tabular}
\end{table}
diff --git a/zeitung/parts/studentprofiles.tex b/zeitung/parts/studentprofiles.tex
index f74fc09..28f0daf 100644
--- a/zeitung/parts/studentprofiles.tex
+++ b/zeitung/parts/studentprofiles.tex
@@ -24,25 +24,10 @@
}
\studentprofile{TGI13.1}
-
-\disableheader
-\thispagestyle{empty}
-\null\newpage
-\enableheader
-
+\emptypage
\studentprofile{TGI13.2}
\studentprofile{TGTM13}
-
-\disableheader
-\thispagestyle{empty}
-\null\newpage
-\enableheader
-
+\emptypage
\studentprofile{TGM13.1}
-
-\disableheader
-\thispagestyle{empty}
-\null\newpage
-\enableheader
-
+\emptypage
\studentprofile{TGM13.2}
diff --git a/zeitung/parts/studenttemplate.tex b/zeitung/parts/studenttemplate.tex
index 9f8f137..cc71407 100644
--- a/zeitung/parts/studenttemplate.tex
+++ b/zeitung/parts/studenttemplate.tex
@@ -3,8 +3,6 @@
\clearpage
\checkoddpage
-\sectionmark{Steckbrief - \stdname}
-
% Returns a default file if not found
\providecommand\dfincludegraphics[2][]{
\IfFileExists{#2}
@@ -17,6 +15,8 @@
}
\providecommand\studentbackground[2]{
+ \sectionmark{Steckbrief - \stdname}
+
% Ring
\def\ringx{20pt}
\def\ringy{250pt}
@@ -52,6 +52,34 @@
\put(-\ringx, -\ringy){
\includegraphics[keepaspectratio=true, width=\ringwidth]{ring.png}
}
+ \put(0, -4cm){
+ % Steckbrief Tabelle
+ \ifoddpage
+ \def\tablex{-0cm}
+ \def\tablewidth{0.53\textwidth} % Right page
+ \else
+ \def\tablex{0.46\linewidth}
+ \def\tablewidth{0.53\textwidth} % Left page
+ \fi
+
+ \hspace*{\tablex}\vspace*{1.4cm}\begin{minipage}{\tablewidth}
+ \vspace*{.5cm}
+ \begin{normalsize}
+ \begin{tabular}{@{}ll@{}}
+ \textbf{Name:} & \stdname \\
+ \textbf{Geburtstag:} & \multicolumn{1}{p{\tablewidth}}{\RaggedRight\stdbirthday} \\
+ \textbf{Lieblingsfach:} & \multicolumn{1}{p{\tablewidth}}{\RaggedRight\stdfavsub} \\
+ \textbf{Hassfach:} & \multicolumn{1}{p{\tablewidth}}{\RaggedRight\stdhatesub} \\
+ \textbf{Hobbies:} & \multicolumn{1}{p{\tablewidth}}{\RaggedRight\stdhobbies} \\
+ \textbf{Musik:} & \multicolumn{1}{p{\tablewidth}}{\RaggedRight\stdmusic} \\
+ \end{tabular}\\
+ \textbf{Das werde ich am meisten vermissen:}\\\stdmissing\\
+ \textbf{Ohne das hätte ich die Oberstufe nicht geschafft:}\\\stdmotivation\\
+ \textbf{Lebensmotto:}\\\stdquote\\
+ \textbf{Zukunftspläne:}\\\stdfuture\\~\\
+ \end{normalsize}
+ \end{minipage}
+ }
}
\AtTextLowerLeft{
\put(\textwidth - \framex + \frameoffset, \framey + \frameoffset + 8pt){
@@ -77,32 +105,7 @@
}
}
-% Steckbrief Tabelle
-\ifoddpage
- \def\tablex{-0cm}
- \def\tablewidth{0.55\linewidth} % Right side
-\else
- \def\tablex{0.5\linewidth}
- \def\tablewidth{0.55\linewidth} % Left side
-\fi
-
-\hspace*{\tablex}\vspace*{1.4cm}\begin{minipage}{\tablewidth}
- \vspace*{.5cm}
- \begin{normalsize}
- \begin{tabular}{@{}ll@{}}
- \textbf{Name:} & \stdname \\
- \textbf{Geburtstag:} & \multicolumn{1}{p{\tablewidth}}{\RaggedRight\stdbirthday} \\
- \textbf{Lieblingsfach:} & \multicolumn{1}{p{\tablewidth}}{\RaggedRight\stdfavsub} \\
- \textbf{Hassfach:} & \multicolumn{1}{p{\tablewidth}}{\RaggedRight\stdhatesub} \\
- \textbf{Hobbies:} & \multicolumn{1}{p{\tablewidth}}{\RaggedRight\stdhobbies} \\
- \textbf{Musik:} & \multicolumn{1}{p{\tablewidth}}{\RaggedRight\stdmusic} \\
- \end{tabular}\\
- \textbf{Das werde ich am meisten vermissen:}\\\stdmissing\\
- \textbf{Ohne das hätte ich die Oberstufe nicht geschafft:}\\\stdmotivation\\
- \textbf{Lebensmotto:}\\\stdquote\\
- \textbf{Zukunftspläne:}\\\stdfuture\\~\\
- \end{normalsize}
-\end{minipage}
+\vspace*{8cm}
% Characteristics
\providecommand\studentchar[1]{
diff --git a/zeitung/parts/teacherquotes.tex b/zeitung/parts/teacherquotes.tex
index 2a91fad..7786caa 100644
--- a/zeitung/parts/teacherquotes.tex
+++ b/zeitung/parts/teacherquotes.tex
@@ -1,4 +1,2 @@
\subtitle{Lehrer}{Zitate}
\generated{quotes/teacher}
-\vfill
-\includegraphics[keepaspectratio=true, width=\textwidth]{parts/advertisements/zanker.pdf}
diff --git a/zeitung/parts/teacherranking.tex b/zeitung/parts/teacherranking.tex
index 9579935..8a25a5d 100644
--- a/zeitung/parts/teacherranking.tex
+++ b/zeitung/parts/teacherranking.tex
@@ -1,4 +1,5 @@
\subtitle{Lehrer}{Ranking}
\generated{ranking/teacher}
+\includegraphics[keepaspectratio=true, width=\textwidth]{parts/advertisements/zanker.pdf}
\vfill
\includegraphics[keepaspectratio=true, width=\textwidth]{parts/advertisements/leaseplan_2.jpg}
diff --git a/zeitung/parts/teachers.tex b/zeitung/parts/teachers.tex
index a71e65c..14d5f02 100644
--- a/zeitung/parts/teachers.tex
+++ b/zeitung/parts/teachers.tex
@@ -1,7 +1,7 @@
-\title{Lehrer}
+\addcontentsline{toc}{section}{\protect\numberline{\thesection}Lehrer}
\part{teacherprofiles}
\part{teacherquotes}
-\part{teacherranking} \ No newline at end of file
+\part{teacherranking}