blob: 83d1101db89b2fe3c84f6eb3465955ce79fab8e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
% Student template
\clearpage
% Returns a default file if not found
\providecommand\dfincludegraphics[2][]{
\IfFileExists{#2}
{
\includegraphics[#1]{#2}
}
{
%\fbox{File not found}
}
}
\providecommand\studentimages[1]{%
\checkoddpage
% Ring
\def\ringx{50pt}
\def\ringy{250pt}
\def\ringwidth{250pt}
\def\ringimgwidth{180pt}
\def\ringoffset{(\ringwidth - \ringimgwidth) / 2}
\ifoddpage\else
\def\ringx{-\paperwidth - 350pt} % ringwidth + 2 * ringx
\fi
\AddToShipoutPictureBG*{
\AtTextUpperLeft{
\put(-\ringx + \ringoffset, -\ringy + \ringoffset){
\dfincludegraphics[keepaspectratio=true, width=\ringimgwidth]{parts/students/figures/bornerma.jpg}
}
\put(-\ringx, -\ringy){
\oddflip[keepaspectratio=true, width=\ringwidth]{ring.png}
}
}
}
% Frame
\def\framex{130pt}
\def\framey{40pt}
\def\framewidth{180pt}
\def\frameimgwidth{160pt}
\def\frameoffset{(\framewidth - \frameimgwidth) / 2}
\ifoddpage\else
\def\framex{518pt} % paperwidth - framewidth / 2
\fi
\AddToShipoutPictureBG*{
\AtTextLowerLeft{
\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}
}
}
}
}
\providecommand\studentprofile[9]{%
\sectionmark{Steckbrief - #1}
\checkoddpage
% Steckbrief Tabelle
\ifoddpage
\def\tablex{12}
\else
\def\tablex{3}
\fi
\def\tabley{-5}
\def\tablewidth{6cm}
\begin{tikzpicture}[overlay]
\node[text width=250pt, align=left] at (\tablex, \tabley) {
\Large{\begin{tabular}{@{}ll@{}}
\textbf{Name:} & \multicolumn{1}{p{\tablewidth}}{#1} \\
\textbf{Geburtstag:} & \multicolumn{1}{p{\tablewidth}}{#2} \\
\textbf{Lieblingsfach:} & \multicolumn{1}{p{\tablewidth}}{#3} \\
\textbf{Hassfach:} & \multicolumn{1}{p{\tablewidth}}{#4} \\
\textbf{Hobbies:} & \multicolumn{1}{p{\tablewidth}}{#5} \\
\textbf{Lieblingsgenre:} & \multicolumn{1}{p{\tablewidth}}{#6} \\
\end{tabular}}\\~\\
\textbf{Das werde ich am meisten vermissen:}\\#7\\~\\
\textbf{Ohne das hätte ich die Oberstufe nicht geschafft:}\\#8\\~\\
\textbf{Lebensmotto:}\\#9\\~\\
};
\end{tikzpicture}
}
\providecommand\studenttable[2]{%
\checkoddpage
\ifoddpage
\def\tablex{-1.25cm}
\else
\def\tablex{5cm}
\fi
\def\tablewidth{\textwidth}
\vskip 10cm
\hspace*{\tablex}
\Large{\begin{tabular}{@{}ll@{}}
%\textbf{Erkennungsmerkmale:} & \multicolumn{1}{p{\tablewidth}}{#1} \\
\textbf{Zukunftspläne:} & \multicolumn{1}{p{\tablewidth}}{#2} \\
\end{tabular}}
}
\providecommand\studentcomments[1]{%
\begin{figure}[H]
\hspace*{-2.5cm}\includegraphics[keepaspectratio=true, width=\paperwidth]{mittelwelle.png}
\end{figure}
}
|