softlab-thesis.cls 52.2 KB
Newer Older
1 2
%******************************************************************************
%  CVS/RCS version:
3
%     $Id: softlab-thesis.cls,v 1.3 2003/07/21 12:43:42 nickie Exp $
4 5 6 7
%******************************************************************************
%  LaTeX file  : softlab-thesis.cls
%  Written by  : Nikolaos S. Papaspyrou
%  Date        : October 17, 2002
8
%  Revised     : December 17, 2008
9 10 11
%
%  Description : A uniform template for diploma projects and doctoral
%                dissertations at the Software Engineering Laboratory,
12
%                School of Electrical and Computer Engineering,
13 14
%                National Technical University of Athens.
%
15
% Notes        : This package is based on `thesis.cls', written by 
16 17
%                Wenzel Matiaske (mati1831@perform.ww.tu-berlin.de)
%                Copyright (C) 1991, 1996.  Version 1.0g (1996/25/01).
18 19 20
%                Revised in July 2003, to adhere to NTUA's ECE library
%                policy for diploma projects and doctoral dissertations.

21 22 23

% Package information
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
24
\def\filename{softlab-thesis}
25 26
\def\fileversion{1.4a}
\def\filedate{2011/08/19}
27 28
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{softlab-thesis}[\filedate\space\fileversion\space%
29 30 31 32
       LaTeX document class (nsp).]

% Options and related stuff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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
\newcommand\@ptsize{}
\newif\if@openright
\newif\if@openbib
\@openbibfalse
\newif\if@mainmatter \@mainmattertrue
\DeclareOption{a4paper}
   {\setlength\paperheight {297mm}%
    \setlength\paperwidth  {210mm}}
\DeclareOption{a5paper}
   {\setlength\paperheight {210mm}%
    \setlength\paperwidth  {148mm}}
\DeclareOption{b5paper}
   {\setlength\paperheight {250mm}%
    \setlength\paperwidth  {176mm}}
\DeclareOption{letterpaper}
   {\setlength\paperheight {11in}%
    \setlength\paperwidth  {8.5in}}
\DeclareOption{legalpaper}
   {\setlength\paperheight {14in}%
    \setlength\paperwidth  {8.5in}}
\DeclareOption{executivepaper}
   {\setlength\paperheight {10.5in}%
    \setlength\paperwidth  {7.25in}}
\DeclareOption{landscape}
   {\setlength\@tempdima   {\paperheight}%
    \setlength\paperheight {\paperwidth}%
    \setlength\paperwidth  {\@tempdima}}
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
65 66 67
\newif\if@greek \@greekfalse
\DeclareOption{greek}{\@greektrue}
\DeclareOption{english}{\@greekfalse}
68 69
\newcount\c@type
\DeclareOption{diploma}{\c@type=1}
70
\DeclareOption{mpla}{\c@type=2}
71
\DeclareOption{dissertation}{\c@type=3}
72 73 74 75 76 77 78 79 80
\newcount\hours \newcount\minutes
\def\SetTime{\hours=\time
        \global\divide\hours by 60
        \minutes=\hours
        \multiply\minutes by 60
        \advance\minutes by-\time
        \global\multiply\minutes by-1 }
\def\now{\number\hours:\ifnum\minutes<10 0\fi\number\minutes}
\newif\iffinal \finaltrue
81
\DeclareOption{preliminary}{\setlength\overfullrule{5pt}\finalfalse \SetTime}
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
\DeclareOption{final}{\setlength\overfullrule{0pt}\finaltrue}
\newif\if@crosshair       \@crosshairfalse
\DeclareOption{crosshair}{\@crosshairtrue}
\DeclareOption{nocrosshair}{\@crosshairfalse}
\newif\if@itemization     \@itemizationtrue
\DeclareOption{itemize}  {\@itemationtrue}
\DeclareOption{noitemize}{\@itemizationfalse}
\newif\if@enumeration       \@enumerationtrue
\DeclareOption{enumerate}  {\@enumerationtrue}
\DeclareOption{noenumerate}{\@enumerationfalse}
\newif\if@noind          \@noindfalse
\DeclareOption{indent}  {\@noindfalse}
\DeclareOption{noindent}{\@noindtrue}
\newif\if@center         \@centerfalse
\DeclareOption{center}  {\@centertrue}
\DeclareOption{nocenter}{\@centerfalse}
\newif\if@upper        \@upperfalse
\DeclareOption{upper}  {\@uppertrue}
\DeclareOption{noupper}{\@upperfalse}
101 102 103
\newif\if@contpage        \@contpagetrue
\DeclareOption{contpage}  {\@contpagetrue}
\DeclareOption{nocontpage}{\@contpagefalse}
104 105 106 107 108 109 110 111 112 113 114 115
\def\partfont#1{\def\p@font{#1}}             \def\p@font{}
\def\chapterfont#1{\def\c@font{#1}}          \def\c@font{}
\def\chapterauthorfont#1{\def\ca@font{#1}}   \def\ca@font{}
\def\sectionfont#1{\def\s@font{#1}}          \def\s@font{}
\def\subsectionfont#1{\def\ss@font{#1}}      \def\ss@font{}
\def\subsubsectionfont#1{\def\sss@font{#1}}  \def\sss@font{}
\def\paragraphfont#1{\def\pg@font{#1}}       \def\pg@font{}
\def\subparagraphfont#1{\def\spg@font{#1}}   \def\spg@font{}
\def\titlefont#1{\def\t@font{#1}}            \def\t@font{}
\def\subtitlefont#1{\def\st@font{#1}}        \def\st@font{}
\def\authorfont#1{\def\a@font{#1}}           \def\a@font{}
\def\institutionfont#1{\def\in@font{#1}}     \def\in@font{}
116 117 118 119
\def\schoolfont#1{\def\sc@font{#1}}          \def\sc@font{}
\def\departmentfont#1{\def\dp@font{#1}}      \def\dp@font{}
\def\thesistypefont#1{\def\ty@font{#1}}      \def\ty@font{}

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
\def\theoremheaderfont#1{\def\thh@font{#1}}  \def\thh@font{}
\def\theorembodyfont#1{\def\thb@font{#1}}    \def\thb@font{}
\def\itemfont#1{\def\item@font{#1}}          \def\item@font{}
\def\examplefont#1{\def\ex@font{#1}}         \def\ex@font{}
\def\headingstextfont#1{\def\h@font{#1}}     \def\h@font{}
\def\pagenumberfont#1{\def\pn@font{#1}}      \def\pn@font{}
\def\captionheaderfont#1{\def\cph@font{#1}}  \def\cph@font{}
\def\captionbodyfont#1{\def\cpb@font{#1}}    \def\cpb@font{}
\def\figurefont#1{\def\fig@font{#1}}         \def\fig@font{}
\def\tablefont#1{\def\tab@font{#1}}          \def\tab@font{}
\def\indexsize#1{\def\index@size{#1}}        \def\index@size{}
\def\bibsize#1{\def\bib@size{#1}}            \def\bib@size{}
\DeclareOption{slanted}{
    \partfont{\Large}
    \chapterfont{\large}
    \chapterauthorfont{\large}
    \sectionfont{\large\slshape}
    \subsectionfont{\slshape}
    \subsubsectionfont{\slshape}
    \paragraphfont{\slshape}
    \subparagraphfont{\slshape}
    \titlefont{\LARGE}
    \subtitlefont{\large}
    \authorfont{}
    \institutionfont{\slshape}
145 146 147
    \schoolfont{\slshape}
    \departmentfont{\slshape}
    \thesistypefont{}
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
    \theoremheaderfont{\upshape}
    \theorembodyfont{}
    \itemfont{\slshape}
    \examplefont{}
    \headingstextfont{\small\slshape}
    \pagenumberfont{\small}
    \captionheaderfont{\slshape\small}
    \captionbodyfont{\small}
    \figurefont{}
    \tablefont{}
}
\DeclareOption{bold}{%
    \partfont{\LARGE\bfseries}
    \chapterfont{\LARGE\bfseries}
    \chapterauthorfont{\large}
    \sectionfont{\Large\bfseries}
    \subsectionfont{\large\bfseries}
    \subsubsectionfont{\bfseries}
    \paragraphfont{\bfseries}
    \subparagraphfont{\bfseries}
    \titlefont{\LARGE\bfseries}
    \subtitlefont{\large}
    \authorfont{}
171
    \thesistypefont{}
172
    \institutionfont{\slshape}
173 174
    \schoolfont{\slshape}
    \departmentfont{\slshape}
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
    \theoremheaderfont{\bfseries}
    \theorembodyfont{\itshape}
    \itemfont{\bfseries}
    \examplefont{}
    \headingstextfont{\small\bfseries}
    \pagenumberfont{\small}
    \captionheaderfont{\bfseries}
    \captionbodyfont{}
    \figurefont{}
    \tablefont{}
}
\DeclareOption{sfbold}{%
    \partfont{\LARGE\sffamily\bfseries}
    \chapterfont{\LARGE\sffamily\bfseries}
    \chapterauthorfont{\Large\sffamily\bfseries}
    \sectionfont{\large\sffamily\bfseries}
    \subsectionfont{\large\sffamily\bfseries}
    \subsubsectionfont{\sffamily\bfseries}
    \paragraphfont{\sffamily\bfseries}
    \subparagraphfont{\sffamily}
    \titlefont{\LARGE\sffamily\bfseries}
    \subtitlefont{\large\sffamily}
    \authorfont{\Large\sffamily\slshape}
198
    \thesistypefont{}
199
    \institutionfont{\sffamily}
200 201
    \schoolfont{\sffamily}
    \departmentfont{\sffamily}
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
    \theoremheaderfont{\sffamily}
    \theorembodyfont{}
    \itemfont{\sffamily}
    \examplefont{}
    \headingstextfont{\small\sffamily}
    \pagenumberfont{\small\rmfamily}
    \captionheaderfont{\sffamily}
    \captionbodyfont{}
    \figurefont{}
    \tablefont{}
}
\DeclareOption{openright}{\@openrighttrue}
\DeclareOption{openany}{\@openrightfalse}
\DeclareOption{leqno}{\input{leqno.clo}}
\DeclareOption{fleqn}{\input{fleqn.clo}}
\DeclareOption{openbib}{\@openbibtrue}
\newif\if@chapterbib \@chapterbibfalse
\DeclareOption{chapterbib}{\@chapterbibtrue}
220 221
\ExecuteOptions{a4paper,11pt,twoside,final,openright,%
                bold,nocenter,noupper,greek,contpage}
222 223

\ProcessOptions*
224

225
\ifnum\c@type=0
226
  \ClassError{softlab-thesis}{Undefined type of thesis}{%
227
    Please, give one of the options: diploma, mpla, dissertation%
228 229 230 231
  }
\fi


232 233
% Miscellaneous settings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
234 235 236 237 238 239 240 241
\input{bk1\@ptsize.clo}
\setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@}
\renewcommand\baselinestretch{}
\if@noind
  \setlength\parskip{0.5\baselineskip
         \@plus.1\baselineskip \@minus.1\baselineskip}
  \setlength\parindent{\z@}
242
  \def\noparskip{\par\vspace{-\parskip}}
243 244 245 246 247 248 249
\else
  \setlength\parskip{0\p@ \@plus 1\p@}
  \let\noparskip\relax
\fi
\@lowpenalty   51
\@medpenalty  151
\@highpenalty 301
250 251 252 253 254
\setcounter{topnumber}{3}
\renewcommand\topfraction{.8}
\setcounter{bottomnumber}{2}
\renewcommand\bottomfraction{.8}
\setcounter{totalnumber}{5}
255
\renewcommand\textfraction{.2}
256
\renewcommand\floatpagefraction{.8}
257
\setcounter{dbltopnumber}{2}
258 259
\renewcommand\dbltopfraction{.8}
\renewcommand\dblfloatpagefraction{.8}
260
\def\e@skip{\h@font{\phantom{y}}}
261 262 263 264

% Required packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{graphicx}
265 266 267 268
\RequirePackage{fontspec}
\RequirePackage{xunicode}
\RequirePackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
269 270 271 272 273

% XeLaTeX fonts
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% roman font
Antonios Angelakis's avatar
Antonios Angelakis committed
274
\def\font@roman{Liberation Serif}
275 276

% sans serif font
Antonios Angelakis's avatar
Antonios Angelakis committed
277
\def\font@sans{Liberation Sans}
278

279
% typewriter font
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
\def\font@tt{Liberation Mono}
%\def\font@tt{DejaVu Sans Mono}
%\def\font@tt{Lucida Sans Typewriter}
%\def\font@tt{Free Monospaced}
%\def\font@tt{Bitstream Vera Sans Mono}

\setromanfont{\font@roman}
\setsansfont[Scale=MatchLowercase]{\font@sans}
\setmonofont[Scale=MatchLowercase]{\font@tt}


% Polyglossia
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\RequirePackage{polyglossia}
\if@greek
\newfontfamily\greekfont{\font@roman}
\newfontfamily\greekfontsf[Scale=MatchLowercase]{\font@sans}
298
\newfontfamily\greekfonttt[Script=Greek,Scale=MatchLowercase]{\font@tt}
299
%\newfontfamily\greekfont{Times New Roman}
300
%\newfontfamily\greekfont[Script=Greek]{Liberation Serif}
301
%\newfontfamily\greekfontsf[Scale=MatchLowercase]{Arial}
302 303
%\newfontfamily\greekfontsf[Script=Greek,Scale=MatchLowercase]{Liberation Sans}
%\newfontfamily\greekfonttt[Script=Greek,Scale=MatchLowercase]{Liberation Mono}
304 305 306 307 308
\setdefaultlanguage[variant=mono,numerals=arabic]{greek}
\setotherlanguage{english}
\else
\setdefaultlanguage{english}
\fi
309 310 311

% Headings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
312 313
\if@twoside
  \def\ps@headings{
314 315 316 317 318 319 320 321 322
    \def\@oddfoot{\vbox{\hsize=\textwidth
      \hbox to \textwidth{%
      \hfill{\pn@font\thepage}\if@center\hfill\fi}}}
    \def\@evenfoot{\vbox{\hsize=\textwidth
      \hbox to \textwidth{%
      \if@center\hfill\fi{\pn@font\thepage}\hfill}}}
    \let\@oddhead\relax
    \let\@evenhead\relax
    \let\@mkboth\markboth
323 324 325 326
    \def\chaptermark##1{%
      \markboth {%
        \ifnum \c@secnumdepth >\m@ne
          \if@mainmatter
327
            \@chapapp\ \thechapter. \ %
328 329 330 331 332 333 334 335 336 337 338
          \fi
        \fi
        ##1}{}}%
    \def\sectionmark##1{%
      \markright {%
        \ifnum \c@secnumdepth >\z@
            \thesection. \ %
        \fi
        ##1}}}
\else
  \def\ps@headings{%
339
    \def\@oddfoot{\vbox{\hsize=\textwidth
340
      \hbox to \textwidth{%
341 342
      \hfill{\pn@font\thepage}\if@center\hfill\fi}}}
    \let\@oddhead\relax
343 344 345 346 347
    \let\@mkboth\markboth
    \def\chaptermark##1{%
      \markright {%
        \ifnum \c@secnumdepth >\m@ne
          \if@mainmatter
348
            \@chapapp\ \thechapter. \ %
349 350 351 352 353
          \fi
        \fi
        ##1}}}
\fi
\def\ps@myheadings{%
354
    \def\@oddfoot{\vbox{\hsize=\textwidth
355
      \hbox to \textwidth{%
356 357
      \hfill{\pn@font\thepage}\if@center\hfill\fi}}}
    \def\@evenfoot{\vbox{\hsize=\textwidth
358
      \hbox to \textwidth{%
359 360 361
      \if@center\hfill\fi{\pn@font\thepage}\hfill}}}
    \let\@oddhead\relax
    \let\@evenhead\relax
362 363 364 365 366
    \let\@mkboth\@gobbletwo
    \let\chaptermark\@gobble
    \let\sectionmark\@gobble
    }
\def\ps@draft{%
367 368 369 370 371 372
    \def\@oddfoot{\vbox{\hsize=\textwidth
      \hbox to \textwidth{%
      \hfill{\pn@font\thepage}\if@center\hfill\fi}}}
    \def\@evenfoot{\vbox{\hsize=\textwidth
      \hbox to \textwidth{%
      \if@center\hfill\fi{\pn@font\thepage}\hfill}}}
373 374
    \def\@oddhead{\vbox{\hsize=\textwidth
      \hbox to \textwidth{%
375
      \hfill{\pn@font\today,\ \now\ ---
376 377
      {\h@font \draftname: ``\jobname''}}\if@center\hfill\fi}%
       \vskip 2pt\hrule}}%
378 379
    \def\@evenhead{\vbox{\hsize=\textwidth
       \hbox to \textwidth{%
380
       \if@center\hfill\fi{\pn@font{\h@font \draftname: ``\jobname''} ---
381 382
       \today,\ \now}\hfill}%
       \vskip 2pt\hrule}}%
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397
    \let\@mkboth\@gobbletwo
    \let\chaptermark\@gobble
    \let\sectionmark\@gobble
    }
\@ifundefined{option@crosshair}{}{%
  \def\clap#1{\hbox to 0pt{\hss#1\hss}} \newdimen\@crosshairrule
  \@crosshairrule=.24pt \def\@crosshairs{\vbox to
    0pt{\hsize=0pt\baselineskip=0pt\lineskip=0pt \vss \clap{\vrule
        height .125in width \@crosshairrule depth 0pt} \clap{\vrule
        width .25in height \@crosshairrule depth 0pt} \clap{\vrule
        height .125in width \@crosshairrule depth 0pt} \vss}}
 \def\ps@empty{%
    \let\@oddfoot\@empty\let\@evenfoot\@empty
    \def\@oddhead{\hfill\raise\headheight\@crosshairs}
    \let\@evenhead\@oddhead}}
398 399 400 401

% Title page and front matter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@supervisor{}       \def\supervisor#1{\gdef\@supervisor{#1}}
402 403 404 405 406 407 408
\def\@supervisor@pos{}   \def\supervisorpos#1{\gdef\@supervisor@pos{#1}}
\def\@committee@one{}    \def\committeeone#1{\gdef\@committee@one{#1}}
\def\@committee@one@pos{}\def\committeeonepos#1{\gdef\@committee@one@pos{#1}}
\def\@committee@two{}    \def\committeetwo#1{\gdef\@committee@two{#1}}
\def\@committee@two@pos{}\def\committeetwopos#1{\gdef\@committee@two@pos{#1}}
\def\@committee@three{}  \def\committeethree#1{\gdef\@committee@three{#1}}
\def\@committee@three@pos{}\def\committeethreepos#1{\gdef\@committee@three@pos{#1}}
409
\def\@subtitle{}         \def\subtitle#1{\gdef\@subtitle{#1}}
410
\def\@thesistype{}       \def\thesistype#1{\gdef\@thesistype{#1}}
411
\if@greek
412
\def\@institution{}      \def\institution#1{\gdef\@institution{#1}}
413
\def\@institution@gen{}  \def\institutiongen#1{\gdef\@institution@gen{#1}}
414 415
\else
\def\@institution{}      \def\institution#1{\gdef\@institution{#1}
416 417
                                            \gdef\@institution@gen{#1}}
\def\@institution@gen{}
418
\fi
419 420
\def\@school{}           \def\school#1{\gdef\@school{#1}}
\def\@department{}       \def\department#1{\gdef\@department{#1}}
421 422 423 424
\def\@dedication{}       \def\dedication#1{\def\@dedication{#1}}
\def\@uppertitleback{}   \long\def\uppertitleback#1{\def\@uppertitleback{#1}}
\def\@middletitleback{}  \long\def\middletitleback#1{\def\@middletitleback{#1}}
\def\@lowertitleback{}   \long\def\lowertitleback#1{\def\@lowertitleback{#1}}
425 426
\def\@date@defense{}     \def\datedefense#1#2#3{%
                           \gdef\@date@defense{#1η\ \@date@month@gen[#2]\ #3}%
427
                           \gdef\@date@defenseen{\@date@month[#2]\ #1,\ #3}%
428
                           \gdef\@date{\@date@month@nom[#2]\ #3}%
429
                           \gdef\@dateen{\@date@month[#2]\ #3}%
430 431
                           \gdef\@date@year{#3}%
                         }
432
                         \def\url#1{\gdef\@url{\texttt{#1}}}
433
\def\@TRnumber{}         \def\TRnumber#1{\gdef\@TRnumber{#1}}
434 435 436
\def\@trurl{}            \def\trurl#1{\gdef\@trurl{\texttt{#1}}}
\def\@trftp{}            \def\trftp#1{\gdef\@trftp{\texttt{#1}}}

437
\def\new@tpage{\newpage\thispagestyle{empty}\null}
438

439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454
\def\authorsig#1{\gdef\@authorsig{#1}}
\if@greek
  \ifcase\c@type
  \or\authorsig{Διπλωματούχος Ηλεκτρολόγος Μηχανικός
                και Μηχανικός Υπολογιστών Ε.Μ.Π.}
  \or\authorsig{}
  \or\authorsig{Διδάκτωρ Πληροφορικής Ε.Μ.Π.}
  \fi
\else
  \ifcase\c@type
  \or\authorsig{Electrical and Computer Engineer}
  \or\authorsig{}
  \or\authorsig{Dr.\ Computer Egineer}
  \fi
\fi

455
\def\authoren#1{\gdef\@authoren{#1}}
456
\def\@author@and{\end{tabular}\hskip 1em plus.17fil
457
  \begin{tabular}[t]{@{}l@{}}}
458 459 460
\def\@committeemembers@and{\\ &}
\let\and\relax

461 462 463 464 465 466 467 468 469 470 471
\if@greek
  \def\@location{Αθήνα}
\else
  \def\@location{Athens}
  \let\old@author\author
  \def\author#1{\old@author{#1}\authoren{#1}}
\fi

\def\@locationen{Athens}
\def\@locationgr{Αθήνα}

472 473 474 475
\newcommand\@date@month[1][\month]{%
  \ifcase#1\or January\or February\or March\or April\or
    May\or June\or July\or August\or
     September\or October\or November\or December\fi}
476 477 478 479 480 481 482 483 484
\newcommand\@date@month@nom[1][\month]{%
  \ifcase#1\or Ιανουάριος\or Φεβρουάριος\or Μάρτιος\or Απρίλιος\or
    Μάιος\or Ιούνιος\or Ιούλιος\or Αύγουστος\or
     Σεπτέμβριος\or Οκτώβριος\or Νοέμβριος\or Δεκέμβριος\fi}
\newcommand\@date@month@gen[1][\month]{%
  \ifcase#1\or Ιανουαρίου\or Φεβρουαρίου\or Μαρτίου\or Απριλίου\or
    Μαΐου\or Ιουνίου\or Ιουλίου\or Αυγούστου\or
     Σεπτεμβρίου\or Οκτωβρίου\or Νοεμβρίου\or Δεκεμβρίου\fi}

485
\def\maketitle{%
486 487
  \begingroup
%
488 489 490 491 492 493 494
  \cleardoublepage
  \newpage
  \thispagestyle{empty}%
  \if@compatibility
    \setcounter{page}{0}
  \fi
%
495 496 497 498 499
  \let\footnotesize\small
  \let\footnoterule\relax
  \def\thefootnote{\fnsymbol{footnote}}
  \new@tpage
%
500
  \noindent
501 502 503 504 505 506 507 508 509 510
  \ifnum\c@type=2
  \begin{center}
  \renewcommand\baselinestretch{1.2}\normalsize%
  {\in@font\@institution} \\
  {\sc@font\@school} \\[3pt]
  {\dp@font\@department}
  \vfill
  \includegraphics[height=3.5cm]{mpla}%
  \end{center}  
  \else%
511
  \begin{minipage}{4.0cm}
512
  \includegraphics[height=3.5cm]{pyrforos}%
513
  \end{minipage}
514
  \begin{minipage}{11.0cm}
515
  \raggedright%
516
  \renewcommand\baselinestretch{1.2}\normalsize%
517 518 519
  {\in@font\@institution} \\
  {\sc@font\@school} \\[3pt]
  {\dp@font\@department}
520
  \end{minipage}
521
  \fi
522 523 524 525
%
  \vfill
%
  \begin{center}
526
  \renewcommand\baselinestretch{1.8}\normalsize%
527 528 529 530 531 532 533 534 535 536 537 538
  {\t@font\@title}
  \end{center}
  \ifx\@subtitle\@empty\else
  \vspace{1cm}
  \begin{center}
  {\st@font\@subtitle}
  \end{center}
  \fi
%
  \vspace{1cm}
%
  \begin{center}
539 540 541 542
%
  {\ty@font\uppercase\expandafter{\@thesistype}} \\
%
  \vspace{1cm}
543 544 545
  \let\old@and\and%
  \let\and\@author@and%                           
  {\a@font%
546
  \begin{tabular}[t]{@{}l@{}}%
547
  \if@greek
548
  \uppercase\expandafter{\@author}%
549 550 551
  \else
  \uppercase\expandafter{\@authoren}%
  \fi
552 553 554 555 556 557
  \end{tabular}}%
  \let\and\old@and%
  \end{center}
%
  \vfill
%
558 559 560 561 562 563 564 565 566 567
  {\st@font%
  \textbf{\supervisorname~:\ \ }
  \begin{tabular}[t]{@{}l@{}}
    \@supervisor \\[6pt]
    \@supervisor@pos
  \end{tabular}}
%
  \vfill
%
  \begin{center}
568
  {\st@font \@location, \if@greek\@date\else\@dateen\fi}
569 570
  \end{center}
%
571 572
\ifcase\c@type
\or%%%%%%%%%%%%%%%%%%%%%% Diploma Project %%%%%%%%%%%%%%%%%%%%%%
573 574 575 576 577 578 579 580 581 582
  \cleardoublepage
  \newpage
  \thispagestyle{empty}%
%
  \let\footnotesize\small
  \let\footnoterule\relax
  \def\thefootnote{\fnsymbol{footnote}}
  \new@tpage
%
  \noindent%
583
  \begin{minipage}{4.0cm}
584
  \includegraphics[height=3.5cm]{pyrforos}%
585
  \end{minipage}
586
  \begin{minipage}{11.0cm}
587
  \raggedright%
588
  \renewcommand\baselinestretch{1.2}\normalsize%
589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613
  {\in@font\@institution} \\
  {\sc@font\@school} \\[3pt]
  {\dp@font\@department}
  \end{minipage}
%
  \vfill
%
  \begin{center}
  \renewcommand\baselinestretch{1.8}\normalsize%
  {\t@font\@title}
  \end{center}
  \ifx\@subtitle\@empty\else
  \vspace{1cm}
  \begin{center}
  {\st@font\@subtitle}
  \end{center}
  \fi
%
  \vspace{1cm}
%
  \begin{center}
%
  {\ty@font\uppercase\expandafter{\@thesistype}} \\
%
  \vspace{1cm}
614
  \let\old@and\and%
615 616 617 618 619
  \let\and\@author@and%                           
  {\a@font%
  \begin{tabular}[t]{@{}l@{}}%
  \uppercase\expandafter{\@author}%
  \end{tabular}}%
620
  \let\and\old@and%
621 622 623 624 625 626 627 628 629 630 631 632 633 634
  \end{center}
%
  \vfill
%
  {\st@font%
  \textbf{\supervisorname~:\ \ }
  \begin{tabular}[t]{@{}l@{}}
    \@supervisor \\[6pt]
    \@supervisor@pos
  \end{tabular}
%
  \vspace{1.0cm}\par
%
  \noindent
635
  \if@greek
636
  Εγκρίθηκε από την τριμελή εξεταστική επιτροπή την \@date@defense.
637 638 639
  \else
  Approved by the examining committee on the \@date@defenseen.
  \fi
640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662
  }
%
  \vspace{1.5cm}\par
%
  \noindent{\small
  \hfill
  \begin{tabular}{@{}l@{}}
    \signature{\@committee@one}{\@committee@one@pos}
  \end{tabular}
  \hfill
  \begin{tabular}{@{}l@{}}
    \signature{\@committee@two}{\@committee@two@pos}
  \end{tabular}
  \hfill
  \begin{tabular}{@{}l@{}}
    \signature{\@committee@three}{\@committee@three@pos}
  \end{tabular}
  \hfill
  \hbox{}
  }
%
  \vfill
%
663
  \begin{center}
664
  {\st@font \@location, \if@greek\@date\else\@dateen\fi}
665
  \end{center}
666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690
\or%%%%%%%%%%%%%%%%%%%%%% μΠλ∀ M.Sc. thesis %%%%%%%%%%%%%%%%%%%%%%
  \cleardoublepage
  \newpage
  \thispagestyle{empty}%
%
  \let\footnotesize\small
  \let\footnoterule\relax
  \def\thefootnote{\fnsymbol{footnote}}
  \new@tpage
%
  \vfill
%
  \begin{center}
  \renewcommand\baselinestretch{1.5}\large%
  Η παρούσα Διπλωματική Εργασία \\
  εκπονήθηκε στα πλαίσια των σπουδών \\
  για την απόκτηση του
  \textbf{Μεταπτυχιακού Διπλώματος Ειδίκευσης} \\
  στη \\
  \textbf{Λογική και Θεωρία Αλγορίθμων και Υπολογισμού} \\
  που απονέμει το \\
  \textbf{Τμήμα Μαθηματικών} \\
  του \\
  \textbf{Εθνικού και Καποδιστριακού Πανεπιστημίου Αθηνών}
  \end{center}  
691
%
692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715
  \vfill
%
  \noindent
  Εγκρίθηκε την \@date@defense{} από Εξεταστική Επιτροπή
  αποτελούμενη από τους:
%
  \vspace{2cm}\par
%
  \noindent
  \begin{tabular}{@{}rl@{\hspace{1cm}}l@{\hspace{1cm}}c@{}}
       & \textbf{Ονοματεπώνυμο} & \textbf{Βαθμίδα}
       & \textbf{Υπογραφή} \\[1.5cm]
    1. & \@committee@one & \@committee@one@pos
       & \makebox[40mm]{\tiny\dotfill} \\[1.5cm]
    2. & \@committee@two & \@committee@two@pos
       & \makebox[40mm]{\tiny\dotfill} \\[1.5cm]
    3. & \@committee@three & \@committee@three@pos
       & \makebox[40mm]{\tiny\dotfill}
  \end{tabular}
%
  \vfill

%
\fi
716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732
  \if@twoside\new@tpage
  \noindent\begin{minipage}[t]{\textwidth}
  \@uppertitleback
  \end{minipage}\par
  \vfill
  \noindent\begin{minipage}[t]{\textwidth}
  \@middletitleback
  \end{minipage}\par
  \vfill
  \noindent\begin{minipage}[b]{\textwidth}
  \@lowertitleback
  \end{minipage}
  \fi
  \ifx\@dedication\@empty\else \new@tpage
       {\centering \Large \@dedication \par}
       \if@twoside \new@tpage \fi
  \fi
733 734
%
  \newpage
735
  \endgroup
736
%
737 738
  \def\thefootnote{\arabic{footnote}}
  \setcounter{footnote}{0}
739
  \gdef\@thanks{}%
740
  \gdef\@uppertitleback{}\gdef\@lowertitleback{}\gdef\@dedication{}%
741
  \let\maketitle\relax%
742
}
743
\def\abstractgr{%
744
  \begin{greek}%
745
  \chapter*{\abstractnamegr\@mkboth{\abstractnamegr}{\abstractnamegr}}%
746
  \addcontentsline{toc}{chapter}{\abstractnamegr}%
747
  \noindent\ignorespaces}
748 749 750 751
\def\endabstractgr{%
  \par%
  \end{greek}%
  \vfil\null}
752
\def\abstracten{%
753
  \begin{english}%
754
  \chapter*{\abstractnameen\@mkboth{\abstractnameen}{\abstractnameen}}%
755
  \addcontentsline{toc}{chapter}{\abstractnameen}%
756
  \noindent\ignorespaces}
757 758 759 760
\def\endabstracten{%
  \par%
  \end{english}%
  \vfil\null}
761 762 763

% Sectioning
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780
\newcommand*{\chaptermark}[1]{}
\setcounter{secnumdepth}{2}
\newcounter {part}
\newcounter {chapter}
\newcounter {section}[chapter]
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]
\renewcommand{\thepart}         {\Roman{part}}
\renewcommand{\thechapter}      {\arabic{chapter}}
\renewcommand{\thesection}      {\thechapter.\arabic{section}}
\renewcommand{\thesubsection}   {\thesection.\arabic{subsection}}
\renewcommand{\thesubsubsection}{\thesubsection .\arabic{subsubsection}}
\renewcommand{\theparagraph}    {\thesubsubsection.\arabic{paragraph}}
\renewcommand{\thesubparagraph} {\theparagraph.\arabic{subparagraph}}
\def\chapapp#1{\def\@chapapp{#1}}      \def\@chapapp{}
781 782 783 784 785 786 787 788 789 790
\newcommand{\frontmatter}{\cleardoublepage\@mainmatterfalse%
  \if@contpage\else\pagenumbering{roman}\fi}
\newcommand{\mainmatter}{%
  \ifodd\c@page
    \clearpage\thispagestyle{empty}\hbox{}%
  \fi%
  \label{pg:last-front}%
  \clearpage\@mainmattertrue%
  \if@contpage\else\pagenumbering{arabic}\fi%
  \addtocontents{toc}{\protect\addvspace{1em}}}
791 792 793 794
\newcommand{\backmatter}{\if@openright\cleardoublepage\else\clearpage\fi
      \@mainmatterfalse}
\newcommand{\part}{\cleardoublepage
    \thispagestyle{empty}%
795 796
    \vspace*{\beforechaptervspace}%
    \secdef\@part\@spart}
797 798 799 800 801
\def\@part[#1]#2{%
    \ifnum \c@secnumdepth >-2\relax \refstepcounter{part}
      \addcontentsline{toc}{part}{\partname\ \thepart \hspace{1em}#1}%
    \else
     \addcontentsline{toc}{part}{#1}\fi \markboth{}{}%
802 803
     {\raggedright
      \reset@font
804 805 806 807 808 809 810 811 812 813 814 815
      \ifnum \c@secnumdepth >-2\relax
        \p@font \partname{} \thepart \par
         \vskip 20pt
      \fi
      \p@font
      \if@upper
        \uppercase{#2}
      \else #2
      \fi
  \par}
\@endpart}
\def\@spart#1{%
816
      {\raggedright
817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833
       \reset@font\p@font
       \if@upper
          \uppercase\expandafter{#1}
       \else #1%
       \fi\par}
  \@endpart}
\def\@endpart{\vfil\newpage
              \if@twoside
                \hbox{}%
                \thispagestyle{empty}%
                \newpage
              \fi}
\newcommand{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi
                    \global\@topnum\z@
                    \@afterindentfalse
                    \secdef\@chapter\@schapter}
\def\@chapter[#1]#2{%
834 835 836 837 838 839 840
   \ifnum \c@secnumdepth >\m@ne
      \if@mainmatter\else%
         \ifnum \c@chapter = 0%
            \addcontentsline{toc}{part}{\appendixname}%
         \fi
      \fi%
      \refstepcounter{chapter}%
841 842 843 844 845
      \if@mainmatter%
        \typeout{\chaptername\space\thechapter.}
      \else%
        \typeout{\appendixname\space\thechapter.}
      \fi%
846 847
      \addcontentsline{toc}{chapter}{%
         \protect\numberline{\thechapter.}#1}%
848 849 850 851 852 853
   \else
      \addcontentsline{toc}{chapter}{#1}
   \fi
   \chaptermark{#1}
   \addtocontents{lof}{\protect\addvspace{10pt}}
   \addtocontents{lot}{\protect\addvspace{10pt}}
854 855
   \@makechapterhead{#2}
   \@afterheading}
856 857 858 859 860 861 862
\newlength{\beforechaptervspace}
\setlength{\beforechaptervspace}{50pt}
\newlength{\afterchaptervspace}
\setlength{\afterchaptervspace}{30pt}
\def\@makechapterhead#1{%
  \vspace*{\beforechaptervspace}{%
  \ifx\@chapapp\@empty
863 864 865 866 867
    \raggedright
    \ifnum \c@secnumdepth >\m@ne
      \setbox\@tempboxa\hbox{\c@font\thechapter.\ %
        \c@font
        \if@upper
868
          \uppercase{#1}
869 870 871 872 873 874 875 876 877 878 879 880 881
        \else
          #1%
        \fi}
      \ifdim \wd\@tempboxa >\hsize
        \@hangfrom{\c@font\thechapter.\ }%
                  {\c@font
		   \if@upper
		     \uppercase{#1}
		   \else
		     #1%
		   \fi
		   \par\nobreak}
      \else
882
           \hbox to\hsize{\box\@tempboxa\hfil}
883 884
      \fi
    \fi
885
  \else
886 887
    \raggedright
    \ifnum \c@secnumdepth >\m@ne
888 889
       {\s@font \@chapapp{} \thechapter}
       \par \vskip 15\p@
890
    \fi
891 892 893
    {\c@font
    \if@upper
       \uppercase{#1}
894
    \else
895
      #1%
896
    \fi
897 898 899
    \par \nobreak}
  \fi
  \vspace{\afterchaptervspace}}
900
}
901
\def\@schapter#1{\@makeschapterhead{#1}\@afterheading}
902 903
\def\@makeschapterhead#1{%
   \vspace*{\beforechaptervspace}{%
904
     \parindent\z@\raggedright
905 906 907 908 909 910 911 912 913 914 915 916
     {\c@font
     \if@upper
       \uppercase\expandafter{#1}
     \else
        #1%
     \fi
     \par\nobreak
     \vskip 30\p@}
     }}
\newcommand\section{\@startsection {section}{1}{\z@}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%
917
                                   {\raggedright\reset@font\s@font}}
918 919 920
\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
921
                                     {\raggedright\reset@font\ss@font}}
922 923 924
\newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
925
                                     {\raggedright\reset@font\sss@font}}
926 927 928 929 930 931 932 933
\newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
                                    {3.25ex \@plus1ex \@minus.2ex}%
                                    {-1em}%
                                    {\reset@font\pg@font}}
\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
                                       {3.25ex \@plus1ex \@minus .2ex}%
                                       {-1em}%
                                      {\reset@font\spg@font}}
934 935 936
\newcommand\appendix{\par
  \setcounter{chapter}{0}%
  \setcounter{section}{0}%
937 938
  \ifx\@chapapp\@empty%
    \def\@addappendixtocontents{\addcontentsline{toc}{part}{\appendixname}}%
939 940
    \part*{\appendixname\@mkboth{\appendixname}{\appendixname}%%
           \@addappendixtocontents}
941
  \else%
942
    \gdef\@chapapp{\appendixname}%
943
  \fi
944
  \gdef\thechapter{\@Alph\c@chapter}}
945 946 947

% Space lengths
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
948
\setlength\leftmargini  {2.5em}
949 950 951
\setlength\leftmarginii  {2.2em}
\setlength\leftmarginiii {1.87em}
\setlength\leftmarginiv  {1.7em}
952 953
\setlength\leftmarginv  {1em}
\setlength\leftmarginvi {1em}
954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996
\setlength\leftmargin    {\leftmargini}
\setlength  \labelsep  {.5em}
\setlength  \labelwidth{\leftmargini}
\addtolength\labelwidth{-\labelsep}
\@beginparpenalty -\@lowpenalty
\@endparpenalty   -\@lowpenalty
\@itempenalty     -\@lowpenalty
\if@enumeration
  \renewcommand\theenumi{\arabic{enumi}}
  \renewcommand\theenumii{\alph{enumii}}
  \renewcommand\theenumiii{\roman{enumiii}}
  \renewcommand\theenumiv{\Alph{enumiv}}
  \newcommand\labelenumi{\theenumi.}
  \newcommand\labelenumii{(\theenumii)}
  \newcommand\labelenumiii{\theenumiii.}
  \newcommand\labelenumiv{\theenumiv.}
  \renewcommand\p@enumii{\theenumi}
  \renewcommand\p@enumiii{\theenumi(\theenumii)}
  \renewcommand\p@enumiv{\p@enumiii\theenumiii}
\else
  \renewcommand\theenumi{\arabic{enumi}}
  \renewcommand\theenumii{\arabic{enumii}}
  \renewcommand\theenumiii{\arabic{enumiii}}
  \renewcommand\theenumiv{\arabic{enumiv}}
  \newcommand\labelenumi{\theenumi.}
  \newcommand\labelenumii{\theenumi.\theenumii.}
  \newcommand\labelenumiii{\theenumi.\theenumii.\theenumiii.}
  \newcommand\labelenumiv{\theenumi.\theenumii.\theenumiii.\theenumiv.}
  \renewcommand\p@enumii{\theenumi}
  \renewcommand\p@enumiii{\theenumi(\theenumii)}
  \renewcommand\p@enumiv{\p@enumiii\theenumiii}
\fi
\if@itemization
  \newcommand\labelitemi{$\m@th\bullet$}
  \newcommand\labelitemii{\normalfont\bfseries --}
  \newcommand\labelitemiii{$\m@th\ast$}
  \newcommand\labelitemiv{$\m@th\cdot$}
\else
  \newcommand\labelitemi{\bfseries --}
  \newcommand\labelitemii{\bfseries --}
  \newcommand\labelitemiii{\bfseries --}
  \newcommand\labelitemiv{\bfseries --}
\fi
997 998 999

% Some new environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043
\newenvironment{description}
               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                        \let\makelabel\descriptionlabel}}
               {\endlist}
\newcommand\descriptionlabel[1]{\hspace\labelsep
                                \item@font #1}
\newenvironment{verse}
               {\let\\=\@centercr
                \list{}{\itemsep      \z@
                        \itemindent   -1.5em%
                        \listparindent\itemindent
                        \rightmargin  \leftmargin
                        \advance\leftmargin 1.5em}%
                \item[]}
               {\endlist}
\newenvironment{quotation}
               {\list{}{\listparindent 1.5em%
                        \itemindent    \listparindent
                        \rightmargin   \leftmargin
                        \parsep        \z@ \@plus\p@}%
                \item[]}
               {\endlist}
\newenvironment{quote}
               {\list{}{\rightmargin\leftmargin}%
                \item[]}
               {\endlist}
\def\@begintheorem#1#2{\reset@font\thb@font\trivlist
      \item[\hskip \labelsep{\reset@font\thh@font #1\ #2:}]}
\def\@opargbegintheorem#1#2#3{\reset@font\thb@font\trivlist
      \item[\hskip \labelsep{\reset@font\thh@font #1\ #2\ (#3):}]}
\def\@endtheorem{\endtrivlist}
\newlength{\exampleindent}    \setlength{\exampleindent}{\parindent}
\newenvironment{example}%
   {\begin{list}{}{%
    \setlength{\leftmargin}{\exampleindent}}
    \ex@font \item[]}
   {\end{list}}
\newenvironment{describe}[1][\quad]%
  {\begin{list}{}{%
    \renewcommand{\makelabel}[1]{{\item@font ##1}\hfil}%
    \settowidth{\labelwidth}{{\item@font #1}}%
    \setlength{\leftmargin}{\labelwidth}%
    \addtolength{\leftmargin}{\labelsep}}}%
  {\end{list}}
1044 1045 1046

% More lengths and settings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072
\setlength\arraycolsep{5\p@}
\setlength\tabcolsep{6\p@}
\setlength\arrayrulewidth{.4\p@}
\setlength\doublerulesep{2\p@}
\setlength\tabbingsep{\labelsep}
\skip\@mpfootins = \skip\footins
\setlength\fboxsep{3\p@}
\setlength\fboxrule{.4\p@}
\@addtoreset{equation}{chapter}
\renewcommand{\theequation}{\thechapter.\arabic{equation}}
\def\marginlabel#1{\marginpar%
   {\if@twoside
       \ifodd\c@page
          \raggedright
       \else
          \raggedleft
       \fi
     \else
        \raggedright
     \fi #1}}
\def\attention{\mbox{}%
    \marginpar[\raggedleft\large\bf! $\rightarrow$]%
        {\raggedright\large\bf $\leftarrow$ !}}
\def\seealso#1{\mbox{}%
    \marginpar[\raggedleft$\rightarrow$ \small #1]%
        {\raggedright\small  #1 $\leftarrow$}\ignorespaces}
1073 1074 1075

% Floating environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142
\newcounter{figure}[chapter]
\renewcommand{\thefigure}{\thechapter.\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{\figureshortname~\thefigure}
\newenvironment{figure}
               {\fig@font\@float{figure}}
               {\end@float}
\newenvironment{figure*}
               {\fig@font\@dblfloat{figure}}
               {\end@dblfloat}
\newcounter{table}[chapter]
\renewcommand{\thetable}{\thechapter.\@arabic\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{\tableshortname~\thetable}
\newenvironment{table}
               {\tab@font\@float{table}}
               {\end@float}
\newenvironment{table*}
               {\tab@font\@dblfloat{table}}
               {\end@dblfloat}
\newlength\abovecaptionskip
\newlength\belowcaptionskip
\setlength\abovecaptionskip{10\p@}
\setlength\belowcaptionskip{0\p@}
\long\def\@makecaption#1#2{%
 \vskip\abovecaptionskip
 \setbox\@tempboxa\hbox{{\cph@font #1:} {\cpb@font #2}}%
 \ifdim \wd\@tempboxa >\hsize
    \@hangfrom{\cph@font #1: }{\cpb@font #2\par}%
 \else
    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
 \fi
 \vskip\belowcaptionskip}
\def\rb#1{\raisebox{1.5ex}[-1.5ex]{#1}}
\def\tablerule{\noalign{\ifnum0=`}\fi
   \hrule \@height \arrayrulewidth \vskip\doublerulesep
   \futurelet \@tempa\@xhline}
\def\thicktablerule{\noalign{\ifnum0=`}\fi
   \hrule \@height 2\arrayrulewidth \vskip\doublerulesep
   \futurelet \@tempa\@xhline}
\def\doubletablerule{\noalign{\ifnum0=`}\fi
   \hrule \@height \arrayrulewidth \vskip2\arrayrulewidth
   \hrule \@height \arrayrulewidth \vskip\doublerulesep
   \futurelet \@tempa\@xhline}
\def\thickhline{\noalign{\ifnum0=`}\fi
   \hrule \@height 2\arrayrulewidth\futurelet \@tempa\@xhline}
\def\doublehline{\noalign{\ifnum0=`}\fi
   \hrule \@height \arrayrulewidth\vskip2\arrayrulewidth
   \hrule \@height \arrayrulewidth \futurelet \@tempa\@xhline}
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
\DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}}
\DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}}
\newcommand{\@pnumwidth}{1.55em}
\newcommand{\@tocrmarg} {2.55em}
\newcommand{\@dotsep}{4.5}
\setcounter{tocdepth}{2}

1143 1144
% Table of contents, etc.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1145 1146 1147 1148
\newcommand{\tableofcontents}{%
    \chapter*{\contentsname
        \@mkboth{\contentsname}%
                {\contentsname}}%
1149
    \addcontentsline{toc}{chapter}{\contentsname}
1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193
    \@starttoc{toc}%
    }
\newcommand*{\l@part}[2]{%
  \ifnum \c@tocdepth >-2\relax
    \addpenalty{-\@highpenalty}%
    \addvspace{2.25em \@plus\p@}%
    \begingroup
      \setlength\@tempdima{3em}%
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      {\leavevmode
       {\sss@font #1}\hfil \hbox to\@pnumwidth{\hss #2}}\par
       \nobreak
         \global\@nobreaktrue
         \everypar{\global\@nobreakfalse\everypar{}}
    \endgroup
  \fi}
\newcommand*{\l@chapter}[2]{%
  \ifnum \c@tocdepth >\m@ne
    \addpenalty{-\@highpenalty}%
    \vskip 1.0em \@plus\p@
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode
      \advance\leftskip\@tempdima
      \hskip -\leftskip
      {\sss@font #1}%
      \nobreak\leaders\hbox{%
         $\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}
      \hfill\nobreak\hbox to\@pnumwidth{\hfil\textrm{#2}}\par
      \penalty\@highpenalty
    \endgroup
  \fi}
\newcommand*{\l@section}      {\@dottedtocline{1}{1.5em}{2.3em}}
\newcommand*{\l@subsection}   {\@dottedtocline{2}{3.8em}{3.2em}}
\newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
\newcommand*{\l@paragraph}    {\@dottedtocline{4}{10em}{5em}}
\newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
\newcommand{\listoffigures}{%
    \chapter*{\listfigurename
      \@mkboth{\listfigurename}%
              {\listfigurename}}%
1194
    \addcontentsline{toc}{chapter}{\listfigurename}
1195 1196 1197 1198 1199 1200 1201
    \@starttoc{lof}%
    }
\newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
\newcommand{\listoftables}{%
    \chapter*{\listtablename
      \@mkboth{\listtablename}%
              {\listtablename}}%
1202
    \addcontentsline{toc}{chapter}{\listtablename}
1203 1204 1205
    \@starttoc{lot}%
    }
\let\l@table\l@figure
1206 1207 1208

% Bibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1209 1210 1211 1212 1213
\newdimen\bibindent
\bibindent=1.5em
\newenvironment{thebibliography}[1]
     {\if@chapterbib
        \section*{\refname\@mkboth{\refname}{\refname}}%
1214
        \addcontentsline{toc}{section}{\refname}%
1215
      \else
1216
        \chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270
        \addtocontents{toc}{\protect\addvspace{1em}}%
        \addcontentsline{toc}{chapter}{\bibname}%
        \addtocontents{toc}{\protect\addvspace{1em}}%
      \fi
      \list{\@biblabel{\arabic{enumiv}}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \if@openbib
              \advance\leftmargin\bibindent
              \itemindent -\bibindent
              \listparindent \itemindent
              \parsep \z@
            \fi
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\arabic{enumiv}}}%
      \if@openbib
        \renewcommand\newblock{\par}
      \else
        \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
      \fi
      \sloppy\clubpenalty4000\widowpenalty4000%
      \sfcode`\.=\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\newcommand\newblock{}
\if@chapterbib
  \def\@mainbblfile{\jobname.bbl}
  \let\@bblfile=\@mainbblfile
  \def\bibliography#1{%
    \if@filesw\immediate\write\@auxout{\string\bibdata{#1}}\fi
    \@input{\@bblfile}}
  \def\@include#1 {\clearpage
    \if@filesw \immediate\write\@mainaux{\string\@input{#1.aux}}\fi
    \@tempswatrue
    \if@partsw \@tempswafalse\edef\@tempb{#1}
       \@for\@tempa:=\@partlist\do{\ifx\@tempa\@tempb\@tempswatrue\fi}
    \fi
    \if@tempswa
       \if@filesw \let\@auxout=\@partaux
           \immediate\openout\@partaux #1.aux
           \immediate\write\@partaux{\relax}
       \fi
       \def\@bblfile{#1.bbl}\@input{#1.tex}
       \let\@bblfile\@mainbblfile\clearpage
       \@writeckpt{#1}
       \if@filesw
          \immediate\closeout\@partaux
       \fi
       \let\@auxout=\@mainaux\else\@nameuse{cp@#1}
   \fi}
\fi
1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286

% Index
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\nindexbefore}{}
\newcommand{\nindexafter}{}
\newenvironment{theindex}{%
  \columnseprule \z@%
  \columnsep 35\p@%
  \twocolumn[\@makeschapterhead{\indexname}]%
  \nindexbefore%
  \@mkboth{\indexname}{\indexname}%
  \thispagestyle{empty}\parindent\z@%
  \parskip\z@ \@plus .3\p@\relax%
  \let\item\@idxitem\index@size%
}{%
  \nindexafter%
1287
  \onecolumn%
1288
}
1289 1290 1291 1292
\newcommand{\@idxitem}  {\par\hangindent 40\p@}
\newcommand{\subitem}   {\par\hangindent 40\p@ \hspace*{20\p@}}
\newcommand{\subsubitem}{\par\hangindent 40\p@ \hspace*{30\p@}}
\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
1293 1294 1295

% Footnotes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311
\renewcommand\footnoterule{%
  \kern-3\p@
  \hrule width .4\columnwidth
  \kern 2.6\p@}
\@addtoreset{footnote}{chapter}
\if@noind
  \long\def\@makefntext#1{%
        \leftskip 2.0em%
        \noindent
        \hbox to 0em{\hss\@makefnmark\kern 0.25em}#1}
\else
  \long\def\@makefntext#1{%
      \parindent 1em%
      \noindent
      \hbox to 1.8em{\hss\@makefnmark\kern 0.25em}#1}
\fi
1312 1313 1314 1315

% Names
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\if@greek
1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333
\def\contentsname{Περιεχόμενα}
\def\listfigurename{Σχήματα}
\def\listtablename{Πίνακες}
\def\bibname{Βιβλιογραφία}
\def\refname{Αναφορές}
\def\indexname{Ευρετήριο}
\def\figurename{Σχήμα}
\def\tablename{Πίνακας}
\def\chaptername{Κεφάλαιο}
\def\appendixname{Παράρτημα}
\def\partname{Μέρος}
\def\abstractname{Περίληψη}
\def\draftname{Προσχέδιο}
\def\prefacename{Πρόλογος}
\def\committeename{Συμβουλευτική επιτροπή}
\def\supervisorname{Επιβλέπων}
\def\committeemembersname{Μέλη}
\def\pagesname{Σελίδες}
1334 1335
\def\urlname{URL}
\def\ftpname{FTP}
1336
\def\today{\number\day\space \ifcase\month\or
1337 1338 1339
  Ιανουαρίου\or Φεβρουαρίου\or Μαρτίου\or Απριλίου\or
  Μαΐου\or Ιουνίου\or Ιουλίου\or Αυγούστου\or
  Σεπτεμβρίου\or Οκτωβρίου\or Νοεμβρίου\or Δεκεμβρίου\fi
1340
  \space\number\year}
1341
\else
1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353
\def\contentsname{Contents}
\def\listfigurename{List of Figures}
\def\listtablename{List of Tables}
\def\bibname{Bibliography}
\def\refname{References}
\def\indexname{Index}
\def\figurename{Figure}
\def\tablename{Table}
\def\chaptername{Chapter}
\def\appendixname{Appendix}
\def\partname{Part}
\def\abstractname{Abstract}
1354
\def\draftname{Preliminary draft}
1355 1356 1357 1358 1359 1360 1361 1362
\def\prefacename{Preface}
\def\keywordsname{Keywords}
\def\committeename{Counselling committee}
\def\supervisorname{Supervisor}
\def\committeemembersname{Members}
\def\pagesname{Pages}
\def\urlname{URL}
\def\ftpname{FTP}
1363
\def\today{\ifcase\month\or
1364 1365 1366
  January\or February\or March\or April\or
  May\or June\or July\or August\or September\or
  October\or November\or December\fi
1367
  \space\number\day, \number\year}
1368
\fi
1369 1370 1371 1372 1373 1374
\def\abstractnamegr{Περίληψη}
\def\abstractnameen{Abstract}
\def\keywordsnamegr{Λέξεις κλειδιά}
\def\keywordsnameen{Key words}
\def\acknowledgementsnamegr{Ευχαριστίες}
\def\acknowledgementsnameen{Acknowledgements}
1375
\chapapp{\chaptername}                   % Print ``Chapter''
1376 1377 1378
\def\figureshortname{\figurename}        % I don't like short names
\def\tableshortname{\tablename}

1379
\if@greek
1380 1381 1382 1383 1384 1385 1386
  \uccode`ά=`Α%
  \uccode`έ=`Ε%
  \uccode`ή=`Η%
  \uccode`ί=`Ι%
  \uccode`ό=`Ο%
  \uccode`ύ=`Υ%
  \uccode`ώ=`Ω%
1387
  %
1388 1389 1390 1391 1392 1393 1394
  \uccode`Ά=`Α%
  \uccode`Έ=`Ε%
  \uccode`Ή=`Η%
  \uccode`Ί=`Ι%
  \uccode`Ό=`Ο%
  \uccode`Ύ=`Υ%
  \uccode`Ώ=`Ω%
1395
  %
1396 1397 1398 1399
  \uccode`ϊ=`Ϊ%
  \uccode`ϋ=`Ϋ%
  \uccode`ΐ=`Ϊ%
  \uccode`ΰ=`Ϋ%
1400
  %
1401
  \uccode`ς=`Σ%
1402 1403
\fi

1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415
\setlength\columnsep{10\p@}
\setlength\columnseprule{0\p@}
\iffinal
  \pagestyle{headings}
\else
  \pagestyle{draft}
\fi
\pagenumbering{arabic}
\if@twoside
\else
  \raggedbottom
\fi
1416
\onecolumn
1417

1418 1419 1420 1421 1422 1423
% Page setup
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Formulae for calculating the layout parameters:
%     odd side margin = IM - 1 in
%    even side margin = OM - 1 in
%          top margin = TM - 1 in
1424 1425 1426

                                         % Paper width
                                         % --------------------------------
1427
\oddsidemargin    4.6 mm                 % Margins: inside  =    30 mm (IM)
1428
\evensidemargin  -0.4 mm                 %          outside =    25 mm (OM)
1429
\textwidth      155.0 mm                 %        text body =   155 mm (TB)
1430 1431 1432 1433 1434
                                         % --------------------------------
                                         %            total =   210 mm
                                         %
                                         % Paper height
                                         % --------------------------------
1435 1436 1437
\topmargin       -0.4 mm                 % Margins:     top =    25 mm (TM)
\textheight     247.0 mm                 %           bottom =    25 mm (BM)
                                         %        text body =   247 mm (TH)
1438 1439 1440 1441 1442 1443
                                         % ------------------------------
                                         %            total =   297 mm

\advance \topmargin by -\headheight
\advance \topmargin by -\headsep

1444 1445
% More environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1446 1447 1448 1449
\newenvironment{keywordsgr}{\section*{\keywordsnamegr}%
  \noindent\ignorespaces}{}
\newenvironment{keywordsen}{\section*{\keywordsnameen}%
  \noindent\ignorespaces}{}
1450
\newcommand{\footacknowledgement}[1]{%
1451
  \let\footnotesize\small%
1452 1453
  \let\@tmp@makefntext\@makefntext%
  \long\def\@makefntext##1{%
1454 1455
    \parindent 1em%
    \noindent##1}%
1456 1457 1458
  \footnotetext{#1}%
  \let\@makefntext\@tmp@makefntext%
}
1459
\newenvironment{acknowledgementsgr}{%
1460
  \begin{greek}%
1461 1462
  \chapter*{\acknowledgementsnamegr}%
  \addcontentsline{toc}{chapter}{\acknowledgementsnamegr}%
1463 1464
  \begingroup%
  \let\footnoterule\relax%
1465
  \noindent\ignorespaces%
1466
}{%
1467 1468
  \begin{flushright}
    \@author, \\[6pt]
1469
    \@locationgr, \@date@defense
1470
  \end{flushright}
1471
  \ifx\@TRnumber\@empty\else
1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483
  \footacknowledgement{%
    Η εργασία αυτή είναι επίσης διαθέσιμη ως Τεχνική Αναφορά
    \@TRnumber, Εθνικό Μετσόβιο Πολυτεχνείο, Σχολή Ηλεκτρολόγων
    Μηχανικών και Μηχανικών Υπολογιστών, Τομέας Τεχνολογίας
    Πληροφορικής και Υπολογιστών, Εργαστήριο Τεχνολογίας
    Λογισμικού, \@date.
    \\[6pt]
    \begin{tabular}{@{}ll@{}}
    URL: & \texttt{http://www.softlab.ntua.gr/techrep/} \\
    FTP: & \texttt{ftp://ftp.softlab.ntua.gr/pub/techrep/}
    \end{tabular}
  }
1484
  \fi
1485 1486
  \newpage%
  \endgroup%
1487
  \end{greek}%
1488
}
1489
\newenvironment{acknowledgementsen}{%
1490
  \begin{english}%
1491 1492 1493 1494
  \chapter*{\acknowledgementsnameen}%
  \addcontentsline{toc}{chapter}{\acknowledgementsnameen}%
  \begingroup%
  \let\footnoterule\relax%
1495
  \noindent\ignorespaces%
1496 1497 1498
}{%
  \begin{flushright}
    \@authoren, \\[6pt]
1499
    \@locationen, \@date@defenseen
1500
  \end{flushright}
1501
  \ifx\@TRnumber\@empty\else
1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513
  \footacknowledgement{%
    This thesis is also available as Technical Report \@TRnumber,
    National Technical University of Athens,
    School of Electrical and Computer Engineering,
    Department of Computer Science,
    Software Engineering Laboratory, \@dateen.
    \\[6pt]
    \begin{tabular}{@{}ll@{}}
    URL: & \texttt{http://www.softlab.ntua.gr/techrep/} \\
    FTP: & \texttt{ftp://ftp.softlab.ntua.gr/pub/techrep/}
    \end{tabular}
  }
1514
  \fi
1515 1516
  \newpage%
  \endgroup%
1517
  \end{english}%
1518
}
1519

1520 1521
% Font customization
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1522 1523 1524 1525 1526 1527
\institutionfont{\LARGE\scshape}
\schoolfont{\Large\scshape}
\departmentfont{\Large\scshape}
\titlefont{\LARGE\bfseries}
\authorfont{\Large\bfseries}
\thesistypefont{\Large}
1528 1529
\def\st@font{\large}

1530 1531
% Miscellaneous stuff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1532 1533 1534

   % Empty pages should be really empty (not have headings)
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
1535
    \thispagestyle{empty}\hbox{}\newpage\fi\fi}
1536 1537 1538

   % This saves the underfull boxes resulting from equations that
   % are typeset in just one page
1539
%\raggedbottom
1540 1541 1542 1543 1544

   % This typesets footnotes always at the very bottom of the page
\renewcommand\footnoterule{\vfill\kern-3\p@%
  \hrule width .4\columnwidth\kern 2.6\p@}

1545 1546 1547 1548
% Macros for signatures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\signature[3][0pt]{\makebox[40mm]{\tiny\dotfill}\\[6pt]#2\\[#1]#3}

1549 1550
% More names
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1551

1552
\def\@author@accusative{τον συγγραφέα}
1553

1554
\if@greek
1555
\institution{Εθνικό Μετσόβιο Πολυτεχνείο}
1556
\institutiongen{Εθνικού Μετσόβιου Πολυτεχνείου}
1557 1558
\school{Σχολή Ηλεκτρολόγων Μηχανικών \\ και Μηχανικών Υπολογιστών}
\department{Τομέας Τεχνολογίας Πληροφορικής \\ και Υπολογιστών}
1559 1560 1561 1562 1563 1564 1565 1566 1567 1568
\ifcase\c@type
  \or\thesistype{Διπλωματική Εργασία}
  \or\thesistype{Μεταπτυχιακή Διπλωματική Εργασία}
     \institution{Εθνικό και Καποδιστριακό Πανεπιστήμιο Αθηνών}
     \institutiongen{Εθνικού και Καποδιστριακού Πανεπιστημίου Αθηνών}
     \school{Τμήμα Μαθηματικών}
     \department{Μεταπτυχιακό Πρόγραμμα στη Λογική και Θεωρία Αλγορίθμων \\
       και Υπολογισμού}
  \or\thesistype{Διδακτορική Διατριβή}
\fi
1569
\else
1570 1571 1572
\institution{National Technical University of Athens}
\school{School of Electrical and Computer Engineering}
\department{Department of Computer Science}
1573 1574 1575 1576 1577 1578 1579 1580 1581
\ifcase\c@type
  \or\thesistype{Diploma Project}
  \or\thesistype{M.Sc. Thesis}
     \institution{National and Kapodistrian University of Athens}
     \school{Department of Mathematics}
     \department{Graduate Program in Logic and Theory of 
       Algorithms and Computation}
  \or\thesistype{Doctoral Dissertation}
\fi
1582 1583 1584
\fi
\trurl{http://www.softlab.ntua.gr/techrep/}
\trftp{ftp://ftp.softlab.ntua.gr/pub/techrep/}
1585 1586

\uppertitleback{%
1587 1588 1589
  \vspace*{4cm}%
  {\large%
  \signature[6pt]{%
1590
    \textbf{\uppercase{\if@greek\@author\else\@authoren\fi}}
1591
  }{%
1592
    \@authorsig
1593
  }}
1594
}
1595
\lowertitleback{%
1596
  {\large
1597
\if@greek
1598
  Copyright \copyright\ \ \@author, \@date@year.\\
1599
  Με επιφύλαξη παντός δικαιώματος.  All rights reserved.\\[12pt]
1600
\else
1601
  Copyright \copyright\ \ \@authoren, \@date@year.\\
1602 1603 1604
  All rights reserved.\\[12pt]
\fi
  }
1605

1606
\if@greek
1607 1608 1609 1610 1611 1612 1613
  Απαγορεύεται η αντιγραφή, αποθήκευση και διανομή της παρούσας
  εργασίας, εξ ολοκλήρου ή τμήματος αυτής, για εμπορικό σκοπό.
  Επιτρέπεται η ανατύπωση, αποθήκευση και διανομή για σκοπό μη
  κερδοσκοπικό, εκπαιδευτικής ή ερευνητικής φύσης, υπό την προϋπόθεση
  να αναφέρεται η πηγή προέλευσης και να διατηρείται το παρόν μήνυμα.
  Ερωτήματα που αφορούν τη χρήση της εργασίας για κερδοσκοπικό σκοπό
  πρέπει να απευθύνονται προς τον συγγραφέα.
1614
\medskip\par
1615 1616 1617
  Οι απόψεις και τα συμπεράσματα που περιέχονται σε αυτό το
  έγγραφο εκφράζουν \@author@accusative{} και δεν πρέπει να
  ερμηνευθεί ότι αντιπροσωπεύουν τις επίσημες θέσεις του
1618
  \@institution@gen.
1619 1620 1621 1622 1623 1624 1625
\else
  This work is copyright and may not be reproduced, stored nor
  distributed in whole or in part for commercial purposes.  Permission
  is hereby granted to reproduce, store and distribute this work for
  non-propfit, educational and research purposes, provided that the
  source is acknowledged and the present copyright message is retained.
  Enquiries regarding use for profit should be directed to the author.
1626 1627 1628
\medskip\par
  The views and conclusions contained in this document are those
  of the author and should not be interpreted as representing the
1629
  official policies, either expressed or implied, of the \@institution.
1630
\fi
1631
  \vspace*{2cm}
1632
}
1633
\def\cr@comma{, }
1634 1635 1636 1637 1638

\let\nickie@oldenddocument\enddocument
\def\enddocument{\label{pg:last-document}\nickie@oldenddocument}

\endinput