diff options
author | Marvin Borner | 2021-06-11 15:10:48 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-11 15:10:48 +0200 |
commit | 7f693f9ef373029ce5b7e4ec319087c46cc24090 (patch) | |
tree | 080a5ae37b28ffdcaab1c0ceccef610c72f8959f | |
parent | 0117610be7a40b21bb13da3e80066f5a68df1805 (diff) |
I'M THE MARGINATOR
-rwxr-xr-x | gen.js | 8 | ||||
-rw-r--r-- | zeitung/parts/questionnaire.tex | 2 | ||||
-rw-r--r-- | zeitung/parts/teacherprofiletemplate.tex | 2 |
3 files changed, 6 insertions, 6 deletions
@@ -118,12 +118,12 @@ db.dump().then(async (data) => { const questions = [...new Set(data.questions.map((a) => a[0].id))]; const statrad = 2.5; const statxinc = 8, - statyinc = 6; + statyinc = 6.4; let statx = 0, staty = 0; await questions.forEach((q) => { const options = data.questions[q - 1].sort((a, b) => b.count - a.count); - textex += `\\node at (${statx}, ${staty + statrad / 2 + 1.5}) {${options[0].question}};`; + textex += `\\node at (${statx}, ${staty + statrad / 2 + 1.8}) {${options[0].question}};`; textex += `\\pie[hide number, sum=auto, text=inside, pos={${statx},${staty}}, radius=${statrad}]{`; options.forEach((option, ind) => { textex += `${option.count}/${sanitize(option.option)}`; @@ -204,13 +204,13 @@ db.dump().then(async (data) => { await fs.writeFile(__dirname + "/zeitung/parts/generated/quotes/teacher.tex", textex); // SECRET!! - textex = "\\begin{longtable}{R R R}\n\n"; + textex = "\\renewcommand{\\arraystretch}{1.5}\n\\begin{longtable}{R R R}\n\n"; await data.secrets.forEach(async (secret, ind) => { textex += `{\\small ${secret.secret}}`; textex += ((ind + 1) % 3 == 0 ? "\\\\" : "&") + "\n"; if ((ind + 1) % 3 == 0) textex += "\\specialrule{.03em}{0em}{0em}\n"; }); - textex += "\\end{longtable}\n"; + textex += "\\end{longtable}\n\\renewcommand{\\arraystretch}{1}\n"; await fs.writeFile(__dirname + "/zeitung/parts/generated/secrets.tex", textex); // Final spinal vinyl diff --git a/zeitung/parts/questionnaire.tex b/zeitung/parts/questionnaire.tex index ac5a889..ebf2a9d 100644 --- a/zeitung/parts/questionnaire.tex +++ b/zeitung/parts/questionnaire.tex @@ -1,7 +1,7 @@ \title{Prozent-Fragen} \begin{center} - \hspace{-1.5cm}\begin{tikzpicture} + \begin{tikzpicture} \generated{stats/perc} \end{tikzpicture} \end{center} diff --git a/zeitung/parts/teacherprofiletemplate.tex b/zeitung/parts/teacherprofiletemplate.tex index 4859ee9..7fabb3c 100644 --- a/zeitung/parts/teacherprofiletemplate.tex +++ b/zeitung/parts/teacherprofiletemplate.tex @@ -1,4 +1,4 @@ -\begin{minipage}[c][0.28\textheight][c]{\linewidth} +\begin{minipage}[c][0.30\textheight][c]{\linewidth} \ifodd\profnum \begin{minipage}[c]{0.79\textwidth} {\Huge{\textbf{\profname}}}\\ |