-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleguide.sty
272 lines (242 loc) · 8.17 KB
/
styleguide.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
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
\usepackage{ifthen}
\ifthenelse{\isundefined{\includegraphics}} {\usepackage{graphicx}} {}
% SOME SETTINGS:
% Pagestyle:
\pagestyle{headings}
% Avoid 'overhang':
\sloppy
% Choose default language (de - en)
\newcommand{\setlang}[1]{
\newcommand{\lang}{#1}
}
% Allows switching languages within the document
\newcommand{\switchlanguage}[1]{
\ifthenelse{\equal{#1}{de}} {\selectlanguage{ngerman}} {\selectlanguage{american}}
\nonfrenchspacing
}
\renewcommand{\title}[1]{ \newcommand{\inserttitle}{#1} }
% Inserts type of paper
\newcommand{\type}[1]{ \newcommand{\inserttype}
{\ifthenelse{\equal{\lang}{de}}
{
\ifthenelse{\equal{#1}{M}}{ \begin{center} Master-Arbeit \end{center} }
{
\ifthenelse{\equal{#1}{B}}{ \begin{center} Bachelor-Arbeit \end{center} }
{
\ifthenelse{\equal{#1}{D}}{ \begin{center} Diplomarbeit \end{center} }
{
\ifthenelse{\equal{#1}{S}}{ \begin{center} Studienarbeit \end{center} }{#1}
}
}
}
}
% engl.
{
\ifthenelse{\equal{#1}{M}}{ \begin{center} Master Thesis \end{center} }
{
\ifthenelse{\equal{#1}{B}}{ \begin{center} Bachelor Thesis \end{center} }
{
\ifthenelse{\equal{#1}{D}}{ \begin{center} Diplomarbeit \end{center} }
{
\ifthenelse{\equal{#1}{S}}{ \begin{center} Studienarbeit \end{center} }{#1}
}
}
}
}
} }
% \begin{comment}
% Inserts faculty
\newcommand{\fakultaet}[1]{ \newcommand{\insertfakultaet}
{\ifthenelse{\equal{\lang}{de}}
{
\ifthenelse{\equal{#1}{1}}{ \begin{center} Fakult\"at 01 - Architektur \end{center} }
{
\ifthenelse{\equal{#1}{2}}{ \begin{center} Fakult\"at 02 - Bauingenieurwesen \end{center} }
{
\ifthenelse{\equal{#1}{3}}{ \begin{center} Fakult\"at 03 - Maschinenbau, Fahrzeugtechnik und Flugzeugtechnik \end{center} }
{
\ifthenelse{\equal{#1}{4}}{ \begin{center} Fakult\"at 04 - Elektrotechnik und Informationstechnik \end{center} }
{
\ifthenelse{\equal{#1}{5}}{ \begin{center} Fakult\"at 05 - Versorgungs- und Geb\"audetechnik, Verfahrenstechnik Papier und Verpackung, Druck- und Medientechnik \end{center} }
{
\ifthenelse{\equal{#1}{6}}{ \begin{center} Fakult\"at 06 - Angewandte Naturwissenschaften und Mechatronik \end{center} }
{
\ifthenelse{\equal{#1}{7}}{ \begin{center} Fakult\"at 07 - Informatik und Mathematik \end{center} }
{
\ifthenelse{\equal{#1}{8}}{ \begin{center} Fakult\"at 08 - Geoinformation \end{center} }
{
\ifthenelse{\equal{#1}{9}}{ \begin{center} Fakult\"at 09 - Wirtschaftsingenieurwesen \end{center} }
{
\ifthenelse{\equal{#1}{10}}{ \begin{center} Fakult\"at 10 - Betriebswirtschaft \end{center} }
{
\ifthenelse{\equal{#1}{11}}{ \begin{center} Fakult\"at 11 - Angewandte Sozialwissenschaften \end{center} }
{
\ifthenelse{\equal{#1}{12}}{ \begin{center} Fakult\"at 12 - Design \end{center} }
{
\ifthenelse{\equal{#1}{13}}{ \begin{center} Fakult\"at 13 - Studium Generale und Interdisziplin\"are Studien \end{center} }
{
\ifthenelse{\equal{#1}{14}}{ \begin{center} Fakult\"at 14 - Tourismus \end{center} }{#1}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
% engl.
{\ifthenelse{\equal{#1}{1}}{ \begin{center} Faculty 01 - Architecture \end{center} }
{
\ifthenelse{\equal{#1}{2}}{ \begin{center} Faculty 02 - Civil Engineering \end{center} }
{
\ifthenelse{\equal{#1}{3}}{ \begin{center} Faculty 03 - Mechanical, Automotive and Aeronautical Engineering \end{center} }
{
\ifthenelse{\equal{#1}{4}}{ \begin{center} Faculty 04 - Electrical Engineering and Information Technology \end{center} }
{
\ifthenelse{\equal{#1}{5}}{ \begin{center} Faculty 05 - Building Services Engineering, Paper and Packaging Technology and Print and Media Technology \end{center} }
{
\ifthenelse{\equal{#1}{6}}{ \begin{center} Faculty 06 - Applied Sciences and Mechatronics \end{center} }
{
\ifthenelse{\equal{#1}{7}}{ \begin{center} Faculty 07 - Computer Science and Mathematics \end{center} }
{
\ifthenelse{\equal{#1}{8}}{ \begin{center} Faculty 08 - Geoinformatics \end{center} }
{
\ifthenelse{\equal{#1}{9}}{ \begin{center} Faculty 09 - Engineering and Management \end{center} }
{
\ifthenelse{\equal{#1}{10}}{ \begin{center} Faculty 10 - Business Administration \end{center} }
{
\ifthenelse{\equal{#1}{11}}{ \begin{center} Faculty 11 - Applied Social Sciences \end{center} }
{
\ifthenelse{\equal{#1}{12}}{ \begin{center} Faculty 12 - Design \end{center} }
{
\ifthenelse{\equal{#1}{13}}{ \begin{center} Faculty 13 - General and Interdisciplinary Studies \end{center} }
{
\ifthenelse{\equal{#1}{14}}{ \begin{center} Faculty 14 - Tourism \end{center} }{#1}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} }
% \end{comment}
\renewcommand{\author}[1]{ \newcommand{\insertauthor}{#1} }
\newcommand{\matrikelnr}[1]{ \newcommand{\insertmatrikelnr}{#1} }
%\newcommand{\address}[2]{ \newcommand{\insertaddress}{\parbox[t]{12cm}{#1\\#2}} }
\newcommand{\street}[1]{ \newcommand{\insertstreet}{#1} }
\newcommand{\town}[1]{ \newcommand{\inserttown}{#1} }
\newcommand{\advisor}[1]{ \newcommand{\insertadvisor}{#1} }
\newcommand{\advisortwo}[1]{ \newcommand{\insertadvisortwo}{#1} }
\newcommand{\datebegin}[1]{ \newcommand{\insertdatebegin}{#1} }
\newcommand{\dateend}[1]{ \newcommand{\insertdateend}{#1} }
% TITLE #######################################################################
\newcommand{\makemtgtitle}
{
\thispagestyle{empty}
\newpage
\ifthenelse{\equal{\lang}{de}}{
% GERMAN TITLEPAGE ------------------
\vspace{5cm}
\begin{center}
% Inserts HM logo into first page
\includegraphics[width=10cm]{figures/Hochschule_Muenchen_Logo}
\end{center}
\begin{center} {
\sf
\Large Hochschule f\"ur angewandte Wissenschaften M\"unchen
\smallskip
% \Large
{ \begin{center} \insertfakultaet \end{center} }
\smallskip
}
\end{center}
\vspace{4cm}
\begin{center}
{\bf\Huge \inserttype}
\end{center}
\begin{center}
\vspace{.4cm}
{\LARGE
\inserttitle
}
\end{center}
\vfill
{
\begin{center}
\setlength{\baselineskip}{0.2cm}
\large\begin{tabular}{rl}
Autor: & \insertauthor\\
Matrikelnummer: & \insertmatrikelnr\\
Anschrift: & \insertstreet\\
& \inserttown \\
Erstbetreuer: & \insertadvisor\\
Zweitbetreuer: & \insertadvisortwo\\
Beginn: & \insertdatebegin\\
Abgabe: & \insertdateend
\end{tabular}
\end{center}
}
% Independence and License statements
% \include{ErklaerungDE}
}{
% ENGLISH TITLEPAGE -----------------
\vspace{5cm}
\begin{center}
% \includegraphics[width=4cm]{TUMLogo_oZ_Outline_schwarz_CMYK}
\includegraphics[width=10cm]{figures/Hochschule_Muenchen_Logo}
\end{center}
\begin{center} {
\sf
\Large University of applied Sciences Munich
\smallskip
% \Large Faculty
\insertfakultaet
\smallskip
}
% {\sf \large Prof. Dr.-Ing. Eckehard Steinbach}
\end{center}
\vspace{4cm}
\begin{center}
{\bf\Huge \inserttype}
\end{center}
\begin{center}
\vspace{.4cm}
{\LARGE
\inserttitle
}
\end{center}
\vfill
{
\begin{center}
\setlength{\baselineskip}{0.2cm}
\large\begin{tabular}{ll}
Author: & \insertauthor\\
Matriculation Number: & \insertmatrikelnr\\
Address: & \insertstreet\\
& \inserttown\\
Advisor: & \insertadvisor\\
Advisor Two: & \insertadvisortwo\\
Begin: & \insertdatebegin\\
End: & \insertdateend
\end{tabular}
\end{center}
}
% Independence and License statements
% \include{ErklaerungEN}
}
}
%##############################################################################