aboutsummaryrefslogtreecommitdiff
path: root/zeitung/parts/studenttemplate.tex
diff options
context:
space:
mode:
Diffstat (limited to 'zeitung/parts/studenttemplate.tex')
-rw-r--r--zeitung/parts/studenttemplate.tex30
1 files changed, 18 insertions, 12 deletions
diff --git a/zeitung/parts/studenttemplate.tex b/zeitung/parts/studenttemplate.tex
index 148c1c8..ade08b6 100644
--- a/zeitung/parts/studenttemplate.tex
+++ b/zeitung/parts/studenttemplate.tex
@@ -25,27 +25,28 @@
\ifoddpage\else
\def\ringx{-\paperwidth - 325pt} % ringwidth + 2 * ringx % Nope, idk anymore
\fi
-\AddToShipoutPictureBG*{
- \AtTextUpperLeft{
- \put(-\ringx + \ringoffset, -\ringy + \ringoffset){
- \dfincludegraphics[keepaspectratio=true, width=\ringimgwidth]{parts/generated/students/figures/bornerma.jpg}
- }
- \put(-\ringx, -\ringy){
- \includegraphics[keepaspectratio=true, width=\ringwidth]{ring.png}
- }
- }
-}
-% Frame
+% Frame and QR-Code
\def\framex{160pt}
\def\framey{20pt}
\def\framewidth{180pt}
\def\frameimgwidth{160pt}
\def\frameoffset{(\framewidth - \frameimgwidth) / 2}
+\def\qrcodex{90pt}
\ifoddpage\else
\def\framex{540pt} % paperwidth - framewidth / 2 % Nope, idk anymore
+ \def\qrcodex{470pt}
\fi
-\AddToShipoutPictureBG*{
+
+\AddToShipoutPictureFG*{
+ \AtTextUpperLeft{
+ \put(-\ringx + \ringoffset, -\ringy + \ringoffset){
+ \dfincludegraphics[keepaspectratio=true, width=\ringimgwidth]{parts/generated/students/figures/bornerma.jpg}
+ }
+ \put(-\ringx, -\ringy){
+ \includegraphics[keepaspectratio=true, width=\ringwidth]{ring.png}
+ }
+ }
\AtTextLowerLeft{
\put(\textwidth - \framex + \frameoffset, \framey + \frameoffset + 8pt){
\dfincludegraphics[keepaspectratio=true, width=\frameimgwidth]{parts/generated/students/figures/child_\stdid.jpg}
@@ -53,6 +54,11 @@
\put(\textwidth - \framex, \framey){
\oddflip[keepaspectratio=true, width=\framewidth]{rahmen.png}
}
+ \put(\textwidth - \qrcodex, \framey - 25pt){
+ \ifdefempty{\stdqrcode}{}{
+ \qrcode[nolink, height=0.7in]{\stdqrcode}
+ }
+ }
}
}