diff options
author | Marvin Borner | 2021-01-27 22:28:51 +0100 |
---|---|---|
committer | Marvin Borner | 2021-01-27 22:28:51 +0100 |
commit | 1667e98a498726092f823290103121708181440e (patch) | |
tree | f5e5208df3aa1dd054545426d7070571c0088e83 /zeitung/parts/studenttemplate.tex | |
parent | ed758229f14b2b609158357ed30527c0213d8fa7 (diff) |
Switched image positioning to eso-pic
Diffstat (limited to 'zeitung/parts/studenttemplate.tex')
-rw-r--r-- | zeitung/parts/studenttemplate.tex | 45 |
1 files changed, 16 insertions, 29 deletions
diff --git a/zeitung/parts/studenttemplate.tex b/zeitung/parts/studenttemplate.tex index 0bb97e6..d5c1586 100644 --- a/zeitung/parts/studenttemplate.tex +++ b/zeitung/parts/studenttemplate.tex @@ -2,34 +2,21 @@ \clearpage +% TODO: Add offset calculation variables (pretty easy) \providecommand\studentimages[1]{% - % Bild in Ring - \begin{tikzpicture}[remember picture, overlay] - \node[inner sep=0pt] at (2, -4) { - \includegraphics[keepaspectratio=true, width=200pt]{parts/students/figures/#1.jpg} - }; - \end{tikzpicture} - - % Ring - \begin{tikzpicture}[remember picture, overlay] - \node[inner sep=0pt] at (2, -4) { - \includegraphics[keepaspectratio=true, width=250pt]{ring.png} - }; - \end{tikzpicture} - - % Bild in Rahmen - \begin{tikzpicture}[remember picture, overlay] - \node[inner sep=0pt] at (14, -18.5) { - \includegraphics[keepaspectratio=true, width=160pt]{parts/students/figures/#1_child.jpg} - }; - \end{tikzpicture} - - % Rahmen - \begin{tikzpicture}[remember picture, overlay] - \node[inner sep=0pt] at (14, -18) { - \includegraphics[keepaspectratio=true, width=180pt]{rahmen.png} - }; - \end{tikzpicture} + \AddToShipoutPictureBG*{ + \AtTextUpperLeft{ + \put(-15, -215){\includegraphics[keepaspectratio=true, width=180pt]{parts/students/figures/#1.jpg}} + \put(-50, -250){\includegraphics[keepaspectratio=true, width=250pt]{ring.png}} + } + } + + \AddToShipoutPictureBG*{ + \AtTextLowerLeft{ + \put(\textwidth - 120, 50){\includegraphics[keepaspectratio=true, width=160pt]{parts/students/figures/#1_child.jpg}} + \put(\textwidth - 130, 40){\includegraphics[keepaspectratio=true, width=180pt]{rahmen.png}} + } + } } \providecommand\studentprofile[8]{% @@ -37,7 +24,7 @@ % Steckbrief Tabelle \begin{tikzpicture}[overlay] - \node[text width=250pt, align=left] at (12, -4) { + \node[text width=250pt, align=left] at (12, -5) { \Large{\begin{tabular}{@{}ll@{}} \textbf{Name:} & #1 \\ \textbf{Geburtstag:} & #2 \\ @@ -53,7 +40,7 @@ } \providecommand\studenttable[2]{% - \vskip 9cm + \vskip 10cm \hspace*{-1.2cm} \Large{\begin{tabular}{@{}ll@{}} \textbf{Erkennungsmerkmale:} & #1 \\ |