-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrdp.sty
210 lines (194 loc) · 6.22 KB
/
rdp.sty
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
\ProvidesPackage{rdp}
\RequirePackage[automark]{scrlayer-scrpage}
\RequirePackage{graphicx}
\RequirePackage{xcolor}
\RequirePackage[backend=bibtex,style=numeric]{biblatex}
\RequirePackage[colorlinks=true,
linkcolor=black,
filecolor=magenta,
urlcolor=blue,
citecolor=blue,
pdftex,
bookmarks=true,
bookmarksopen=false,
pdfpagemode=UseOutlines,
plainpages=false]
{hyperref}
\RequirePackage{listings}
\addbibresource{references.bib}
\NeedsTeXFormat{LaTeX2e}
\def\@school{}
\newcommand{\school}[1]{\gdef\@school{#1}}
\def\@department{}
\newcommand{\department}[1]{\gdef\@department{#1}}
\def\@subdepartment{}
\newcommand{\subdepartment}[1]{\gdef\@subdepartment{#1}}
\def\@session{}
\newcommand{\session}[1]{\gdef\@session{#1}}
\def\@note{}
\newcommand{\note}[1]{\gdef\@note{#1}}
\newcommand{\place}[1]{\gdef\@place{#1}}
\newcommand{\handindate}[1]{\gdef\@handindate{#1}}
\newcounter{candidatecount}
\newcommand{\candidatetopiclist}{}
\newcommand{\candidatelist}{}
\newcommand{\signaturelist}{}
\newcommand{\candidate}[2]{
\stepcounter{candidatecount}
\expandafter\def\expandafter\candidatetopiclist\expandafter{\candidatetopiclist
\item \textbf{#1}: #2
}
\expandafter\def\expandafter\candidatelist\expandafter{\candidatelist
#1\ifnum\value{candidatecount}=1\else\\\fi
}
\expandafter\def\expandafter\signaturelist\expandafter{\signaturelist
\sigentry{#1}
}
}
\newcommand{\sigentry}[1]{
\noindent
\textbf{#1}\hspace{1cm}\hrulefill
\ifnum\value{candidatecount}=1\else\\[2cm]\fi
}
\newcounter{supervisorcount}
\newcommand{\supervisorlist}{}
\newcommand{\supervisor}[1]{
\stepcounter{supervisorcount}
\expandafter\def\expandafter\supervisorlist\expandafter{\supervisorlist
#1\ifnum\value{supervisorcount}=1\else\\\fi
}
}
\setlength{\parindent}{0pt}
\def\chapterpagestyle{empty}
\clearpairofpagestyles
\ihead{\headmark}
\ohead{\pagemark}
\KOMAoptions{headsepline=.5pt}
\renewcommand\maketitle{
\begin{titlepage}
\vspace*{-15mm}
\begin{minipage}[t]{\textwidth}
\begin{minipage}[c]{0.1\textwidth}
\hspace*{-5mm}
\includegraphics[width=1.5\linewidth]{assets/htl.png}
\end{minipage}
\begin{minipage}[c]{0.8\textwidth}
\centering
{\bfseries\large\@school}\\
\vspace{1.5mm}
{\bfseries\small\@department}\\
\vspace{1.5mm}
{\scriptsize\@subdepartment}
\end{minipage}%
\begin{minipage}[c]{0.1\textwidth}
\hspace*{-2mm}
\includegraphics[width=1.5\linewidth]{assets/htl-bbs.png}
\end{minipage}
\end{minipage}
\null\vfill\vfill
\begin{center}
\vskip 10em
{\bfseries\Huge DIPLOMA THESIS\par \vskip 1em}
{\huge \@title\par}
\vskip 1em
{\ifx\@subtitle\@empty\else\@subtitle\par\fi}%
\vskip 2em%
{\Large \publishers \par}
\end{center}
\vfill\vfill
{\tabcolsep 0pt
\begin{tabular}[t]{l}
Performed in \@session\ by:\\[2ex]
\candidatelist
\end{tabular}
\hfill
\begin{tabular}[t]{l}
Supervisors:\\[2ex]
\supervisorlist
\end{tabular}
}
\vskip 2em
\vspace*{15mm}
{\@place, on \@handindate}
\rule{\textwidth}{0.2pt}
\vskip 2em
{\tabcolsep 0pt
\begin{minipage}[t]{\textwidth}
\begin{minipage}[t]{0.8\textwidth}
\begin{tabular}[t]{l}
Submission Statement:\\
Date:
\end{tabular}
\hfill
\begin{tabular}[t]{l}
Supervisors:
\end{tabular}
\end{minipage}
\end{minipage}
}
\par
\vfill
\end{titlepage}
\cleardoublepage
}
\newcommand{\affidavit}{
\thispagestyle{empty}
\section*{Affidavit}
The undersigned candidates have chosen to prepare a diploma thesis with the following task description in accordance with the Schulunterrichtsgesetz (School Education Act) § 34 Abs. 3 Z 1 and § 37 Abs. 2 Z 2 \cite{schug}, in conjunction with the provisions of the Prüfungsordnung BMHS (Examination Regulations for Vocational Middle and Higher Schools), Federal Law Gazette II No. 177/2012 \cite{pruefung}, as amended
\vspace{1cm}
\textbf{\@title}
\newline
\textbf{\@subtitle}
\vspace{1cm}
Individual tasks within the overall project:
\begin{itemize}
\candidatetopiclist
\end{itemize}
The candidates acknowledge that the diploma thesis must be worked on and completed independently and outside of class time, although class results may be incorporated if appropriately cited as such.
\newline
\newline
The complete diploma thesis must be submitted digitally and in two printed copies to the supervising teacher no later than \textbf{\@handindate}.
\newline
\newline
The candidates further acknowledge that cancellation of the diploma thesis is not possible.
\newline
\vspace{2cm}
\par
\signaturelist
\ifodd\value{candidatecount}
\begin{minipage}[t]{0.45\textwidth}
\end{minipage}
\fi
\vspace{2cm}
\vfill
\cleardoublepage
}
\newcommand{\timeentriescurrent}{}
\newcommand{\timeentriesnext}{}
\newcounter{totalHours}
\newcommand{\addtimeentry}[3]{
\ifnum#1<36
\g@addto@macro\timeentriesnext{%
#1 & #2 & #3 \addtocounter{totalHours}{#3}\\\hline
}
\else
\g@addto@macro\timeentriescurrent{%
#1 & #2 & #3 \addtocounter{totalHours}{#3}\\\hline
}
\fi
}
\newcommand{\printtimeentries}{
\setcounter{totalHours}{0}
\begin{tabular}{|c|l|r|}
\hline
\multicolumn{3}{|c|}{2024} \\\hline
\textbf{Week} & \textbf{Task Description} & \textbf{Hours} \\\hline
\timeentriescurrent
\multicolumn{3}{c}{} \\\hline
\multicolumn{3}{|c|}{2025} \\\hline
\textbf{Week} & \textbf{Task Description} & \textbf{Hours} \\\hline
\timeentriesnext
\multicolumn{3}{c}{} \\\hline
\multicolumn{2}{|l|}{\textbf{Total}} & \textbf{\thetotalHours} \\\hline
\end{tabular}
}