-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththesislayout.sty
310 lines (242 loc) · 6.96 KB
/
thesislayout.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
307
308
309
310
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Setup headings and title pages for chapters
%
%IMM PHD THESIS LAYOUT
%Adopted from Henrik Aalborg Nielsen and Thomas Fabricius
%Jan Larsen, IMM, DTU, Nov 2003
%%%%%%%%%%%%%%%%%%%%%%% page geometry
\setlength{\parskip}{0.5\baselineskip}
\setlength{\parindent}{0pt}
%%%%%%%%%%%%%%%%%%%%%%% Headings
\pagestyle{fancyplain}
\addtolength{\headheight}{1.8pt}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\sffamily\bfseries\thepage}]%
{\fancyplain{}{\sffamily\bfseries\rightmark}}
\rhead[\fancyplain{}{\sffamily\bfseries\leftmark}]%
{\fancyplain{}{\sffamily\bfseries\thepage}}
\cfoot{}
%%%%%%%%%%%%%%%%%%%%%%% Chapters
\ifx\thesislanguage\danishlang
\renewcommand{\chaptername}{K a p i t e l }
\renewcommand{\appendixname}{A p p e n d i k s }
\else
\renewcommand{\chaptername}{C a p � t u l o }
\renewcommand{\appendixname}{A n e x o}
\fi
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\large\scshape \@chapapp \space\space \Huge\upshape\thechapter
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\flushleft\parbox{\textwidth}{\raggedleft \sffamily\Huge\bfseries #1}
\par\nobreak
\vskip 15pt
\hrule height 0.4pt
\vskip 80\p@
}}
\def\@makeschapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\interlinepenalty\@M
% \flushleft\parbox{\textwidth}{\raggedleft \sffamily\Huge\bfseries #1}
\sffamily\huge\bfseries #1
\par\nobreak
\vskip 15pt
\hrule height 0.4pt
\vskip 80\p@
}}
%
% END - Setup headings and title pages for chapters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% define additional theorem environments
% (remark,definition,example,assumption,proof)
%
%theorem and definition
\theoremstyle{plain}
\theoremheaderfont{\normalfont\bfseries}
\theorembodyfont{\itshape}
\theoremsymbol{\ensuremath{\diamondsuit}}
\theoremseparator{:}
\ifx\thesislanguage\danishlang
\newtheorem{theorem}{Teorem}[chapter]
\else
\newtheorem{theorem}{Theorem}[chapter]
\fi
\theoremstyle{plain}
\theorembodyfont{\upshape}
\theoremsymbol{\ensuremath{\diamondsuit}}
\theoremseparator{}
\theoremindent0.5cm
\ifx\thesislanguage\danishlang
\newtheorem{example}{Eksempel}[chapter]
\else
\newtheorem{example}{Example}[chapter]
\fi
\theoremstyle{plain}
\theoremsymbol{\ensuremath{\diamond}}
\theoremseparator{:}
\theoremindent0cm
%\theoremprework{\bigskip}
%\theorempostwork{\bigskip}
\newtheorem{definition}{Definition}[chapter]
\theoremstyle{nonumberplain}
\theoremheaderfont{\sc}
\theorembodyfont{\upshape}
\theoremseparator{}
\theoremsymbol{\rule{1ex}{1ex}}
\theoremindent0cm
\ifx\thesislanguage\danishlang
\newtheorem{proof}{Bevis}[chapter]
\else
\newtheorem{proof}{Proof}[chapter]
\fi
\theoremstyle{plain}
\theorembodyfont{\upshape}
\theoremsymbol{\ensuremath{\diamondsuit}}
\theoremseparator{}
\theoremindent0cm
\ifx\thesislanguage\danishlang
\newtheorem{assumption}{Antagelse}[chapter]
\else
\newtheorem{assumption}{Assumption}[chapter]
\fi
\theoremstyle{plain}
\theoremheaderfont{\normalfont}
\theorembodyfont{\upshape}
\theoremsymbol{}
\theoremseparator{}
\theoremindent0.5cm
\ifx\thesislanguage\danishlang
\newtheorem{remark}{Bem�rkning}[chapter]
\else
\newtheorem{remark}{Remark}[chapter]
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Setup front- and back matter and info-pages about the project
%
\newcommand{\makefrontpage}
{\begin{titlepage}%
\begin{center}
{\Large \Institucion}
\vspace*{0.2cm}
{\large \Departamento}
{\large \Lugar}
\vspace*{2cm}
\includegraphics[trim = 80mm 50mm 80mm 0mm, clip, height=33mm]{figures/utfsm}
\vspace*{0.6cm}
{\Large \TituloTrabajo}
\vspace*{3cm}
{\large \Autor}
\vspace*{1.5cm}
{\large MEMORIA DE TITULACI\'ON PARA OPTAR AL T\'ITULO DE \Titulo}
\vspace*{0.5cm}
{\large PROFESOR GU\'IA: \ProfesorGuia}
\vfill
{\large \Fecha}
\end{center}
\end{titlepage}%
\setcounter{footnote}{0}
%
\newpage\thispagestyle{empty}
}
\newcommand{\makefrontpageempty}
{\begin{titlepage}%
\begin{center}
{\Large \Institucion}
\vspace*{0.2cm}
{\large \Departamento}
{\large \Lugar}
\vspace*{2cm}
\includegraphics[trim = 80mm 50mm 80mm 0mm, clip, height=33mm]{figures/utfsm}
\vspace*{0.6cm}
{\Large \textbf{\TituloTrabajo}}
\vspace*{3cm}
{\large \Autor}
\vspace*{0.7cm}
{\large MEMORIA DE TITULACI\'ON PARA OPTAR AL T\'ITULO DE \Titulo}
\vspace*{0.5cm}
{\normalsize PROFESOR GU\'IA: \ProfesorGuia}\\
{\normalsize PROFESOR CORREFERENTE: \ProfesorCorr}
\vfill
{\large \Fecha}
\end{center}
\end{titlepage}%
\setcounter{footnote}{0}%
\newpage\thispagestyle{empty}
}
\newcommand{\infopage}
{\begin{titlepage}%
\begin{center}
{\large AGRADECIMIENTOS}
\end{center}
\input{chapters/agradecimientos.tex}
\end{titlepage}%
\setcounter{footnote}{0}%
\newpage\thispagestyle{empty}
}
\newcommand{\dedicatoria}
{\begin{titlepage}%
\begin{flushright}
\hfill\vfill
\Dedicado
\end{flushright}
\end{titlepage}%
\setcounter{footnote}{0}%
\newpage\thispagestyle{empty}
}
\newcommand{\emptypage}
{\begin{titlepage}%
\begin{pspicture}(0cm,0cm)(15cm,22cm)
\end{pspicture}
\end{titlepage}%
\setcounter{footnote}{0}%
}
\newcommand{\makebackpage}{
%disable header for the backmatter
\pagestyle{empty}
% insert empty page
\begin{pspicture}(0cm,0cm)(15cm,22cm)
\end{pspicture}
%print backmatter
\begin{pspicture}(0cm,0cm)(15cm,20.5cm)
\rput[t1](4.6,5.4){
\textsf{
\begin{minipage}[t]{14cm}
\begin{tabular}{l}
\LARGE{\textbf{www.inca.inf.utfsm.cl}}\\
\\
\large Departamento de Inform\'atica\\
\large Laboratorio de Inteligencia Computacional Aplicada (INCA)\\
\large Universidad T\'ecnica Federico Santa Mar\'ia\\
\large Edificio F of.1.17 \\
\large Avenida Espa\~na 1680, Valparaiso \\
\large Chile\\
\hspace*{-0.2cm}\large \begin{tabular}{l l l}
Tel:& \quad &(+56) 32 2654659\\
% Fax:& \quad &(+45) 45 93 16 34\\
\end{tabular}\\
% \large Email: info@elektro.dtu.dk\\
\\
\\
\ISBNNUMBER \\
\end{tabular}
\end{minipage}}}
\end{pspicture}
}
\newcommand*{\coverpages}{\makefrontpage \makefrontpageempty \infopage \dedicatoria}
%
% END - Setup front- and back matter and info-pages about the project
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End: