aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Borner2021-01-31 21:35:25 +0100
committerMarvin Borner2021-01-31 21:35:25 +0100
commit1e2fbf6868cc6af2b19a3ca79cdfc4260c3d844a (patch)
tree41882e91cca21a308983b94ad94ecf020fe5d572
parent0dd2e9da3880ca47bc9c3970d6d82565c94922f6 (diff)
Images
-rwxr-xr-xcli.js4
-rw-r--r--zeitung/parts/studenttemplate.tex17
2 files changed, 11 insertions, 10 deletions
diff --git a/cli.js b/cli.js
index d7a762d..e8afc3a 100755
--- a/cli.js
+++ b/cli.js
@@ -67,11 +67,11 @@ if ((idx = params.indexOf("-r")) > -1) {
// TODO: More dumping
db.dump().then((data) => {
data.users.forEach((user) => {
- const textex = `\\student\n\\studentimages{${user.username}}\n\\studentprofile{${user.name} ${
+ const textex = `\\student\n\\studentimages{${user.id}}\n\\studentprofile{${user.name} ${
user.middlename || ""
} ${
user.surname
- }}{18.12.2002}{Mathematik}{Schlafen}{Canadian Pop}{Herr Schwarz}{Gehirn}{Cogito ergo sum}\n\\studenttable{Meistens wunderhübsch}{Essen}\n\\studentcomments{}`;
+ }}{18.12.2002}{Mathematik}{Wirtschaft}{Schlafen}{Canadian Pop}{Herr Schwarz}{Gehirn}{Cogito ergo sum}\n\\studenttable{Meistens wunderhübsch}{Essen}\n\\studentcomments{}`;
fs.writeFile(
__dirname + "/zeitung/parts/students/" + user.class + "/" + user.username + ".tex",
textex,
diff --git a/zeitung/parts/studenttemplate.tex b/zeitung/parts/studenttemplate.tex
index eed97ac..4f4288b 100644
--- a/zeitung/parts/studenttemplate.tex
+++ b/zeitung/parts/studenttemplate.tex
@@ -47,8 +47,8 @@
\fi
\AddToShipoutPictureBG*{
\AtTextLowerLeft{
- \put(\textwidth - \framex + \frameoffset, \framey + \frameoffset){
- \dfincludegraphics[keepaspectratio=true, width=\frameimgwidth]{parts/students/figures/bornerma_child.jpg}
+ \put(\textwidth - \framex + \frameoffset, \framey + \frameoffset + 8pt){
+ \dfincludegraphics[keepaspectratio=true, width=\frameimgwidth]{parts/students/figures/child_#1.jpg}
}
\put(\textwidth - \framex, \framey){
\oddflip[keepaspectratio=true, width=\framewidth]{rahmen.png}
@@ -57,7 +57,7 @@
}
}
-\providecommand\studentprofile[8]{%
+\providecommand\studentprofile[9]{%
\sectionmark{Steckbrief - #1}
\checkoddpage
@@ -74,12 +74,13 @@
\textbf{Name:} & #1 \\
\textbf{Geburtstag:} & #2 \\
\textbf{Lieblingsfach:} & #3 \\
- \textbf{Hobbies:} & #4 \\
- \textbf{Lieblingsgenre:} & #5 \\
+ \textbf{Hassfach:} & #4 \\
+ \textbf{Hobbies:} & #5 \\
+ \textbf{Lieblingsgenre:} & #6 \\
\end{tabular}}\\~\\
- \textbf{Das werde ich am meisten vermissen:}\\#6\\~\\
- \textbf{Ohne das hätte ich die Oberstufe nicht geschafft:}\\#7\\~\\
- \textbf{Lebensmotto:}\\#8\\~\\
+ \textbf{Das werde ich am meisten vermissen:}\\#7\\~\\
+ \textbf{Ohne das hätte ich die Oberstufe nicht geschafft:}\\#8\\~\\
+ \textbf{Lebensmotto:}\\#9\\~\\
};
\end{tikzpicture}
}