forked from ssinhaleite/thesis-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ethidsc.sty
306 lines (251 loc) · 8.16 KB
/
ethidsc.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
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
%==============================================================================
% ETHIDSC -- (ethidsc.sty) Style file
% A LaTeX package providing new style definitions and commands.
% The ethidsc-package defines a title page and an info page for term papers
% and master theses written at the Measurement and Control Laboratory
% of the Swiss Federal Institute of Technology (ETH) Zurich.
% Author: Eric A. Mueller
% Measurement and Control Laboratory
% Swiss Federal Institute of Technology (ETH) Zurich
% Zurich, Switzerland
%
% Copyright (c) 2004 Eric A. Mueller
% All rights reserved.
%
% ethidsc.sty,v.1.0 2009/29/05
%
% Revisions: 2011/03/22 (Soren Ebbesen)
% 2013/03/08 (Soren Ebbesen)
%
%==============================================================================
\def\Presentation@Version{1.1}
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{ethidsc}[2009/29/05, v. \Presentation@Version]
\typeout{providing new style definitions and commands ---}
\typeout{Eric Müller, ETHZ, Switzerland, 2004/04/02}
\typeout{Maintained by Soren Ebbesen, 2009 ---}
\newif\ifingerman
\DeclareOption{german}{\global\ingermantrue}
\DeclareOption{english}{\global\ingermanfalse}
\DeclareOption{mt}{\gdef\@type{\ifingerman Masterarbeit\else Master Thesis\fi}}
\DeclareOption{bt}{\gdef\@type{\ifingerman Bachelorarbeit\else Bachelor Thesis\fi}}
\DeclareOption{st}{\gdef\@type{\ifingerman Semesterarbeit\else Semester Thesis\fi}}
\ExecuteOptions{german,st}
\ProcessOptions
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage{amsmath,amssymb,amsthm}
\RequirePackage{graphicx}
\RequirePackage[dvips]{epsfig}
\RequirePackage{float}
\RequirePackage{fancyhdr}
\RequirePackage{hyperref}
%\hypersetup{
% colorlinks,
% citecolor=black,
% filecolor=black,
% linkcolor=black,
% urlcolor=black
%}
\RequirePackage{pstricks,pst-plot,psfrag}
\RequirePackage{multirow}
\RequirePackage{rotating}
\RequirePackage{mcode}
\RequirePackage{units}
\RequirePackage{booktabs}
\RequirePackage[dvipdfm]{geometry}
\RequirePackage{url}
\ifingerman
\RequirePackage{german,ae}
\fi
\newcommand{\@supervision}{}
\newcommand{\supervision}[1]{\gdef\@supervision{#1}}
\newcommand{\@studentA}{}
\newcommand{\studentA}[1]{\gdef\@studentA{#1}}
\newif\ifstudentB
\newcommand{\@studentB}{}
\newcommand{\studentB}[1]{\gdef\@studentB{#1}\studentBtrue}
\newcommand{\@ethidA}{}
\newcommand{\ethidA}[1]{\gdef\@ethidA{#1}}
\newcommand{\@ethidB}{}
\newcommand{\ethidB}[1]{\gdef\@ethidB{#1}}
\newcommand{\@semesterA}{}
\newcommand{\semesterA}[1]{\gdef\@semesterA{#1}}
\newcommand{\@semesterB}{}
\newcommand{\semesterB}[1]{\gdef\@semesterB{#1}}
\newcommand{\@emailA}{}
\newcommand{\emailA}[1]{\gdef\@emailA{#1}}
\newcommand{\@emailB}{}
\newcommand{\emailB}[1]{\gdef\@emailB{#1}}
\newcommand{\@identification}{}
\newcommand{\identification}[1]{\gdef\@identification{#1}}
\newcommand{\@declaration}{}
\newcommand{\declaration}{\gdef\@declaration{
\ifingerman
{\textbf{Erkl\"{a}rung betreffend Plagiaten:} \\[1ex]}
\ifstudentB
Wir erkl\"{a}ren hiermit mit unserer Unterschrift, das Merkblatt Eigenst\"{a}ndigkeitserkl\"{a}rung zur Kenntnis genommen, die vorliegende Arbeit selbst\"{a}ndig verfasst und die im betroffenen Fachgebiet \"{u}blichen Zitiervorschriften eingehalten zu haben.\\[3ex]
\else
Ich erkl\"{a}re mit meiner Unterschrift, das Merkblatt Eigenst\"{a}ndigkeitserkl\"{a}rung zur Kenntnis genommen, die vorliegende Arbeit selbst\"{a}ndig verfasst und die im betroffenen Fachgebiet
\"{u}blichen Zitiervorschriften eingehalten zu haben.\\[3ex]
\fi
Merkblatt Eigenst\"{a}ndigkeitserkl\"{a}rung:\\[1.5ex]
\url{http://www.ethz.ch/faculty/exams/plagiarism/confirmation_de.pdf}
\\[6ex]
Z\"{u}rich, \the\day. \the\month. \the\year: \hrulefill
\else
{\textbf{Statement regarding plagiarism:} \\[1ex]}
\ifstudentB
By signing this statement, we affirm that we have read and signed the Declaration of Originality, independently produced this paper, and adhered to the general practice of source citation in this subject-area.\\[3ex]
\else
By signing this statement, I affirm that I have read and signed the Declaration of Originality,
independently produced this paper, and adhered to the general practice of source
citation in this subject-area.\\[3ex]
\fi
Declaration of Originality:\\[1.5ex]
\url{http://www.ethz.ch/faculty/exams/plagiarism/confirmation_en.pdf}
\\[6ex]
Zurich, \the\day. \the\month. \the\year \\ %: \hrulefill
\begin{figure}[H]
\includegraphics[width=0.3\textwidth]{img/firma_transparente.png}
\end{figure}
\fi}}
% Definition of title page______________________________________________________
\renewcommand{\maketitle}{
\pagestyle{empty}
\begin{center}
\hspace{0.02\textwidth}
\parbox[c][\textheight][t]{0.97\textwidth}{
\begin{center}
\vspace*{-2cm}
\begin{minipage}[c]{0.4\textwidth}
\begin{flushleft}
\hspace*{-1.5cm}
\includegraphics[height=1.5cm]{img/logo/INI_LOGO.JPG}
\end{flushleft}
\end{minipage}
\hfill
\begin{minipage}[c]{0.4\textwidth}
\begin{flushright}
\hspace*{0.4cm}
\includegraphics[height=2cm]{img/logo/neuroman_large.png}
\end{flushright}
\end{minipage}
\vspace*{5.0cm}
{\large \@studentA\if\@studentB\else \ \& \@studentB\fi}
\vspace{1.5cm}
{\Huge \textbf{\@title} \par}
\vspace{2.5cm}
{\large \textbf{Ph.D. Thesis}}\\[3ex]
Institute of Neuroinformatics \\
University of Zurich and ETH Zurich\\
\vspace{3.5cm}
\ifingerman
\textbf{Betreuung} \\[1.5ex]
\else
\textbf{Supervision} \\[1.5ex]
\fi
\@supervision
\vfill
\@date
% Report identification number
\begin{flushleft}
\hspace*{-1.5cm}
\vspace{-1.5cm}
\texttt{\@identification}
\end{flushleft}
\end{center}
}
\end{center}
\cleardoublepage
}
% Definition of info page (last page)_______________________________________
\newcommand{\infopage}{
\AtEndDocument{
\pagestyle{empty}
\cleardoublepage
\setlength{\oddsidemargin}{3cm}
\setlength{\parindent}{0em}
\vspace*{-2cm}
\hspace{-0.354cm}
\includegraphics[height=2cm]{img/logo/eth_uzh_logo_kurz_pos_en.eps}\\
{\sffamily
Institute of Neuroinformatics\\
\@supervision}
\vspace{1.5cm}
\ifingerman
{\textbf{Titel der Arbeit:} \\[1ex]}
{\LARGE \@title \\[1ex] \par}
\else
{\textbf{Title of work:} \\[1ex]}
{\LARGE \@title \\[1ex] \par}
\fi
\ifingerman
{\textbf{Art der Arbeit und Datum:} \\[1ex]}
\@type, \@date\\[2.5ex]
%\ifst
%Semesterarbeit, \@date\\[2.5ex]
%\else
%Masterarbeit, \@date\\[2.5ex]
%\fi
{\textbf{Betreuung:} \\[1ex]}
\@supervision
\else
{\textbf{Thesis type and date:} \\[1ex]}
Ph.D. Thesis, \@date\\[2.5ex]
%\ifst
%Semester thesis, \@date\\[2.5ex]
%\else
%Master thesis, \@date\\[2.5ex]
%\fi
{\textbf{Supervision:} \\[1ex]}
\@supervision
\fi
\vspace{1cm}
\ifingerman
{\ifstudentB \textbf{Studenten:}\else \textbf{Student:} \fi}
\else
{\ifstudentB \textbf{Students:}\else \textbf{Student:} \fi}
\fi
\begin{tabbing}
\hspace*{3cm} \= \kill
Name: \> \@studentA \\
E-mail: \> \@emailA \\
%Legi-Nr.: \> \@ethidA \\
\end{tabbing}
\if\@studentB \else
\begin{tabbing}
\hspace*{3cm} \= \kill
Name: \> \@studentB \\
E-mail: \> \@emailB \\
Legi-Nr.: \> \@ethidB \\
Semester: \> \@semesterB
\end{tabbing}
\fi
\vspace{1cm}
\if\@declaration \else \@declaration \fi
\normalsize
}
}
% =======================================
% \usepackage[dvipdfm]{geometry}
\setlength\paperheight {297mm}%
\setlength\paperwidth {210mm}%
%PAGE LAYOUT 2cm margin on all four sides
\setlength{\voffset}{-1in}
\setlength{\hoffset}{-1in}
\setlength{\oddsidemargin}{3cm}
\setlength{\evensidemargin}{3cm}
\setlength{\topmargin}{2.5cm} % -1in subtract latex default margin (1 inch) from topmargin
% \setlength{\headheight}{14.mm} %platz für kopfzeile
% \setlength{\headsep}{+11.mm} %freiraum nach kopfzeile
% \addtolength{\topmargin}{0.0mm} %rest, damit die geforderten 2.5 cm erfüllt werden
\setlength{\textheight}{229mm} %247mm 29.7cm-5cm = 24.7cm
% \setlength{\footskip}{+20mm}
\setlength{\textwidth}{150mm} %!!! %21cm - 5cm = 16cm
% \addtolength{\oddsidemargin}{-1in} %subtract latex default margin (1 inch) from oddsidemargin
% \addtolength{\evensidemargin}{-1in} %subtract latex default margin (1 inch) from evensidemargin
% \setlength{\marginparwidth}{10cm}
\setlength{\parindent}{0pt}
% Revision history___________________________________________________________
% 2009/29/05 Adapted from ethimrt.sty,v 1.1 2004/04/02