aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcli.js14
-rw-r--r--zeitung/main.tex4
-rw-r--r--zeitung/parts/final.tex26
-rw-r--r--zeitung/parts/studentranking.tex2
4 files changed, 41 insertions, 5 deletions
diff --git a/cli.js b/cli.js
index eb499b0..fb24d08 100755
--- a/cli.js
+++ b/cli.js
@@ -149,7 +149,8 @@ if ((idx = params.indexOf("-r")) > -1) {
for (let i = 0; i < comments.length; i += 2) {
const first = comments[i].comment;
const second = comments[i + 1] ? comments[i + 1].comment : " ";
- textex += `${sanitize(first)} & ${sanitize(second)} \\\\`;
+ textex += `${sanitize(first)} & ${sanitize(second)} \\\\\n`;
+ if (i + 2 < comments.length) textex += " \\specialrule{.03em}{0em}{0em}\n";
}
textex += "\\end{tabularx}\\renewcommand{\\arraystretch}{1}";
}
@@ -234,7 +235,7 @@ if ((idx = params.indexOf("-r")) > -1) {
});
// Quotes boats coats floats goats oats // TODO: Fix teacher quotes
- textex = `\\def\\quoteclass{TGM13.1}\n\\quotepage`;
+ textex = "\\def\\quoteclass{TGM13.1}\n\\quotepage";
let i = 0;
for (const quote of data.quotes) {
if (i > 1 && quote.class !== data.quotes[i - 1].class) {
@@ -249,6 +250,15 @@ if ((idx = params.indexOf("-r")) > -1) {
)}}\n`;
i++;
}
+
+ // Final spinal vinyl
+ textex = "\\begin{tabular}{l l l}\n\n";
+ await data.users.forEach(async (user, ind) => {
+ textex += `{\\large ${user.name} ${user.middlename || ""} ${user.surname}}`;
+ textex += ((ind + 1) % 3 == 0 ? "\\\\" : "&") + "\n";
+ });
+ textex += "\\end{tabular}\n";
+ await fs.writeFile(__dirname + "/zeitung/parts/generated/final.tex", textex);
})();
console.log("Probably finished?");
diff --git a/zeitung/main.tex b/zeitung/main.tex
index c9d372f..6f49104 100644
--- a/zeitung/main.tex
+++ b/zeitung/main.tex
@@ -18,6 +18,8 @@
\usepackage{etoolbox}
\usepackage{pdfpages}
\usepackage{forloop}
+\usepackage{xcolor}
+\usepackage{booktabs}
\usepackage[absolute,overlay]{textpos}
% Font % TODO: Colored emojis? (very hard)
@@ -132,7 +134,6 @@
\part{classoverview}
\advert{ihk}
\part{studentprofiles}
-\part{studentranking}
\advert{uni-ulm}
\part{photos}
\part{trips}
@@ -140,5 +141,6 @@
\part{committeeoverview}
\part{conclusion}
\part{imprint}
+\part{final}
\end{document}
diff --git a/zeitung/parts/final.tex b/zeitung/parts/final.tex
new file mode 100644
index 0000000..305f8f1
--- /dev/null
+++ b/zeitung/parts/final.tex
@@ -0,0 +1,26 @@
+\disableheader
+\thispagestyle{empty}
+\ThisULCornerWallPaper{1.2}{vorderseitebg}
+
+\definecolor{textcolor}{rgb}{0.117, 0.176, 0.219}
+\color{textcolor}
+\bfseries
+
+\hspace{0pt}
+
+\vfill
+
+\begin{center}
+
+{\cartamarina{\Huge Abitur 2021}}
+\vspace*{1cm}
+
+\generated{final}
+
+\vspace*{1cm}
+{\cartamarina{\Huge Robert-Bosch-Schule Ulm}}
+
+\vfill
+\hspace{0pt}
+
+\end{center}
diff --git a/zeitung/parts/studentranking.tex b/zeitung/parts/studentranking.tex
deleted file mode 100644
index de4b574..0000000
--- a/zeitung/parts/studentranking.tex
+++ /dev/null
@@ -1,2 +0,0 @@
-\title{Schülerranking}
-\lipsum[1-2]