diff options
author | LarsVomMars | 2021-06-11 13:08:49 +0200 |
---|---|---|
committer | LarsVomMars | 2021-06-11 13:08:49 +0200 |
commit | 02ecd9ee46713368860af24b4f9797f21dcad6a5 (patch) | |
tree | 8e4129485703cde89253f894fb5d3ca190a969a3 | |
parent | f78223bf08e491831ac12535c29b0e75e5e02449 (diff) |
Requested changes
Very good new quote design
-rwxr-xr-x | cli.js | 12 | ||||
-rw-r--r-- | zeitung/parts/imprint.tex | 5 |
2 files changed, 12 insertions, 5 deletions
@@ -63,7 +63,7 @@ if ((idx = params.indexOf("-r")) > -1) { process.exit(0); break; } -} else if ((idx = params.indexOf("-d")) > -1) { +} else if ((idx = params.indexOf("-d")) > -1 || params.length === 0) { // WARNING: UGLY AND INEFFICIENT! // Coding rule: Everything is acceptable if the total execution time doesn't exceed 5s @@ -248,6 +248,7 @@ if ((idx = params.indexOf("-r")) > -1) { }); // Quotes boats coats floats goats oats + const genAuthor = (quote) => `${quote.name} ${quote.middlename || ""} ${quote.surname}`; textex = "\\def\\quoteclass{TGM13.1}\n\\quotepage"; let i = 0; for (const quote of data.quotes) { @@ -258,9 +259,12 @@ if ((idx = params.indexOf("-r")) > -1) { ); textex = `\\def\\quoteclass{${quote.class}}\n\\quotepage`; } - textex += `\\quoteadd{${quote.name} ${quote.middlename || ""} ${quote.surname}}{${sanitize( - quote.quote, - )}}\n`; + const author = genAuthor(quote); + if (i === 0 || author !== genAuthor(data.quotes[i - 1])) { + textex += `\\large{\\textbf{${author}:}}\\normalsize\\newline\n`; + } + // textex += `\\quoteadd{${author}}{${sanitize(quote.quote)}}\n`; + textex += `${quote.quote}\\newline\n`; i++; } // Lol diff --git a/zeitung/parts/imprint.tex b/zeitung/parts/imprint.tex index 69a1ded..dd628b1 100644 --- a/zeitung/parts/imprint.tex +++ b/zeitung/parts/imprint.tex @@ -14,9 +14,12 @@ \textbf{V.i.S.d.P} & RBS TG13 \\ % Verantwortlich im Sinne des Presserechts \textbf{\LaTeX} & Marvin Borner, Lars Krönner \\ \textbf{Web-Plattform} & Lars Krönner, Marvin Borner \\ + \textbf{Datenverwaltung} & Marvin Borner, Lars Krönner \\ \textbf{Web-Hosting} & Marvin Borner \\ - \textbf{Design} & Leia Saumweber, Tomislav Strazanac, Gianluca Marmo \\ + \textbf{Design} & Leia Saumweber, Tomislav Strazanac, Gianluca Marmo, Matthias Schmiegel, Sebastian Sutor \\ + \textbf{Inhalt} & Matthias Schmiegel, Sebastian Sutor \\ \textbf{Finanzierung \& Werbung} & Lars Mayer \\ \textbf{Planung \& Organisation} & Matthias Schmiegel, Sebastian Sutor \\ + \textbf{Rechtsabteilung} & Lars Mayer, Sebastian Sutor \end{tabular} \end{table} |