-
Notifications
You must be signed in to change notification settings - Fork 3
/
hgbthesis.cls
393 lines (345 loc) · 10 KB
/
hgbthesis.cls
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
%% hgbthesis.cls
%% Autor: Wilhelm Burger (wilhelm.burger@fh-hagenberg.at)
%% Diese Datei ist Teil des hagenberg-Package zur Erstellung von
%% Bachelor- und Diplomarbeiten.
\NeedsTeXFormat{LaTeX2e}
%\newcommand{\hgbthesisVersion}{} %Versionsnummer (obsolete)
\newcommand{\hgbthesisDate}{2010/06/15} %Versionsdatum
\ProvidesClass{hgbthesis}[\hgbthesisDate\space LaTeX-Vorlage fuer Diplomarbeiten, Masterabeiten, Bachelorarbeiten etc.]
\RequirePackage{ifthen}
\newcommand{\hgb@MainLanguage}{german} % also referenced in hgb.sty
\newcommand{\@matitelseiten}{}
\newcommand{\@datitelseiten}{}
\newcommand{\@batitelseiten}{}
\newcommand{\@prtitelseiten}{}
\newcommand{\@maketitlepages}{\@datitelseiten} %default: Diplomarbeit
%% begin class options ---------------------------------------------
\DeclareOption{master}{\renewcommand{\@maketitlepages}{\@matitelseiten}}
\DeclareOption{diplom}{\renewcommand{\@maketitlepages}{\@datitelseiten}}
\DeclareOption{bachelor}{\renewcommand{\@maketitlepages}{\@batitelseiten}}
\DeclareOption{praktikum}{\renewcommand{\@maketitlepages}{\@prtitelseiten}}
\DeclareOption{english}{\renewcommand{\hgb@MainLanguage}{english}}
\DeclareOption{german}{\renewcommand{\hgb@MainLanguage}{german}}
\DeclareOption*{\ClassWarning{hgbthesis}{Unknown document option "\CurrentOption"}}
\ProcessOptions
%% end class options ---------------------------------------------
\LoadClass[a4paper,11pt,oneside]{book}
\RequirePackage{hgb}[2009/11/27] % load associated style file hgb.sty
%-------------- Setup für Seiten im Front-Teil --------------------
\newcommand{\@studiengang}{\@MissingArg{Studiengang??}}
\newcommand{\studiengang}[1]{%
\renewcommand{\@studiengang}{#1}
}
\newcommand{\@studienort}{\@MissingArg{Studienort??}}
\newcommand{\studienort}[1]{%
\renewcommand{\@studienort}{#1}
}
\newcommand{\@betreuer}{\@MissingArg{Betreuer??}}
\newcommand{\betreuer}[1]{%
\renewcommand{\@betreuer}{#1}
}
\newcommand{\@nummer}{\@MissingArg{Arbeit Nummer??}}
\newcommand{\nummer}[1]{%
\renewcommand{\@nummer}{#1}
}
\newcommand{\@gegenstand}{\@MissingArg{Gegenstand??}}
\newcommand{\gegenstand}[1]{%
\renewcommand{\@gegenstand}{#1}
}
\newcommand{\@semester}{\@MissingArg{Semester??}}
\newcommand{\semester}[1]{%
\renewcommand{\@semester}{#1}
}
\newcommand{\@abgabemonat}{\@MissingArg{Monat??}}
\newcommand{\damonat}[1]{%
\renewcommand{\@abgabemonat}{#1}
}
\newcommand{\abgabemonat}[1]{%
\renewcommand{\@abgabemonat}{#1}
}
\newcommand{\@abgabejahr}{\@MissingArg{Jahr??}}
\newcommand{\dajahr}[1]{%
\renewcommand{\@abgabejahr}{#1}
}
\newcommand{\abgabejahr}[1]{%
\renewcommand{\@abgabejahr}{#1}
}
\newcommand{\@firma}{\@MissingArg{Firma??}}
\newcommand{\firma}[1]{%
\renewcommand{\@firma}{#1}
}
\newcommand{\@firmenUrl}{\@MissingArg{www.???}}
\newcommand{\firmenUrl}[1]{%
\renewcommand{\@firmenUrl}{#1}
}
\newcommand{\@firmenTel}{\@MissingArg{Tel??}}
\newcommand{\firmenTel}[1]{%
\renewcommand{\@firmenTel}{#1}
}
%------------------ Titelseiten -------------------
%% deprecated - use \maketitle instead!
\newcommand{\titelseite}{
\ClassWarning{hgbthesis}{\noexpand\titelseite is deprecated - use \noexpand\maketitle instead}
\maketitle
}
\newcommand{\@batitel}{%
\begin{titlepage}%
\rule{0mm}{1mm}
\vspace*{20mm}
%\noindent Left side \hfill right side\\
\begin{center}%
\setlength{\unitlength}{1cm}
\begin{picture}(12,4)
%\thinlines\put(0,0){\framebox(12,4){}}
\put(0,1.8){\parbox{12cm}{\centering\LARGE\bf%
\setlength{\baselineskip}{20pt}%
\@title}}
\end{picture}
\vskip 10mm%
{\large\sc\@author}
\vskip 40mm%
{\Large B\,A\,C\,H\,E\,L\,O\,R\,A\,R\,B\,E\,I\,T}%
\vskip 8mm%
{\large\sf Nr.~\@nummer}
\vskip 8mm%
{\large eingereicht am} \vskip 1mm {Fachhochschul-Bachelorstudiengang}%
\vskip 4mm%
{\large\sc\@studiengang}%
\vskip 4mm%
{\large in \@studienort}%
\vskip 16mm%
{\large im \@abgabemonat\ \@abgabejahr}%
\end{center}\par
\vfil\null
\end{titlepage}%
}
\newcommand{\@matitel}{%
\begin{titlepage}%
\rule{0mm}{1mm}
\vspace*{20mm}
%\noindent Left side \hfill right side\\
\begin{center}%
\setlength{\unitlength}{1cm}
\begin{picture}(12,4)
%\thinlines\put(0,0){\framebox(12,4){}}
\put(0,1.8){\parbox{12cm}{\centering\LARGE\bf%
\setlength{\baselineskip}{20pt}%
\@title}}
\end{picture}
\vskip 10mm%
{\large\sc\@author}
\vskip 40mm%
{\Large M\,A\,S\,T\,E\,R\,A\,R\,B\,E\,I\,T}%
\vskip 20mm%
{\large eingereicht am} \vskip 1mm {Masterstudiengang}%
\vskip 4mm%
{\large\sc\@studiengang}%
\vskip 4mm%
{\large in \@studienort}%
\vskip 16mm%
{\large im \@abgabemonat\ \@abgabejahr}%
\end{center}\par
\vfil\null
\end{titlepage}%
}
\newcommand{\@datitel}{%
\begin{titlepage}%
\rule{0mm}{1mm}
\vspace*{20mm}
%\noindent Left side \hfill right side\\
\begin{center}%
\setlength{\unitlength}{1cm}
\begin{picture}(12,4)
%\thinlines\put(0,0){\framebox(12,4){}}
\put(0,1.8){\parbox{12cm}{\centering\LARGE\bf%
\setlength{\baselineskip}{20pt}%
\@title}}
\end{picture}
\vskip 10mm%
{\large\sc\@author}
\vskip 40mm%
{\Large D\,I\,P\,L\,O\,M\,A\,R\,B\,E\,I\,T}%
\vskip 20mm%
{\large eingereicht am} \vskip 1mm {Fachhochschul-Masterstudiengang}%
\vskip 4mm%
{\large\sc\@studiengang}%
\vskip 4mm%
{\large in \@studienort}%
\vskip 16mm%
{\large im \@abgabemonat\ \@abgabejahr}%
\end{center}\par
\vfil\null
\end{titlepage}%
}
\newcommand{\@prtitel}{%
\begin{titlepage}%
\rule{0mm}{1mm}
\vspace*{20mm}
%\noindent Left side \hfill right side\\
\begin{center}%
\setlength{\unitlength}{1cm}
\begin{picture}(12,4)
%\thinlines\put(0,0){\framebox(12,4){}}
\put(0,1.8){\parbox{12cm}{\centering\LARGE\bf%
\setlength{\baselineskip}{20pt}%
Endbericht zum Berufspraktikum}}
\end{picture}
\vskip 10mm%
{\large\sc\@author}
\vskip 40mm%
{\Large B\,A\,C\,H\,E\,L\,O\,R\,A\,R\,B\,E\,I\,T}%
\vskip 8mm%
{\large\sf Nr.~\@nummer}
\vskip 8mm%
{\large eingereicht am} \vskip 1mm {Fachhochschul-Bachelorstudiengang}%
\vskip 4mm%
{\large\sc\@studiengang}%
\vskip 4mm%
{\large in \@studienort}%
\vskip 16mm%
{\large im \@abgabemonat\ \@abgabejahr}%
\end{center}\par
\vfil\null
\end{titlepage}%
}
%------------------ Copyright-Seite -------------------
\newcommand{\@copyrightseite}{%
\newpage
\setcounter{page}{2}
\thispagestyle{plain}
\rule{0mm}{1mm}
\vspace*{75mm}
\begin{center}
\ifthenelse{\equal{\hgb@MainLanguage}{german}}%
{\copyright\ Copyright\ \@abgabejahr\ \@author\\
\vspace{3mm} Alle Rechte vorbehalten}{}
\ifthenelse{\equal{\hgb@MainLanguage}{english}}%
{\copyright\ Copyright\ \@abgabejahr\ \@author\\
\vspace{3mm} All Rights Reserved}{}
%\vspace{75mm} \copyright\ Copyright\ \@author\ \@abgabejahr\\
\end{center}
}
%------------------ Firmen-Seite -------------------
\newcommand{\@firmenseite}{%
\newpage
\setcounter{page}{2}
\thispagestyle{plain}
\rule{0mm}{1mm}
\begin{center}
\vspace{25mm}
{Praktikumsstelle:}
\\
\vspace{3mm}
{\Large\sf\@firma\\ \mbox{}}
\\
{\sf \@firmenTel}
\\
{\sf \@firmenUrl}
\\
\vspace{45mm}
{Kontaktperson:}
\\
\vspace{3mm}
{\Large\sf\@betreuer\\ \mbox{}}
\end{center}
}
%------------------ Betreuer-Seite -------------------
\newcommand{\@babetreuerseite}{%
\newpage
\setcounter{page}{2}
\thispagestyle{plain}
\rule{0mm}{1mm}
\begin{center}
%
\vspace{40mm}
{Diese Arbeit entstand im Rahmen des Gegenstands}\\
\vspace{6mm}
{\Large\sf \@gegenstand\\ \mbox{}}\\
\medskip
im\\
\bigskip
{\@semester}\\
%
\vspace{45mm}
{Betreuer:}\\
\vspace{3mm}
{\Large\sf \@betreuer\\ \mbox{}}
\end{center}
}
\newcommand{\@erklaerungsseite}{%
% \chapter{Erklärung}
% %\thispagestyle{empty}
%
% \noindent
% Hiermit erkläre ich an Eides statt, dass ich die vorliegende Arbeit
% selbst\-ständig und ohne fremde Hilfe verfasst, andere als die
% angegebenen Quellen und Hilfsmittel nicht benutzt und die aus anderen
% Quellen entnommenen Stellen als solche gekennzeichnet habe.
%
% \vspace{10mm}
% \noindent
% \@studienort, am 25. November 2001
%
% \vspace{12mm}
% \noindent
% \@author
}
%------------ Struktur der Frontseiten -------------------
\renewcommand{\@matitelseiten}{
\@matitel
\@copyrightseite
\@erklaerungsseite
}
\renewcommand{\@datitelseiten}{
\@datitel
\@copyrightseite
\@erklaerungsseite
}
\renewcommand{\@batitelseiten}{
\@batitel
\@babetreuerseite
\@erklaerungsseite
}
\renewcommand{\@prtitelseiten}{
\@prtitel
\@firmenseite
\@erklaerungsseite
}
\renewcommand{\maketitle}{ %replace standard LaTeX-command
\hypersetup{
pdftitle={\@title},
pdfauthor={\@author},
pdfsubject={\@studiengang, \@studienort},
pdfcreator={LaTeX using class hgbthesis},
pdfproducer={},
pdfkeywords={}
}%
\@maketitlepages
}
%% Headings -------------------------------------------------------------
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\@ifundefined{chapter}%
{}%
{\renewcommand{\chaptermark}[1]{%
\ifthenelse{\value{chapter} < 1}%
{\markboth{#1}{}}%
{\markboth{\thechapter.\ #1}{}}
}}
\addtolength{\headheight}{\baselineskip}
\renewcommand{\headrulewidth}{0pt} %% thin line under header
%\renewcommand{\headrulewidth}{0.4pt} %% no line under header
\renewcommand{\footrulewidth}{0pt}
\fancyhf{} %% Clear all fields.
%\fancyhead[LE,RO]{\sffamily\thepage} %{\bf \rightmark}
%\fancyhead[LO,RE]{\sffamily\nouppercase{\leftmark}} %{\slshape \leftmark}
\fancyhead[R]{\sffamily\thepage} %{\bf \rightmark}
\fancyhead[L]{\sffamily\nouppercase{\leftmark}} %{\slshape \leftmark}
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyfoot[C]{\sffamily\thepage} % except the center
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
%%-------------------------------------------------------------
\endinput