-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWeSTthesis.cls
More file actions
649 lines (584 loc) · 17.2 KB
/
WeSTthesis.cls
File metadata and controls
649 lines (584 loc) · 17.2 KB
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
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
% WeSTthesis.cls
%
% LaTeX document class for seminar papers, proposals, bachelor's theses, and
% master's theses written at the Institute for Web Science and Technologies.
%
% (C) 2016 Institute for Web Science and Technologies <west@uni-koblenz.de>
% University of Koblenz-Landau, Campus Koblenz
%
% Special thanks to Prof. Stefan Mueller for allowing the adaptation of
% cgBA.cls.
%
%*******************************************************************************
%--- Identification ------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{WeSTthesis}[2017/06/08 v1.4 Document class for seminar papers, proposals, bachelor's theses, and master's theses written at the Institute for Web Science and Technologies, University of Koblenz-Landau, Campus Koblenz.]
%--- Declaration of variables --------------------------------------------------
\newif\ifenglish
\newif\iffemalemale
\newif\iffemale
\newif\ifmale
\newif\ifgroup
\newif\ifseminar
\newif\ifproposal
\newif\ifbachelor
\newif\ifmaster
\newif\ifnogermanabstract
\newif\ifscrreprt
\newif\ifdate
\newif\iftimes
\newif\ifpalatino
\newif\iftwoside
\newif\ifbinding
\newif\ifframes
\newif\ifagreelibrary
\newif\ifagreeinternet
\newif\ifagreetextcc
\newif\ifagreegnu
\newif\ifagreedatacc
%--- Initialization of variables -----------------------------------------------
%TODO make this depending on \languagename?
\DeclareOption{english}{\englishtrue}
\DeclareOption{fm}{\femalemaletrue}
\DeclareOption{f}{\femaletrue}
\DeclareOption{m}{\maletrue}
\DeclareOption{group}{\grouptrue}
\DeclareOption{seminar}{\seminartrue}
\DeclareOption{proposal}{\proposaltrue}
\DeclareOption{bachelor}{\bachelortrue}
\DeclareOption{master}{\mastertrue}
\DeclareOption{nogermanabstract}{\nogermanabstracttrue}
\DeclareOption{scrreprt}{\scrreprttrue}
\DeclareOption{date}{\datetrue}
\DeclareOption{times}{\timestrue}
\DeclareOption{palatino}{\palatinotrue}
\DeclareOption{twoside}{\twosidetrue}
\DeclareOption{binding}{\bindingtrue}
\DeclareOption{frames}{\framestrue}
%--- Execution of options ------------------------------------------------------
\ProcessOptions
%--- Loading of packages -------------------------------------------------------
\ifscrreprt%
\LoadClass[a4paper,11pt,titlepage]{scrreprt}
\iftwoside%
\PassOptionsToClass{cleardoublepage=empty,twoside}{scrreprt}
\fi
\else
\LoadClass[a4paper,11pt,titlepage]{scrartcl}
\iftwoside%
\PassOptionsToClass{cleardoublepage=empty,twoside}{scrartcl}
\fi
\fi
\RequirePackage{titling}
\RequirePackage{ifoddpage}
% Default: Computer Modern (TeX-Standard)
\iftimes%
\RequirePackage{times} % font type Times New Roman
\fi
\ifpalatino%
\RequirePackage{palatino} % font type Book Antiqua/Palatino
\fi
\ifbinding%
% twoside does not include a binding offset itself
\ifframes%
% showframe option for testing the layout
\RequirePackage[bindingoffset=8mm,showframe]{geometry}
\else
\RequirePackage[bindingoffset=8mm]{geometry}
\fi
\else
\ifframes%
% showframe option for testing the layout
\RequirePackage[showframe]{geometry}
\else
\RequirePackage[]{geometry}
\fi
\fi
%--- Code ----------------------------------------------------------------------
\newcommand{\degreecourse}[1]{\def\degreecourse{#1}}
\newcommand{\firstreviewer}[1]{\def\firstreviewer{#1}}
\newcommand{\firstreviewerinfo}[1]{\def\firstreviewerinfo{#1}}
\newcommand{\secondreviewer}[1]{\def\secondreviewer{#1}}
\newcommand{\secondreviewerinfo}[1]{\def\secondreviewerinfo{#1}}
\newcommand{\englishabstract}[1]{\def\englishabstract{#1}}
\newcommand{\germanabstract}[1]{\def\germanabstract{#1}}
\newcommand{\declarationchoices}[5]{
\if#1Y
\agreelibrarytrue
\fi
\if#2Y
\agreeinternettrue
\fi
\if#3Y
\agreetextcctrue
\fi
\if#4Y
\agreegnutrue
\fi
\if#5Y
\agreedatacctrue
\fi
}
\newcommand{\monthword}{%
\ifenglish%
\ifcase\month%
\or January\or February\or March\or April\or May\or June\or July
\or August\or September\or Oktober\or November\or December\fi
\else
\ifcase\month%
\or Januar\or Februar\or M\"arz\or April\or Mai\or Juni\or Juli%
\or August\or September\or Oktober\or November\or Dezember%
\fi
\fi
}
% redefine \maketitle
\renewcommand{\maketitle}{
\ifenglish%
\selectlanguage{english}
\else
\selectlanguage{ngerman}
\fi
\begin{titlepage}
\begin{center}
\renewcommand{\arraystretch}{.8}
\begin{tabular}{c p{2.25cm} c}
\includegraphics[height=1cm, trim={1cm 1.8cm 1cm 1.8cm},clip]{logos/unistuttgart_logo_englisch}
&
\empty
&
\includegraphics[height=1cm]{logos/AC-logo}
\\
\hspace{.71cm}
\ifenglish%
\begin{footnotesize}
Faculty 5: Computer Science, Electrical Engineering
\end{footnotesize}
\\
\begin{footnotesize}
and Information Technology
\end{footnotesize}
\else
\begin{footnotesize}
Fakultät 5: Informatik, Elektrotechnik und
\end{footnotesize}
\\
\begin{footnotesize}
Informationstechnik
\end{footnotesize}
\fi
&
\empty
&
\begin{footnotesize}
Department of
\end{footnotesize}
\\
&
\empty
&
\begin{footnotesize}
Analytic Computing
\end{footnotesize}
\end{tabular}\\
\renewcommand{\arraystretch}{1.0} %reset arraystretch to default
\vspace*{1.75cm}
\begin{huge}
\textbf{\thetitle}\\[1.75cm]
\ifbachelor%
\ifenglish%
Bachelor's Thesis
\else
Bachelorarbeit
\fi
\else
\ifmaster%
\ifenglish%
Master's Thesis
\else
Masterarbeit
\fi
\else
\ifseminar%
\ifenglish%
Seminar Paper
\else
Seminararbeit
\fi
\else
\ifproposal%
\ifenglish%
Thesis Proposal
\else
Proposal
\fi
\else
>>SET TYPE (seminar, bachelor...) IN DOCUMENTCLASS OPTIONS<<
\fi
\fi
\fi
\fi
\\[.2cm]
\end{huge}
\ifseminar%
%do nothing
\else
\ifproposal%
%do nothing
\else
\ifenglish%
in partial fulfillment of the requirements for\\
the degree of
\else
zur Erlangung des Grades
\iffemalemale%
einer/eines
\else
\iffemale%
einer
\else
\ifmale%
eines
\else
>>SET GENDER (fm, f, or m) IN DOCUMENTCLASS OPTIONS<<
\fi
\fi
\fi
\fi
\ifbachelor%
Bachelor of Science (B.Sc.)
\else
\ifmaster%
Master of Science (M.Sc.)
\else
>>SET GRADE (bachelor or master) IN DOCUMENTCLASS OPTIONS<<
\fi
\fi
\\
\ifenglish%
in
\else
im Studiengang
\fi
\degreecourse\\[.75cm]
\fi
\fi
\begin{large}
\ifenglish%
submitted by\\
\else
vorgelegt von\\
\fi
\end{large}
\begin{Large}
\theauthor\\[3.79cm]
\end{Large}
\end{center}
\begin{tabular}{ll}
\ifseminar%
\ifenglish%
Supervisors:
\else
Betreuer:
\fi
& \firstreviewer\\
\empty & \firstreviewerinfo\\[2.5mm]
\empty & \secondreviewer\\
\empty & \secondreviewerinfo\\[2cm]
\else
\ifenglish%
First supervisor:
\else
Erstgutachter:
\fi
& \firstreviewer\\
\empty & \firstreviewerinfo\\[2.5mm]
\ifenglish%
Second supervisor:
\else
Zweitgutachter:
\fi
& \secondreviewer\\
\empty & \secondreviewerinfo\\[2cm]
\fi
\ifdate%
Stuttgart, \today &
\else
\ifenglish%
Stuttgart, \monthword{} \the\year &
\else
Stuttgart, im \monthword{} \the\year &
\fi
\fi
\end{tabular}
\end{titlepage}
\iftwoside%
\thispagestyle{empty}
\null\cleardoublepage%
\fi
\ifseminar%
%don't print the assertion
\else
\ifproposal%
%don't print the assertion
\else
\newcounter{AuthorNumber}
\ifgroup%
\setcounter{AuthorNumber}{2}
\else
\setcounter{AuthorNumber}{1}
\fi
\begin{flushleft}
\loop\ifnum\theAuthorNumber>0
\begin{Large}
\ifenglish%
Statement
\else
Erkl{\"a}rung
\fi
\\[5mm]
\end{Large}
\ifenglish%
I hereby certify that this thesis has been composed by me and is based on my own work, that I did not use any further resources than specified \textendash{} in particular no references unmentioned in the reference section \textendash{} and that I did not submit this thesis to another examination before. The paper submission is identical to the submitted electronic version.
\else
Hiermit best{\"a}tige ich, dass die vorliegende Arbeit von mir selbstst{\"a}ndig verfasst wurde und ich keine anderen als die angegebenen Hilfsmittel \textendash{} insbesondere keine im Quellenverzeichnis nicht benannten Internet-Quellen \textendash{} benutzt habe und die Arbeit von mir vorher nicht in einem anderen Pr{\"u}fungsverfahren eingereicht wurde. Die eingereichte schriftliche Fassung entspricht der auf dem elektronischen Speichermedium (CD-Rom).
\fi
\\[.75cm]
\begin{center}
\begin{tabular}{l p{1cm} cc}
\empty & \empty &
\ifenglish%
Yes
\else
Ja
\fi
&
\ifenglish%
No
\else
Nein
\fi
\\[.5cm]
\ifenglish%
I agree to have this thesis published in the library.& \empty &
\ifagreelibrary
$\text{\rlap{$\times$}}\square$
\else
$\square$
\fi
&
\ifagreelibrary
$\square$
\else
$\text{\rlap{$\times$}}\square$
\fi
\\[.5cm]
\else
Mit der Einstellung dieser Arbeit in die Bibliothek& \empty & \empty & \empty\\
bin ich einverstanden. & \empty &
\ifagreelibrary
$\text{\rlap{$\times$}}\square$
\else
$\square$
\fi
&
\ifagreelibrary
$\square$
\else
$\text{\rlap{$\times$}}\square$
\fi
\\[.5cm]
\fi
\ifenglish%
I agree to have this thesis published on the Web.& \empty &
\ifagreeinternet
$\text{\rlap{$\times$}}\square$
\else
$\square$
\fi
&
\ifagreeinternet
$\square$
\else
$\text{\rlap{$\times$}}\square$
\fi
\\[.5cm]
\else
Der Ver\"offentlichung dieser Arbeit im Internet& \empty & \empty & \empty\\
stimme ich zu.& \empty &
\ifagreeinternet
$\text{\rlap{$\times$}}\square$
\else
$\square$
\fi
&
\ifagreeinternet
$\square$
\else
$\text{\rlap{$\times$}}\square$
\fi
\\[.5cm]
\fi
\ifenglish%
The thesis text is available under a Creative Commons & \empty & \empty & \empty\\
License (CC BY-SA 4.0). & \empty &
\ifagreetextcc
$\text{\rlap{$\times$}}\square$
\else
$\square$
\fi
&
\ifagreetextcc
$\square$
\else
$\text{\rlap{$\times$}}\square$
\fi
\\[.5cm]
\else
Der Text dieser Arbeit ist unter einer Creative & \empty & \empty & \empty \\
Commons Lizenz (CC BY-SA 4.0) verf\"ugbar. & \empty &
\ifagreetextcc
$\text{\rlap{$\times$}}\square$
\else
$\square$
\fi
&
\ifagreetextcc
$\square$
\else
$\text{\rlap{$\times$}}\square$
\fi
\\[.5cm]
\fi
\ifenglish%
The source code is available under a GNU General Public & \empty & \empty & \empty\\
License (GPLv3). & \empty &
\ifagreegnu
$\text{\rlap{$\times$}}\square$
\else
$\square$
\fi
&
\ifagreegnu
$\square$
\else
$\text{\rlap{$\times$}}\square$
\fi
\\[.5cm]
\else
Der Quellcode ist unter einer GNU General Public & \empty & \empty & \empty\\
License (GPLv3) verf\"ugbar. & \empty &
\ifagreegnu
$\text{\rlap{$\times$}}\square$
\else
$\square$
\fi
&
\ifagreegnu
$\square$
\else
$\text{\rlap{$\times$}}\square$
\fi
\\[.5cm]
\fi
\ifenglish%
The collected data is available under a Creative Commons & \empty & \empty & \empty\\
License (CC BY-SA 4.0). & \empty &
\ifagreedatacc
$\text{\rlap{$\times$}}\square$
\else
$\square$
\fi
&
\ifagreedatacc
$\square$
\else
$\text{\rlap{$\times$}}\square$
\fi
\\[.5cm]
\else
Die erhobenen Daten sind unter einer Creative & \empty & \empty & \empty\\
Commons Lizenz (CC BY-SA 4.0) verf\"ugbar. & \empty &
\ifagreedatacc
$\text{\rlap{$\times$}}\square$
\else
$\square$
\fi
&
\ifagreedatacc
$\square$
\else
$\text{\rlap{$\times$}}\square$
\fi
\\
\fi
\end{tabular}\\[2cm]
\end{center}
\begin{small}
\dotfill\\
\ifenglish
(Place, Date)\hfill(Signature)
\else
(Ort, Datum)\hfill(Unterschrift)
\fi
\end{small}
\addtocounter{AuthorNumber}{-1}
\cleardoublepage%
\repeat%
\end{flushleft}
\vspace{2em}
\begin{flushleft}
\begin{Large}
\ifenglish%
Note
\else
Anmerkung
\fi
\\[5mm]
\end{Large}
% \ifenglish%
\begin{itemize}
\item If you would like us to contact you for the graduation ceremony,
\item[] please provide your personal E-mail address: \dotfill
\item If you would like us to send you an invite to join the AC Alumni
\item[] and Members group on LinkedIn, please provide your LinkedIn ID : \dotfill
\end{itemize}
% \else
% \begin{itemize}
% \item Wenn Sie m\"ochten, dass wir Sie zur Abschlussfeier kontaktieren,
% \item[] geben Sie bitte Ihre pers\"onliche E-Mail-Adresse an: \dotfill
% \item Wenn Sie m\"ochten, dass wir Ihnen eine Einladung zur Teilnahme
% \item[]an der WeST Alumni- und Mitgliedergruppe auf LinkedIn senden, geben Sie bitte Ihre LinkedIn ID an: \dotfill
% \end{itemize}
% \fi
% \\[5mm]
\cleardoublepage%
\end{flushleft}
\fi
\fi
\ifnogermanabstract
\empty
\else
\selectlanguage{ngerman}
\begin{center}
\begin{large}
\bfseries{Zusammenfassung}
\end{large}
\end{center}
\germanabstract
\par\bigskip
\par\bigskip
\fi
\selectlanguage{english}
\begin{center}
\begin{large}
\bfseries{Abstract}
\end{large}
\end{center}
\englishabstract
\ifenglish
\selectlanguage{english}
\else
\selectlanguage{ngerman}
\fi
\cleardoublepage%
}