forked from floriansiepe/Latex-THM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTHM.cls
210 lines (152 loc) · 4.46 KB
/
THM.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{THM}[2018/10/10 THM LaTeX class]
\RequirePackage{scrextend}
\RequirePackage{graphicx}
\RequirePackage{setspace}
\RequirePackage{geometry}
\RequirePackage{fancyhdr}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
\ProcessOptions
\LoadClass{report}
\onehalfspacing{}
\geometry{paper=a4paper,left=40mm,right=15mm,top=20mm,bottom=20mm}
% Set header
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}}
\fancyhf{}
\fancyfoot{}
\rhead{\nouppercase{\rightmark}}
\lhead{\nouppercase{\leftmark}}
\rfoot{\thepage}
% Redefine for toc and chapter pages
\fancypagestyle{plain}{%
\fancyhf{}%
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0mm}%
}
% Remove the chapter keyword
\def\@makechapterhead#1{%
{\parindent \z@ \raggedright \normalfont
\interlinepenalty\@M
\Large \bfseries {\huge\thechapter\hskip 20\p@#1}\par\nobreak
\vskip 20\p@
}}
\def\@documentType{Praxisphasenbericht}
\def\@documentTypeDescription{}
\newcommand{\documentType}[2]{
\def\@documentType{#1}
\def\@documentTypeDescription{#2}
}
\def\@companysupervisor{}
\newcommand{\companysupervisor}[1]{
\def\@companysupervisor{#1}
}
\def\@unisupervisor{}
\newcommand{\unisupervisor}[1]{
\def\@unisupervisor{#1}
}
\def\@companyName{}
\def\@companyPlz{}
\def\@companyPlace{}
\def\@companyStreet{}
\def\@companyLogo{}
\newcommand{\company}[5]{
\def\@companyName{#1}
\def\@companyPlz{#2}
\def\@companyPlace{#3}
\def\@companyStreet{#4}
\def\@companyLogo{#5}
}
\def\@authorPlz{}
\def\@authorPlace{}
\def\@authorStreet{}
\def\@authorMat{}
\renewcommand{\author}[5]{
\def\@author{#1}
\def\@authorPlz{#2}
\def\@authorPlace{#3}
\def\@authorStreet{#4}
\def\@authorMat{#5}
}
\newcommand{\logoTHM}{resources/thm.jpg}
\newcommand{\logoSTP}{resources/sp.jpg}
\renewcommand{\maketitle}{
\thispagestyle{plain}
\begin{titlepage}
\begin{addmargin}[-0.5cm]{0cm}
\thispagestyle{empty} %% ohne Kopf- und Fusszeile, Seitennummer etc.
\begin{figure}[h]
\centering
\includegraphics[height=1.5cm,keepaspectratio]{\logoTHM}
\hfill
\includegraphics[height=1.79cm,keepaspectratio]{\logoSTP}
\end{figure}
\begin{center}
\vspace{15mm}
\large
\textbf{\@documentType}
\large
\@documentTypeDescription
\end{center}
\vspace{1.0cm}
Thema:
\begin{center}
\large
\@title
\large
\normalsize
\vspace{10mm}
\small
\end{center}
\begin{tabular}[h]{ll}
Vorgelegt von: & \@author \\
& \@authorStreet \\
& \@authorPlace \\
% &
Matrikelnummer: & \@authorMat \\
Eingereicht bei:& \\
Hochschulbetreuer: & \@unisupervisor \\
Fachbetreuer: & \@companysupervisor \\
Unternehmen: & \@companyName \\
& \@companyStreet \\
& \@companyPlz \ \@companyPlace \\
\\
Eingereicht am: & \@date
\end{tabular}
\vspace{10mm}
\begin{flushright}
\includegraphics[height=1.5cm,keepaspectratio]{\@companyLogo}
\end{flushright}
\end{addmargin}
\end{titlepage}
}
\newcommand{\makeinsurance}{
\chapter*{Versicherung}
\addcontentsline{toc}{chapter}{Versicherung}
\thispagestyle{empty}
Ich, \@author, Matrikel-Nr.\ \@authorMat, versichere hiermit, dass ich meinen \@documentType\ mit dem Thema
\begin{quote}
\textit{\@title}
\end{quote}
selbständig verfasst und keine anderen als die angegebenen Quellen und Hilfsmittel benutzt habe, wobei ich alle wörtlichen und sinngemäßen Zitate als solche gekennzeichnet habe. Die Arbeit wurde bisher keiner anderen Prüfungsbehörde vorgelegt und auch nicht veröffentlicht.
\vspace{8ex}
\@companyPlace, den \@date
\vspace{6ex}
\rule[-0.2cm]{5cm}{0.5pt}
\textsc{\@author}
}
\newcommand{\lockMark}{
\chapter*{Sperrvermerk}
\thispagestyle{empty}
Der vorliegende Praxisphasenbericht beinhaltet interne vertrauliche Informationen
der \@companyName. Die Weitergabe des Inhaltes der Arbeit
und eventuell beiliegender Zeichnungen und Daten im Gesamten oder in Teilen ist
grundsätzlich untersagt. Es dürfen keinerlei Kopien oder Abschriften - auch in digitaler
Form - gefertigt werden. Ausnahmen bedürfen der schriftlichen Genehmigung der
\@companyName.
\newpage
}
\newcommand{\commonAcronyms}{
Allgemeine Abkürzungen, wie „z.B.“, „etc.“, „usw.“ oder gängige Abkürzungen in Fußnoten, wie z.B. „vgl.“, usw. wurden explizit nicht im Abkürzungsverzeichnis aufgeführt.
}