RUmscsty » History » Version 1
Kristján Gerhard, 2014-04-15 22:56
Added the RU SCS template page
1 | 1 | Kristján Gerhard | h1. RUmscsty |
---|---|---|---|
2 | |||
3 | %% --------------------------------------------------------------------------------------------- |
||
4 | %% Style for Reykjav’k University School of Computer Science and |
||
5 | %% Science and Engineering M.Sc. Theses and Reports |
||
6 | %% --------------------------------------------------------------------------------------------- |
||
7 | |||
8 | \def\styleoption{RUCSMSc.sty} |
||
9 | \def\fileversion{v2} |
||
10 | \def\filedate{9.5.2010} |
||
11 | \def\fileauthor{Bjorn Thor Jonsson, bjorn@ru.is} |
||
12 | \NeedsTeXFormat{LaTeX2e} |
||
13 | |||
14 | \typeout{M.Sc. Thesis/Report Style for Reykjavik University, School of Science and Engineering: |
||
15 | \styleoption, \fileversion from <\filedate>, by \fileauthor} |
||
16 | |||
17 | %% ----- Preamble ------------------------------------------------------------------------------ |
||
18 | |||
19 | \@twosidetrue |
||
20 | |||
21 | %% This style file uses (at least) the following styles: fancyhdr, apacite, textpos, (everyshi) |
||
22 | \usepackage[icelandic]{babel} |
||
23 | \usepackage{times} |
||
24 | \usepackage{helvet} |
||
25 | \usepackage{courier} |
||
26 | %\usepackage{apacite} |
||
27 | \usepackage{fancyhdr} |
||
28 | \RequirePackage{graphicx} |
||
29 | \RequirePackage[absolute]{textpos} |
||
30 | \usepackage[T1]{fontenc} |
||
31 | \usepackage{setspace} |
||
32 | \usepackage{helvet} |
||
33 | \usepackage{color} |
||
34 | \usepackage[overload]{textcase} |
||
35 | |||
36 | |||
37 | \usepackage{todonotes} |
||
38 | \usepackage[colorlinks,linkcolor=black,citecolor=black,urlcolor=black]{hyperref} |
||
39 | \usepackage{hypcap} |
||
40 | \usepackage{float} |
||
41 | |||
42 | |||
43 | \definecolor{rugray}{rgb}{0.2,0.2,0.2} |
||
44 | \definecolor{rured}{rgb}{0.84,0.10,0.13} |
||
45 | |||
46 | %% Fix the geometry of the pages |
||
47 | \usepackage[left=3cm,right=3cm,top=3.5cm,bottom=2.5cm]{geometry} |
||
48 | \usepackage{geometry} |
||
49 | \geometry{a4paper} |
||
50 | \usepackage[parfill]{parskip} |
||
51 | |||
52 | |||
53 | \def\twttb{\fontencoding{T1}\fontfamily{pmt}\fontseries{b}\fontshape{n}\fontsize{24pt}{28pt}\selectfont} |
||
54 | \def\fftntb{\fontencoding{T1}\fontfamily{ptm}\fontseries{m}\fontshape{n}\fontsize{15pt}{20pt}\selectfont} |
||
55 | \def\twvtr{\fontencoding{T1}\fontfamily{ptm}\fontseries{m}\fontshape{n}\fontsize{14pt}{16pt}\selectfont} |
||
56 | \def\tentm{\fontencoding{T1}\fontfamily{ptm}\fontseries{m}\fontshape{n}\fontsize{10pt}{12pt}\selectfont} |
||
57 | \def\eigtm{\fontencoding{T1}\fontfamily{ptm}\fontseries{m}\fontshape{n}\fontsize{8pt}{10pt}\selectfont} |
||
58 | \def\tenhv{\fontencoding{T1}\fontfamily{phv}\fontseries{m}\fontshape{n}\fontsize{10pt}{12pt}\selectfont} |
||
59 | |||
60 | %% ----- M.Sc. Thesis Options ------------------------------------------------------- |
||
61 | |||
62 | \def\SCS{\gdef\@MScschool{School of Computer Science}} |
||
63 | \def\SSE{\gdef\@MScschool{School of Science and Engineering}} |
||
64 | |||
65 | \def\TD{\gdef\@MScdeild{T\"{o}lvunarfr\ae{}\dh{}ideild}} |
||
66 | \def\TVD{\gdef\@MScdeild{T\ae{}kni- og verkfr\ae{}\dh{}ideild}} |
||
67 | |||
68 | \def\DE{\gdef\@MScProgram{Decision Engineering}} |
||
69 | \def\FE{\gdef\@MScProgram{Financial Engineering}} |
||
70 | \def\EM{\gdef\@MScProgram{Engineering Management}} |
||
71 | \def\EE{\gdef\@MScProgram{Electrical Engineering}} |
||
72 | \def\ME{\gdef\@MScProgram{Mechanical Engineering}} |
||
73 | |||
74 | \def\CS{\gdef\@MScProgram{Computer Science}} |
||
75 | \def\SE{\gdef\@MScProgram{Software Engineering}} |
||
76 | \def\LT{\gdef\@MScProgram{Language Technology}} |
||
77 | |||
78 | \def\THESIS{\gdef\MScTHESIS{}} |
||
79 | \def\REPORT{\gdef\MScREPORT{}} |
||
80 | |||
81 | \def\PAPER{\gdef\MScPAPER} |
||
82 | \def\ONLINE{\gdef\MScONLINE} |
||
83 | |||
84 | \def\DRAFT{\gdef\MScDRAFT} |
||
85 | \def\PROOF{\gdef\MScPROOF} |
||
86 | |||
87 | \def\MScwhen#1{\gdef\@MScwhen{#1}} |
||
88 | \def\MScdags#1{\gdef\@MScdags{#1}} |
||
89 | |||
90 | \def\@MScProgram{??\@warning{*** No Program. ***}} |
||
91 | \def\@MScwhen{??\@warning{*** No English date. ***}} |
||
92 | \def\@MScdags{??\@warning{*** No Icelandic date. ***}} |
||
93 | |||
94 | \def\MSctitlehead#1{\gdef\@MSctitlehead{#1}} |
||
95 | \def\MScauthorhead#1{\gdef\@MScauthorhead{#1}} |
||
96 | %\MSctitlehead{} |
||
97 | %\MScauthorhead{} |
||
98 | |||
99 | \def\MSctitle#1{\gdef\@MSctitle{#1}\gdef\@MSctitleF{#1}\gdef\@MSctitleP{#1}\gdef\@MSctitleI{#1}\gdef\@MSctitlehead{#1}} |
||
100 | \def\MScheiti#1{\gdef\@MScheiti{#1}} |
||
101 | %% The english title may be formatted, but must appear unformatted in a couple of places |
||
102 | \def\MSctitleF#1{\gdef\@MSctitleF{#1}} |
||
103 | \def\MSctitleP#1{\gdef\@MSctitleP{#1}} |
||
104 | \def\MSctitleI#1{\gdef\@MSctitleI{#1}} |
||
105 | %% The icelandic title is only in formatted form, so just redefine the command |
||
106 | \def\MScheitiI#1{\gdef\@MScheiti{#1}} |
||
107 | |||
108 | \def\@MSctitle{??\@warning{*** No English title. ***}} |
||
109 | \def\@MScheiti{??\@warning{*** No Icelandic title. ***}} |
||
110 | |||
111 | \long\def\MScabstract#1 {\long\def\@MScabstract {#1}} |
||
112 | \long\def\MScutdrattur#1{\long\def\@MScutdrattur{#1}} |
||
113 | \def\@MScabstract {??\@warning{*** No English abstract. ***}} |
||
114 | \def\@MScutdrattur{??\@warning{*** No Icelandic abstract. ***}} |
||
115 | %\gdef\@MScabstract{} |
||
116 | %\gdef\@MScutdrattur{} |
||
117 | |||
118 | \def\MScauthor#1{\def\and{, }\gdef\@MScauthor{#1}\gdef\@MScauthorS{#1}\gdef\@MScauthorhead{#1}} |
||
119 | \def\MScauthorS#1{\gdef\@MScauthorS{#1}} |
||
120 | \def\@MScauthor{??\@warning{***No author name.***}} |
||
121 | |||
122 | \def\MSccmembers#1{\def\and{, }\gdef\@MSccmembers{#1}} |
||
123 | \def\MSccommittee#1#2#3{\xdef\@MSccommittee{\@MSccommittee \par #1 \par #2, #3 \par ~ } \xdef\@MSccommitteelong{\@MSccommitteelong \par \noindent\hrulefill ~ \hfill \par #1 \par #2, #3 \par ~\par ~\par ~\par}} |
||
124 | \def\MSccommitteeS#1#2#3{\xdef\@MSccommittee{\@MSccommittee \par #1, Supervisor \par #2, #3 \par ~ } \xdef\@MSccommitteelong{\@MSccommitteelong \par \noindent\hrulefill ~ \hfill \par #1, Supervisor \par #2, #3 \par ~ \par ~ \par ~ \par}\def\and{, }\gdef\@MScadvisor{#1 \par #2}} |
||
125 | \def\MSccommitteeC#1#2#3{\xdef\@MSccommittee{\@MSccommittee \par #1, Co-Supervisor \par #2, #3 \par ~ } \xdef\@MSccommitteelong{\@MSccommitteelong \par \noindent\hrulefill ~ \hfill \par #1, Co-Supervisor \par #2, #3 \par ~ \par ~ \par ~ \par}} |
||
126 | |||
127 | \def\@MSccommittee{} |
||
128 | \def\@MSccommitteelong{} |
||
129 | |||
130 | \gdef\@MScnbpage{\@ifundefined{r@MSclastpageofreport}{??} |
||
131 | {\edef\@tempa{\@nameuse{r@MSclastpageofreport}}\expandafter |
||
132 | \@cdr\@tempa\@nil\null}} |
||
133 | |||
134 | \def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn \else |
||
135 | \newpage \fi \thispagestyle{empty}} |
||
136 | |||
137 | \def\endtitlepage{\if@twoside \ifnum\c@page>0\else\newpage |
||
138 | \thispagestyle{empty} |
||
139 | \c@page\z@\null\fi\fi% |
||
140 | \if@restonecol\twocolumn \else \newpage\fi} |
||
141 | |||
142 | |||
143 | %\def\symbdegre{\char'006{}} |
||
144 | |||
145 | \setlength{\TPHorizModule}{10mm} |
||
146 | \setlength{\TPVertModule}{\TPHorizModule} |
||
147 | \textblockorigin{0mm}{0mm} % start everything near the top-left corner |
||
148 | |||
149 | %% --------------------------------------------------------------------------------------------- |
||
150 | %% This extensively long command makes the front materials |
||
151 | \def\makeMScFront{ |
||
152 | |||
153 | %% ----- EXTRA FRONT PAGE, PAPER ONLY ---------------------------------------------------------- |
||
154 | |||
155 | {\@ifundefined{MScPAPER}{}{ |
||
156 | \thispagestyle{empty} |
||
157 | |||
158 | \textblockorigin{0cm}{0cm} |
||
159 | |||
160 | \begin{textblock*}{13cm}[0,0](4.5cm,17.5cm)% |
||
161 | \noindent% |
||
162 | \begin{minipage}{11.9cm}% |
||
163 | \begin{spacing}{1.8} |
||
164 | \begin{center} |
||
165 | {\LARGE \bf \textsf{\textcolor{rugray}{\MakeUppercase{\@MSctitleP}}}}% |
||
166 | \end{center} |
||
167 | \end{spacing} |
||
168 | \end{minipage}% |
||
169 | \end{textblock*} |
||
170 | |||
171 | \begin{textblock*}{13cm}[0,0](4.5cm,20.8cm)% |
||
172 | \noindent% |
||
173 | \begin{minipage}{11.9cm}% |
||
174 | \begin{spacing}{1.0} |
||
175 | \begin{center} |
||
176 | \textcolor{rugray}{\large |
||
177 | \textsf{\@MScwhen}\\ |
||
178 | {\bf \textsf{\@MScauthor}} \\ |
||
179 | \textsf{Master of Science in \@MScProgram}\\ |
||
180 | }% |
||
181 | \end{center} |
||
182 | \end{spacing} |
||
183 | \end{minipage}% |
||
184 | \end{textblock*} |
||
185 | |||
186 | ~ |
||
187 | \newpage |
||
188 | \thispagestyle{empty} |
||
189 | |||
190 | ~ |
||
191 | |||
192 | \addtocounter{page}{-2} |
||
193 | }} |
||
194 | |||
195 | |||
196 | %% ----- THE TITLE PAGE ------------------------------------------------------------------------ |
||
197 | \begin{titlepage} |
||
198 | \def\@makefnmark{\rlap{\@textsuperscript{\@thefnmark}}} |
||
199 | \textblockorigin{0cm}{0cm} |
||
200 | |||
201 | \begin{textblock*}{21cm}(3cm,3.7cm)% |
||
202 | \noindent% |
||
203 | \begin{minipage}[t]{15cm}% |
||
204 | \centering{~ \includegraphics[scale=0.60]{RU-logo} ~}% |
||
205 | \end{minipage}% |
||
206 | \end{textblock*} |
||
207 | |||
208 | \@ifundefined{MScDRAFT}{}{ |
||
209 | \begin{textblock*}{21cm}[0,0.5](1cm,17cm)% |
||
210 | \noindent% |
||
211 | \begin{minipage}{19cm}% |
||
212 | \centering{{\Huge \bf *** DRAFT *** \\~\\ PLEASE DO NOT DISTRIBUTE}}% |
||
213 | \end{minipage}% |
||
214 | \end{textblock*} |
||
215 | } |
||
216 | |||
217 | \@ifundefined{MScPROOF}{}{ |
||
218 | \begin{textblock*}{21cm}[0,0.5](1cm,17cm)% |
||
219 | \noindent% |
||
220 | \begin{minipage}{19cm}% |
||
221 | \centering{{\Huge \bf *** PROOF READING VERSION *** \\~\\ PLEASE DO NOT DISTRIBUTE}}% |
||
222 | \end{minipage}% |
||
223 | \end{textblock*} |
||
224 | } |
||
225 | |||
226 | |||
227 | \begin{textblock*}{21cm}[0,0](3cm,12cm)% |
||
228 | \noindent% |
||
229 | \begin{minipage}{15cm}% |
||
230 | \begin{spacing}{1.8} |
||
231 | \begin{flushleft} |
||
232 | {\LARGE \bf \textsf{\textcolor{rugray}{\MakeUppercase{\@MSctitleF}}}}% |
||
233 | \end{flushleft} |
||
234 | \end{spacing} |
||
235 | \end{minipage}% |
||
236 | \end{textblock*} |
||
237 | |||
238 | \begin{textblock*}{21cm}[0,0](3cm,21.5cm)% |
||
239 | \noindent% |
||
240 | \begin{minipage}{15cm}% |
||
241 | \begin{spacing}{1.5} |
||
242 | \textcolor{rugray}{\large |
||
243 | {\bf \textsf{\@MScauthor}} \\ |
||
244 | \textsf{Master of Science}\\ |
||
245 | \textsf{\@MScProgram}\\ |
||
246 | \textsf{\@MScwhen}\\ |
||
247 | \textsf{\@MScschool}\\ |
||
248 | \textsf{Reykjav\'{\i}k University}\\ |
||
249 | }% |
||
250 | \end{spacing} |
||
251 | \end{minipage}% |
||
252 | \end{textblock*} |
||
253 | |||
254 | \begin{textblock*}{21cm}[0,0](3cm,26.5cm)% |
||
255 | \noindent% |
||
256 | \begin{minipage}{15cm}% |
||
257 | {\textcolor{rured}{\LARGE \bf \textsf{M.Sc. \@ifundefined{MScTHESIS}{PROJECT REPORT}{RESEARCH THESIS}}}} |
||
258 | \end{minipage}% |
||
259 | \end{textblock*} |
||
260 | |||
261 | \begin{textblock*}{21cm}[0,0](3cm,27.9cm)% |
||
262 | \noindent% |
||
263 | \begin{minipage}{15cm}% |
||
264 | \begin{spacing}{1.5} |
||
265 | {\scriptsize \textcolor{rugray}{\textsf{ISSN 1670-8539}}} |
||
266 | \end{spacing} |
||
267 | \end{minipage}% |
||
268 | \end{textblock*} |
||
269 | |||
270 | |||
271 | \c@page\z@ |
||
272 | \end{titlepage} |
||
273 | |||
274 | %% ----- NEXT AN EMPTY PAGE ------------------------------------------------------------------- |
||
275 | |||
276 | \thispagestyle{empty} |
||
277 | ~ \newpage |
||
278 | \addtocounter{page}{-1} |
||
279 | |||
280 | %% ----- INTERNAL TITLE PAGE WITH COMMITTEE --------------------------------------------------- |
||
281 | |||
282 | \thispagestyle{empty} |
||
283 | \textblockorigin{0cm}{0cm} |
||
284 | |||
285 | \begin{textblock*}{21cm}(3cm,3cm)% |
||
286 | \noindent% |
||
287 | \begin{minipage}[t]{15cm}% |
||
288 | \centering{~ \includegraphics[scale=0.4]{RU-logo} ~}% |
||
289 | \end{minipage}% |
||
290 | \end{textblock*} |
||
291 | |||
292 | \begin{textblock*}{21cm}[0,0](3cm,8cm)% |
||
293 | \noindent% |
||
294 | \begin{minipage}{15cm}% |
||
295 | \centering{% |
||
296 | {\Large {\bf \@MSctitleI\\~}}% |
||
297 | \\% |
||
298 | {\twvtr by\\~}% |
||
299 | \\% |
||
300 | {\twvtr \large \@MScauthor}% |
||
301 | }% |
||
302 | \end{minipage}% |
||
303 | \end{textblock*} |
||
304 | |||
305 | \begin{textblock*}{21cm}[0,0](2cm,13cm)% |
||
306 | \noindent% |
||
307 | \begin{minipage}{17cm}% |
||
308 | \centering{ |
||
309 | {\twvtr \@ifundefined{MScTHESIS}{Project report}{Research thesis} submitted to the \@MScschool\ \\% |
||
310 | at Reykjav\'{\i}k University in partial fulfillment of\\% |
||
311 | the requirements for the degree of \\% |
||
312 | \textbf{Master of Science} in \textbf{\@MScProgram} \par ~ \par \@MScwhen}% |
||
313 | }% |
||
314 | \end{minipage}% |
||
315 | \end{textblock*} |
||
316 | |||
317 | \begin{textblock*}{21cm}[0,0](3.7cm,17.4cm)% |
||
318 | \noindent% |
||
319 | \begin{minipage}{17cm}% |
||
320 | \twvtr |
||
321 | \hspace{1.5cm} |
||
322 | \@ifundefined{MScTHESIS}{Project Report}{Research Thesis} Committee:\par ~ \par |
||
323 | \hspace{2.5cm}{ |
||
324 | \parbox{13cm}{ |
||
325 | \@MSccommittee |
||
326 | }} |
||
327 | \end{minipage}% |
||
328 | \end{textblock*} |
||
329 | |||
330 | %% ----- COPYRIGHT PAGE ----------------------------------------------------------------------- |
||
331 | |||
332 | ~ \newpage ~ |
||
333 | |||
334 | \thispagestyle{empty} |
||
335 | \textblockorigin{0cm}{0cm} |
||
336 | |||
337 | \begin{textblock*}{21cm}(2cm,10cm)% |
||
338 | \noindent% |
||
339 | \begin{minipage}[t]{17cm}% |
||
340 | \centering{\twvtr Copyright\\\@MScauthor\\\@MScwhen\\~}% |
||
341 | \end{minipage}% |
||
342 | \end{textblock*} |
||
343 | |||
344 | %% ----- FIRST SIGNATURE PAGE, PAPER ONLY ----------------------------------------------------- |
||
345 | |||
346 | {\@ifundefined{MScPAPER}{}{ |
||
347 | ~\newpage |
||
348 | |||
349 | \thispagestyle{empty} |
||
350 | |||
351 | \textblockorigin{0cm}{0cm} |
||
352 | |||
353 | {\twvtr \noindent The undersigned hereby certify that they recommend to the \@MScschool{} at Reykjav\'{\i}k University for acceptance this \@ifundefined{MScTHESIS}{project report}{research thesis} entitled \textbf{\@MSctitle{}} submitted by \textbf{\@MScauthorS{}} in partial fulfillment of the requirements for the degree of \textbf{Master of Science} in \textbf{\@MScProgram}.} |
||
354 | |||
355 | \begin{textblock*}{21cm}(5cm,8.5cm)% |
||
356 | \noindent% |
||
357 | \begin{minipage}[t]{6cm}% |
||
358 | {\twvtr \hrule ~\par\noindent Date} % |
||
359 | \end{minipage}% |
||
360 | \end{textblock*} |
||
361 | |||
362 | \begin{textblock*}{21cm}(5cm,11.5cm)% |
||
363 | \noindent% |
||
364 | \begin{minipage}[t]{11cm}% |
||
365 | {\twvtr \@MSccommitteelong} % |
||
366 | \end{minipage}% |
||
367 | \end{textblock*} |
||
368 | |||
369 | %% ----- SECOND SIGNATURE PAGE, PAPER ONLY ---------------------------------------------------- |
||
370 | |||
371 | \newpage |
||
372 | \thispagestyle{empty} |
||
373 | |||
374 | {\twvtr \noindent The undersigned hereby grants permission to the Reykjav\'{\i}k University Library to reproduce single copies of this \@ifundefined{MScTHESIS}{project report}{research thesis} entitled \textbf{\@MSctitle{}} and to lend or sell such copies for private, scholarly or scientific research purposes only. \par ~ } |
||
375 | |||
376 | {\twvtr \noindent The author reserves all other publication and other rights in association with the copyright in the \@ifundefined{MScTHESIS}{project report}{research thesis}, and except as herein before provided, neither the \@ifundefined{MScTHESIS}{project report}{research thesis} nor any substantial portion thereof may be printed or otherwise reproduced in any material form whatsoever without the author's prior written permission.} |
||
377 | |||
378 | \begin{textblock*}{21cm}(5cm,12.5cm)% |
||
379 | \noindent% |
||
380 | \begin{minipage}[t]{6cm}% |
||
381 | {\twvtr \hrule ~\par\noindent Date} % |
||
382 | \end{minipage}% |
||
383 | \end{textblock*} |
||
384 | |||
385 | \begin{textblock*}{21cm}(5cm,15.5cm)% |
||
386 | \noindent% |
||
387 | \begin{minipage}[t]{11cm}% |
||
388 | {\twvtr \hrule ~\par\noindent\@MScauthor \\ Master of Science} |
||
389 | \end{minipage}% |
||
390 | \end{textblock*} |
||
391 | |||
392 | \addtocounter{page}{-2} |
||
393 | }} |
||
394 | |||
395 | %% ----- TITLE AND ABSTRACT -- ENGLISH -------------------------------------------- |
||
396 | |||
397 | \newpage ~ |
||
398 | |||
399 | \thispagestyle{empty} |
||
400 | \textblockorigin{0cm}{0cm} |
||
401 | |||
402 | \begin{textblock*}{21cm}[0,0](2cm,4cm)% |
||
403 | \noindent% |
||
404 | \begin{minipage}{17cm}% |
||
405 | \centering{% |
||
406 | {\Large {\bf \@MSctitleI\\~}}% |
||
407 | \\% |
||
408 | {\twvtr \large \@MScauthor\\~}% |
||
409 | \\% |
||
410 | {\twvtr \large \@MScwhen\\~}% |
||
411 | }% |
||
412 | \end{minipage}% |
||
413 | \end{textblock*} |
||
414 | |||
415 | \vspace{5cm} |
||
416 | {\noindent\twvtr {\bf Abstract}\par\vspace{0.5ex} |
||
417 | \noindent\@MScabstract\par}% |
||
418 | |||
419 | %% ----- TITLE AND ABSTRACT -- ICELANDIC ------------------------------------------ |
||
420 | |||
421 | \newpage ~ |
||
422 | |||
423 | \thispagestyle{empty} |
||
424 | \textblockorigin{0cm}{0cm} |
||
425 | |||
426 | \begin{textblock*}{21cm}[0,0](2cm,4cm)% |
||
427 | \noindent% |
||
428 | \begin{minipage}{17cm}% |
||
429 | \centering{% |
||
430 | {\Large {\bf \@MScheiti\\~}}% |
||
431 | \\% |
||
432 | {\twvtr \large \@MScauthor\\~}% |
||
433 | \\% |
||
434 | {\twvtr \large \@MScdags\\~}% |
||
435 | }% |
||
436 | \end{minipage}% |
||
437 | \end{textblock*} |
||
438 | |||
439 | \vspace{5cm} |
||
440 | {\noindent\twvtr {\bf \'{U}tdr\'{a}ttur}\par\vspace{0.5ex}\noindent\@MScutdrattur\par}% |
||
441 | |||
442 | %% ----- END OF FRONT MATERIALS --------------------------------------------------------------- |
||
443 | |||
444 | %% Clean up some formatting for the text |
||
445 | \renewcommand{\thepage}{\roman{page}} |
||
446 | \def\@fndot{\null} |
||
447 | \def\thefootnote{\fnsymbol{footnote}} |
||
448 | \def\@makefnmark{\hbox{\scriptsize\@textsuperscript{\@thefnmark}}} |
||
449 | \long\def\@makefntext##1{\parindent 1em\noindent |
||
450 | \hb@xt@1.8em{% |
||
451 | \hss\@textsuperscript{\normalfont\@thefnmark}} ##1}% |
||
452 | \let\footnoterule\relax \null |
||
453 | |||
454 | \renewcommand{\thefootnote}{\scriptsize \arabic{footnote}} %to fix large footnote text errors in some documents |
||
455 | |||
456 | %%\setlength{\bibitemsep}{1ex} %Adjusting the spacing between bibentries \bibliographystyle{apacite} |
||
457 | %%\renewcommand{\bibname}{Bibliography \addcontentsline{toc}{chapter}{Bibliography}} %Renaming the %%bibliography section (if omitted it will be named "references") |
||
458 | |||
459 | |||
460 | \setcounter{footnote}{1} \let\thanks\relax |
||
461 | \let\maketitle\relax |
||
462 | \onehalfspace |
||
463 | |||
464 | |||
465 | } |
||
466 | |||
467 | %% -------------------------------------------------------------------------------------------- |
||
468 | |||
469 | |||
470 | \def\MScdeds#1{\newpage \thispagestyle{empty} \null\par\vskip 6cm \begin{center}{\em #1}\end{center} \newpage \thispagestyle{empty} ~} |
||
471 | \def\MScpubs{\chapter*{Publications}} |
||
472 | \def\MScacks{\chapter*{Acknowledgements}} |
||
473 | \def\MSctableofcontents{\tableofcontents} |
||
474 | \def\MSclistoffigures{\newpage \addcontentsline{toc}{chapter}{List of Figures} \listoffigures} |
||
475 | \def\MSclistoftables{\newpage \addcontentsline{toc}{chapter}{List of Tables} \listoftables} |
||
476 | \def\MSclistofabbrev{\chapter*{List of Abbreviations} \addcontentsline{toc}{chapter}{List of Abbreviations}} |
||
477 | |||
478 | \newcounter{MScpartcounter} |
||
479 | \setcounter{MScpartcounter}{1} |
||
480 | \def\MScpart#1{ |
||
481 | \chapter*{Part \Roman{MScpartcounter}: #1} |
||
482 | \addcontentsline{toc}{chapter}{Part \Roman{MScpartcounter}: #1} |
||
483 | \addtocounter{MScpartcounter}{1}} |
||
484 | |||
485 | \def\startMSc{ |
||
486 | \cleardoublepage |
||
487 | \renewcommand{\thepage}{\arabic{page}} \setcounter{page}{1} |
||
488 | % NOTE: THESE ARE THE HEADERS FOR THE MAIN TEXT |
||
489 | \fancyhf{} % clear all header and footer fields |
||
490 | \fancyhead[LO]{\footnotesize {\@MScauthorhead}} |
||
491 | \fancyhead[RO]{\footnotesize \thepage} |
||
492 | \fancyhead[LE]{\footnotesize \thepage} |
||
493 | \fancyhead[RE]{\footnotesize {\@MSctitlehead}} |
||
494 | \renewcommand{\headrulewidth}{0pt} |
||
495 | \renewcommand{\footrulewidth}{0pt} |
||
496 | |||
497 | \fancypagestyle{plain}{% |
||
498 | \fancyhf{} % clear all header and footer fields |
||
499 | %\fancyhead[LO]{\footnotesize {\@MScauthorhead}} |
||
500 | \fancyhead[RO]{\footnotesize \thepage} |
||
501 | \fancyhead[LE]{\footnotesize \thepage} |
||
502 | %\fancyhead[RE]{\footnotesize {\@MSctitlehead}} |
||
503 | \renewcommand{\headrulewidth}{0pt} |
||
504 | \renewcommand{\footrulewidth}{0pt} |
||
505 | } |
||
506 | } |
||
507 | |||
508 | |||
509 | \def\makeMSc{\makeMScFront} |
||
510 | |||
511 | \def\emptypage{\newpage ~ \thispagestyle{empty}} |
||
512 | \@ifundefined{reset@font}{\gdef\reset@font{\relax}}{} |
||
513 | |||
514 | %% --------------------------------------------------------------------------------------------- |
||
515 | %% This command makes the backend materials |
||
516 | \def\lastTRpage{% |
||
517 | \cleardoublepage |
||
518 | |||
519 | \emptypage |
||
520 | \emptypage |
||
521 | \thispagestyle{empty} |
||
522 | |||
523 | \textblockorigin{0cm}{0cm} |
||
524 | \begin{textblock*}{21cm}(3cm,22.5cm)% |
||
525 | \noindent |
||
526 | \begin{minipage}[t]{15cm} |
||
527 | \includegraphics[scale=0.50]{RU-logo} |
||
528 | \end{minipage} |
||
529 | \end{textblock*} |
||
530 | |||
531 | \begin{textblock*}{21cm}(9cm,22.5cm)% |
||
532 | \noindent% |
||
533 | \begin{minipage}[t]{15cm}% |
||
534 | \begin{spacing}{1.1} |
||
535 | \textsf{~\\ |
||
536 | \textcolor{rugray}{\@MScschool\\ |
||
537 | Reykjav\'{\i}k University\\ |
||
538 | Menntavegur 1\\ |
||
539 | 101 Reykjav\'{\i}k, Iceland\\ |
||
540 | Tel. +354 599 6200\\ |
||
541 | Fax +354 599 6201\\ |
||
542 | www.reykjavikuniversity.is\\ |
||
543 | ISSN 1670-8539}} |
||
544 | \end{spacing} |
||
545 | \end{minipage}% |
||
546 | \end{textblock*} |
||
547 | } |
||
548 | |||
549 | \@ifundefined{enddocumentasusual}{\global\let\endTRdocument\enddocument} |
||
550 | {\global\let\endTRdocument\enddocumentasusual} |
||
551 | |||
552 | \@ifundefined{enddocumentasusual} |
||
553 | {\gdef\enddocument{\null\label{TRlastpageofreport}\lastTRpage\endTRdocument}} |
||
554 | {\gdef\enddocument{\null\label{TRlastpageofreport}\lastTRpage\endTRdocument}} |
||
555 | |||
556 | |||
557 | |||
558 | \renewcommand{\thepage}{\arabic{page}} |
||
559 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
||
560 | % FANCY HEADERS |
||
561 | % More details on fancy headers and header/footers in general: http://www.ntg.nl/maps/pdf/16_29.pdf |
||
562 | % NOTE: THESE ARE THE HEADERS FOR THE PREAMBLE, THE HEADERS FOR THE MAIN TEXT ARE IN startMSc COMMAND |
||
563 | \pagestyle{fancy} |
||
564 | % with this we ensure that the chapter and section |
||
565 | % headings are in lowercase. |
||
566 | \renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}} |
||
567 | \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} |
||
568 | |||
569 | \fancyhf{} % clear all header and footer fields |
||
570 | %\fancyhead[LO]{\footnotesize \textit{\@MScauthorhead}} |
||
571 | \fancyhead[RO]{\footnotesize \thepage} |
||
572 | \fancyhead[LE]{\footnotesize \thepage} |
||
573 | %\fancyhead[RE]{\footnotesize \textit{\@MSctitlehead}} |
||
574 | \renewcommand{\headrulewidth}{0pt} |
||
575 | \renewcommand{\footrulewidth}{0pt} |
||
576 | |||
577 | \fancypagestyle{plain}{% |
||
578 | \fancyhf{} % clear all header and footer fields |
||
579 | %\fancyhead[LO]{\footnotesize \textit{\@MScauthorhead}} |
||
580 | \fancyhead[RO]{\footnotesize \thepage} |
||
581 | \fancyhead[LE]{\footnotesize \thepage} |
||
582 | %\fancyhead[RE]{\footnotesize \textit{\@MSctitlehead}} |
||
583 | \renewcommand{\headrulewidth}{0pt} |
||
584 | \renewcommand{\footrulewidth}{0pt} |
||
585 | } |
||
586 | % Code for creating empty pages |
||
587 | % No headers on empty pages before new chapter |
||
588 | \makeatletter |
||
589 | \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else |
||
590 | \hbox{} |
||
591 | \thispagestyle{plain} |
||
592 | \newpage |
||
593 | \if@twocolumn\hbox{}\newpage\fi\fi\fi} |
||
594 | \makeatother \clearpage{\pagestyle{plain}\cleardoublepage} |
||
595 | %End Fancy headers |
||
596 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
||
597 | |||
598 | %\textwidth14cm |
||
599 | %\textheight18cm |
||
600 | %\evensidemargin0.96cm |
||
601 | %\oddsidemargin0.96cm |
||
602 | |||
603 | %\headheight1cm |
||
604 | %\headsep1cm |
||
605 | %\footskip2cm |
||
606 | |||
607 | %% Fraction et compteurs pour les flottants |
||
608 | %\setcounter{topnumber}{5} \def\topfraction{1} \setcounter{bottomnumber}{4} |
||
609 | %\def\bottomfraction{1} \setcounter{totalnumber}{10} \def\textfraction{0} |
||
610 | %\def\floatpagefraction{.5} |
||
611 | |||
612 | |||
613 | \clubpenalty=10000 %% ligne orpheline |
||
614 | \widowpenalty=10000 %% ligne veuve |
||
615 | \hfuzz=1pt %% pour ne pas avoir trop de overfull hbox... |
||
616 | \vfuzz=5pt %% " " " vbox... |
||
617 | %\pagestyle{pi} |
||
618 | \pagestyle{fancy} |
||
619 | |||
620 | %% chapter pour book et report |
||
621 | |||
622 | %\@ifundefined{chapter}{\relax}{\def\chapter{\clearpage \thispagestyle{fancy} |
||
623 | %\global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter}} |