-
Notifications
You must be signed in to change notification settings - Fork 5
/
hsrthesis.cls
100 lines (89 loc) · 2.64 KB
/
hsrthesis.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{hsrthesis}[2012/06/06 A LaTex template for HSR Thesis]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
\ProcessOptions
\LoadClass[a4paper]{report}
\RequirePackage{ifthen}
\RequirePackage{graphicx}
\newcommand{\nothing}{}
% Including mostly used packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{mathptmx}
\usepackage[scaled=0.85]{helvet}
\usepackage{hyperref}
\usepackage{array}
\usepackage{ngerman}
\usepackage{glossaries}
\usepackage{color}
\usepackage{listings} \lstset{backgroundcolor=\color{lightgrey}} \lstset{language=Java}
\usepackage{wrapfig}
\usepackage{url}
\usepackage{float}
\usepackage{natbib}
\usepackage{tabularx}
\usepackage{booktabs}
\definecolor{lightgrey}{rgb}{.9,.9,.9}
% Table Stylings
% http://tex.stackexchange.com/a/13748
%%%%%%%%%%%%%%%%%%%%
\newcommand*\heading[1]{\bfseries{#1}}
\newcommand*\beforeheading{\toprule}
\newcommand*\afterheading{\midrule}
\newcommand*\normalline{}
\newcommand*\lastline{\bottomrule}
% Titlepage
%%%%%%%%%%%
\if@titlepage
\renewcommand{\maketitle}{
\begin{titlepage}
% Logos
\begin{picture}(0,200)(0,-100)
\put(-60, -30){\includegraphics[height=30mm]{images/hsrlogo.png}}
\put(200, -15){\includegraphics[height=20mm]{images/partnerlogo.png}}
\end{picture}
% title
\begin{center}
\Large\thesistype , \departement\\[2ex]
\huge\thesistitle\\[2ex]
\large\school\\[1ex]
\normalsize\term\\
\normalsize\thedate
\vfill
\end{center}
\begin{minipage}{\textwidth}
\begin{flushleft}
\large
\begin{tabular}[t]{ll}
% Checking Autor(s)
\ifthenelse{\equal{\thesisauthora}{}}{\message{blub}}{\ifthenelse{\equal{\thesisauthorb}{}}{\emph{Autor:} & \thesisauthora\\[3pt]}{\ifthenelse{\equal{\thesisauthorc}{}}{\emph{Autoren:} & \thesisauthora \ \& \thesisauthorb\\[3pt]}{\emph{Autoren:} & \thesisauthora \ \& \thesisauthorb \ \& \thesisauthorc\\[3pt]}}}
% Checking Supporter
\ifthenelse{\equal{\professor}{}}{\\}{\emph{Betreuer:} & \professor\\[3pt]}
\emph{Projektpartner:} & \partner\\[3pt]
\emph{Arbeitsperiode:} & \timeperiode\\[3pt]
\emph{Arbeitsumfang:} & \workload\\[3pt]
\emph{Link:} & \url{\linktothesis}
\end{tabular}
\end{flushleft}
\end{minipage}
\end{titlepage}%
}
\else
\renewcommand{\maketitle}{%
\begin{flushleft}
\null\hfill
\vskip 2cm
\sffamily\bfseries\upshape\huge
\@title\\
\mdseries\upshape\large
\vspace{.5em}%
\@author, \@date\\
% \rule{\textwidth}{.5mm}\\
\end{flushleft}
\@thanks
\par
\vskip 1cm
}
\fi