Parametric institution, TR number and other stuff. -- nickie

parent 139fbd09
%% %******************************************************************************
%% This is file `thesis.cls', % CVS/RCS version:
%% generated with the docstrip utility. % $Id: softlab-thesis.cls,v 1.2 2002-10-28 17:01:04 nickie Exp $
%% %******************************************************************************
%% The original source files were: % LaTeX file : softlab-thesis.cls
%% % Written by : Nikolaos S. Papaspyrou
%% thesis.dtx (with options: `thesis') % Date : October 17, 2002
%% % Revised : October 22, 2002
%% Copyright (C) 1991, 1996 by Wenzel Matiaske, mati1831@perform.ww.tu-berlin.de %
%% % Description : A uniform template for diploma projects and doctoral
%% You are not allowed to distribute this file without the % dissertations at the Software Engineering Laboratory,
%% original source thesis.dtx. For distribution of the % Department of Electrical and Computer Engineering,
%% sources see the copyright notice in the file thesis.dtx. % National Technical University of Athens.
%% %
% Notes : This package is based on `thesis.cls', written by
% Wenzel Matiaske (mati1831@perform.ww.tu-berlin.de)
% Copyright (C) 1991, 1996. Version 1.0g (1996/25/01).
% Package information
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\filename{softlab-thesis} \def\filename{softlab-thesis}
\def\fileversion{1.0g} \def\fileversion{1.0a}
\def\filedate{1996/25/01} \def\filedate{2002/10/28}
\def\docdate{1995/25/01}
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesClass{softlab-thesis}[\filedate\space\fileversion\space% \ProvidesClass{softlab-thesis}[\filedate\space\fileversion\space%
LaTeX document class (wm).] LaTeX document class (nsp).]
% Options and related stuff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\@ptsize{} \newcommand\@ptsize{}
\newif\if@restonecol \newif\if@restonecol
\newif\if@titlepage \newif\if@titlepage
...@@ -54,6 +62,9 @@ ...@@ -54,6 +62,9 @@
\DeclareOption{12pt}{\renewcommand\@ptsize{2}} \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse} \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue} \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
\newif\if@greek \@greekfalse
\DeclareOption{greek}{\@greektrue}
\DeclareOption{english}{\@greekfalse}
\newcount\hours \newcount\minutes \newcount\hours \newcount\minutes
\def\SetTime{\hours=\time \def\SetTime{\hours=\time
\global\divide\hours by 60 \global\divide\hours by 60
...@@ -203,9 +214,12 @@ ...@@ -203,9 +214,12 @@
\newif\if@chapterbib \@chapterbibfalse \newif\if@chapterbib \@chapterbibfalse
\DeclareOption{chapterbib}{\@chapterbibtrue} \DeclareOption{chapterbib}{\@chapterbibtrue}
\ExecuteOptions{a4paper,11pt,twoside,onecolumn,final,openright,% \ExecuteOptions{a4paper,11pt,twoside,onecolumn,final,openright,%
bold,nocenter,noupper,headcount} bold,nocenter,noupper,headcount,greek}
\ProcessOptions* \ProcessOptions*
% Miscellaneous settings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{bk1\@ptsize.clo} \input{bk1\@ptsize.clo}
\setlength\lineskip{1\p@} \setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@} \setlength\normallineskip{1\p@}
...@@ -222,17 +236,26 @@ ...@@ -222,17 +236,26 @@
\@lowpenalty 51 \@lowpenalty 51
\@medpenalty 151 \@medpenalty 151
\@highpenalty 301 \@highpenalty 301
\setcounter{topnumber}{2} \setcounter{topnumber}{3}
\renewcommand\topfraction{.7} \renewcommand\topfraction{.8}
\setcounter{bottomnumber}{1} \setcounter{bottomnumber}{2}
\renewcommand\bottomfraction{.3} \renewcommand\bottomfraction{.8}
\setcounter{totalnumber}{3} \setcounter{totalnumber}{5}
\renewcommand\textfraction{.2} \renewcommand\textfraction{.2}
\renewcommand\floatpagefraction{.5} \renewcommand\floatpagefraction{.8}
\setcounter{dbltopnumber}{2} \setcounter{dbltopnumber}{2}
\renewcommand\dbltopfraction{.7} \renewcommand\dbltopfraction{.8}
\renewcommand\dblfloatpagefraction{.5} \renewcommand\dblfloatpagefraction{.8}
\def\e@skip{\h@font{\phantom{y}}} \def\e@skip{\h@font{\phantom{y}}}
% Required packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{a4}
\RequirePackage{graphicx}
\RequirePackage{dates}
% Headings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\if@twoside \if@twoside
\def\ps@headings{ \def\ps@headings{
\let\@oddfoot\@empty\let\@evenfoot\@empty \let\@oddfoot\@empty\let\@evenfoot\@empty
...@@ -325,6 +348,11 @@ ...@@ -325,6 +348,11 @@
\let\@oddfoot\@empty\let\@evenfoot\@empty \let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@oddhead{\hfill\raise\headheight\@crosshairs} \def\@oddhead{\hfill\raise\headheight\@crosshairs}
\let\@evenhead\@oddhead}} \let\@evenhead\@oddhead}}
% Title page and front matter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@supervisor{} \def\supervisor#1{\gdef\@supervisor{#1}}
\def\@committeemembers{} \def\committeemembers#1{\gdef\@committeemembers{#1}}
\def\@subtitle{} \def\subtitle#1{\gdef\@subtitle{#1}} \def\@subtitle{} \def\subtitle#1{\gdef\@subtitle{#1}}
\def\@translator{} \def\translator#1{\gdef\@translator{#1}} \def\@translator{} \def\translator#1{\gdef\@translator{#1}}
\def\@institution{} \def\institution#1{\gdef\@institution{#1}} \def\@institution{} \def\institution#1{\gdef\@institution{#1}}
...@@ -332,75 +360,117 @@ ...@@ -332,75 +360,117 @@
\def\@uppertitleback{} \long\def\uppertitleback#1{\def\@uppertitleback{#1}} \def\@uppertitleback{} \long\def\uppertitleback#1{\def\@uppertitleback{#1}}
\def\@middletitleback{} \long\def\middletitleback#1{\def\@middletitleback{#1}} \def\@middletitleback{} \long\def\middletitleback#1{\def\@middletitleback{#1}}
\def\@lowertitleback{} \long\def\lowertitleback#1{\def\@lowertitleback{#1}} \def\@lowertitleback{} \long\def\lowertitleback#1{\def\@lowertitleback{#1}}
\def\url#1{\gdef\@url{\texttt{#1}}}
\def\TRnumber#1{\gdef\@TRnumber{#1}}
\def\@trurl{} \def\trurl#1{\gdef\@trurl{\texttt{#1}}}
\def\@trftp{} \def\trftp#1{\gdef\@trftp{\texttt{#1}}}
\def\new@tpage{\newpage\thispagestyle{empty}\null} \def\new@tpage{\newpage\thispagestyle{empty}\null}
\def\and{\end{tabular}\hskip 1em plus.17fil
\if@center \def\@author@and{\end{tabular}\hskip 1em plus.17fil
\begin{tabular}[t]{c} \if@center
\else \begin{tabular}[t]{c}
\begin{tabular}[t]{@{}l@{}} \else
\fi} \begin{tabular}[t]{@{}l@{}}
\fi}
\def\@committeemembers@and{\\ &}
\let\and\relax
\def\maketitle{% \def\maketitle{%
\begin{titlepage} \begin{titlepage}
\let\footnotesize\small \let\footnotesize\small
\let\footnoterule\relax \let\footnoterule\relax
\def\thefootnote{\fnsymbol{footnote}} \def\thefootnote{\fnsymbol{footnote}}
\if@twoside \new@tpage
\new@tpage %
\begin{raggedright} \begin{minipage}{2.5cm}
{\t@font \@title \par}\vskip 1em \includegraphics[width=2.5cm]{pyrforos}%
{\st@font \@subtitle \par}\vspace{50pt} \end{minipage}
{\a@font \lineskip 1.25em \hspace{0.5cm}
\begin{tabular}[t]{@{}l@{}} \begin{minipage}{12cm}
\@author \renewcommand\baselinestretch{1.2}\normalsize%
\end{tabular}\par} \in@font\@institution
\vfill \end{minipage}
{\in@font\@institution\par} %
\end{raggedright} \vfill
\new@tpage \new@tpage %
{\ss@font\@title}\par \begin{center}
{\sss@font\@subtitle} {\t@font\@title}
\new@tpage \end{center}
\fi \ifx\@subtitle\@empty\else
\new@tpage \vspace{1cm}
\begin{center} \begin{center}
{\t@font\@title \par}\vskip 1em {\st@font\@subtitle}
{\st@font\@subtitle \par} \end{center}
\vspace{50pt} \fi
{\a@font \lineskip 1.25em %
\begin{tabular}[t]{c} \vspace{1cm}
\@author %
\end{tabular} \par }\vfil \begin{center}
{\tr@font \@translator \par} \let\old@and\and%
\vfil \let\and\@author@and%
{\st@font \@date \par} {\a@font%
\vskip 2em \if@center%
{\in@font\@institution \par} \begin{tabular}[t]{c}%
\end{center} \else%
\par \@thanks \begin{tabular}[t]{@{}l@{}}%
\if@twoside \new@tpage \fi%
\noindent\begin{minipage}[t]{\textwidth} \@author%
\@uppertitleback \end{tabular}}%
\end{minipage}\par \let\and\old@and%
\vfill \end{center}
\noindent\begin{minipage}[t]{\textwidth} %
\@middletitleback \vfill
\end{minipage}\par %
\vfill \begin{minipage}{4.5cm}
\noindent\begin{minipage}[b]{\textwidth} \includegraphics{softlab-logo}%
\@lowertitleback \end{minipage}
\end{minipage} \hspace{1cm}
\fi \begin{minipage}{9.5cm}
\ifx\@dedication\@empty\else \new@tpage \renewcommand\baselinestretch{1.2}\normalsize%
{\centering \Large \@dedication \par} \tr@font\@translator \\[0.5em]
\fi \st@font%
\if@twoside \new@tpage \fi \let\old@and\and%
\end{titlepage} \let\and\@committeemembers@and%
\def\thefootnote{\arabic{footnote}} \begin{tabular}{@{}ll@{}}
\setcounter{footnote}{0} \multicolumn{2}{@{}l@{}}{\underline{\committeename}:} \\[0.25em]
\if@thema\else\let\thanks\relax\fi \supervisorname: & \@supervisor \\
\gdef\@thanks{}\gdef\@author{}\gdef\@translator{}\gdef\@institution{} \committeemembersname: & \@committeemembers
\gdef\@uppertitleback{}\gdef\@lowertitleback{}\gdef\@dedication{}% \end{tabular}%
\gdef\@title{}\gdef\@subtitle{}\let\maketitle\relax} \let\and\old@and%
\end{minipage}
\vspace{2cm}
\begin{center}
\st@font \@date
\end{center}
%
\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
\end{titlepage}
\def\thefootnote{\arabic{footnote}}
\setcounter{footnote}{0}
\if@thema\else\let\thanks\relax\fi
\gdef\@thanks{}\gdef\@author{}\gdef\@translator{}\gdef\@institution{}%
\gdef\@supervisor{}\gdef\@committeemembers{}%
\gdef\@uppertitleback{}\gdef\@lowertitleback{}\gdef\@dedication{}%
\gdef\@title{}\gdef\@subtitle{}\let\maketitle\relax%
}
\def\abstract{%\titlepage \def\abstract{%\titlepage
\addcontentsline{toc}{chapter}{\abstractname}% \addcontentsline{toc}{chapter}{\abstractname}%
\chapter*{\abstractname\@mkboth{\abstractname}{\abstractname}}} \chapter*{\abstractname\@mkboth{\abstractname}{\abstractname}}}
...@@ -425,6 +495,23 @@ ...@@ -425,6 +495,23 @@
\def\endchapterabstract{\par\bigskip} \def\endchapterabstract{\par\bigskip}
\fi \fi
\fi \fi
\newenvironment{titlepage}
{%
\cleardoublepage
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse\newpage
\fi
\thispagestyle{empty}%
\if@compatibility
\setcounter{page}{0}
\fi}%
{\if@restonecol\twocolumn \else \newpage \fi
}
% Sectioning
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\chaptermark}[1]{} \newcommand*{\chaptermark}[1]{}
\setcounter{secnumdepth}{2} \setcounter{secnumdepth}{2}
\newcounter {part} \newcounter {part}
...@@ -690,6 +777,20 @@ ...@@ -690,6 +777,20 @@
{3.25ex \@plus1ex \@minus .2ex}% {3.25ex \@plus1ex \@minus .2ex}%
{-1em}% {-1em}%
{\reset@font\spg@font}} {\reset@font\spg@font}}
\newcommand\appendix{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\ifx\@chapapp\@empty
\def\@addappendixtocontents{\addcontentsline{toc}{part}{\appendixname}}
\part*{\appendixname\@mkboth{\appendixname}{\appendixname}%%
\@addappendixtocontents}
\else
\renewcommand{\@chapapp}{\appendixname}%
\fi
\renewcommand{\thechapter}{\Alph{chapter}}}
% Space lengths
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\if@twocolumn \if@twocolumn
\setlength\leftmargini {2em} \setlength\leftmargini {2em}
\else \else
...@@ -748,6 +849,9 @@ ...@@ -748,6 +849,9 @@
\newcommand\labelitemiii{\bfseries --} \newcommand\labelitemiii{\bfseries --}
\newcommand\labelitemiv{\bfseries --} \newcommand\labelitemiv{\bfseries --}
\fi \fi
% Some new environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{description} \newenvironment{description}
{\list{}{\labelwidth\z@ \itemindent-\leftmargin {\list{}{\labelwidth\z@ \itemindent-\leftmargin
\let\makelabel\descriptionlabel}} \let\makelabel\descriptionlabel}}
...@@ -792,31 +896,9 @@ ...@@ -792,31 +896,9 @@
\setlength{\leftmargin}{\labelwidth}% \setlength{\leftmargin}{\labelwidth}%
\addtolength{\leftmargin}{\labelsep}}}% \addtolength{\leftmargin}{\labelsep}}}%
{\end{list}} {\end{list}}
\newenvironment{titlepage}
{% % More lengths and settings
\cleardoublepage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse\newpage
\fi
\thispagestyle{empty}%
\if@compatibility
\setcounter{page}{0}
\fi}%
{\if@restonecol\twocolumn \else \newpage \fi
}
\newcommand\appendix{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\ifx\@chapapp\@empty
\def\@addappendixtocontents{\addcontentsline{toc}{part}{\appendixname}}
\part*{\appendixname\@mkboth{\appendixname}{\appendixname}%%
\@addappendixtocontents}
\else
\renewcommand{\@chapapp}{\appendixname}%
\fi
\renewcommand{\thechapter}{\Alph{chapter}}}
\setlength\arraycolsep{5\p@} \setlength\arraycolsep{5\p@}
\setlength\tabcolsep{6\p@} \setlength\tabcolsep{6\p@}
\setlength\arrayrulewidth{.4\p@} \setlength\arrayrulewidth{.4\p@}
...@@ -843,6 +925,9 @@ ...@@ -843,6 +925,9 @@
\def\seealso#1{\mbox{}% \def\seealso#1{\mbox{}%
\marginpar[\raggedleft$\rightarrow$ \small #1]% \marginpar[\raggedleft$\rightarrow$ \small #1]%
{\raggedright\small #1 $\leftarrow$}\ignorespaces} {\raggedright\small #1 $\leftarrow$}\ignorespaces}
% Floating environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{figure}[chapter] \newcounter{figure}[chapter]
\renewcommand{\thefigure}{\thechapter.\@arabic\c@figure} \renewcommand{\thefigure}{\thechapter.\@arabic\c@figure}
\def\fps@figure{tbp} \def\fps@figure{tbp}
...@@ -910,6 +995,8 @@ ...@@ -910,6 +995,8 @@
\newcommand{\@dotsep}{4.5} \newcommand{\@dotsep}{4.5}
\setcounter{tocdepth}{2} \setcounter{tocdepth}{2}
% Table of contents, etc.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\tableofcontents}{% \newcommand{\tableofcontents}{%
\if@twocolumn \if@twocolumn
\@restonecoltrue\onecolumn \@restonecoltrue\onecolumn
...@@ -989,6 +1076,9 @@ ...@@ -989,6 +1076,9 @@
\if@restonecol\twocolumn\fi \if@restonecol\twocolumn\fi
} }
\let\l@table\l@figure \let\l@table\l@figure
% Bibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newdimen\bibindent \newdimen\bibindent
\bibindent=1.5em \bibindent=1.5em
\newenvironment{thebibliography}[1] \newenvironment{thebibliography}[1]
...@@ -1051,25 +1141,32 @@ ...@@ -1051,25 +1141,32 @@
\let\@auxout=\@mainaux\else\@nameuse{cp@#1} \let\@auxout=\@mainaux\else\@nameuse{cp@#1}
\fi} \fi}
\fi \fi
\newenvironment{theindex}
{\if@twocolumn % Index
\@restonecolfalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\else \newcommand{\nindexbefore}{}
\@restonecoltrue \newcommand{\nindexafter}{}
\fi \newenvironment{theindex}{%
\columnseprule \z@ \if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi%
\columnsep 35\p@ \columnseprule \z@%
\twocolumn[\@makeschapterhead{\indexname}]% \columnsep 35\p@%
\@mkboth{\indexname}% \twocolumn[\@makeschapterhead{\indexname}]%
{\indexname}% \nindexbefore%
\thispagestyle{plain}\parindent\z@ \@mkboth{\indexname}{\indexname}%
\parskip\z@ \@plus .3\p@\relax \thispagestyle{empty}\parindent\z@%
\let\item\@idxitem\index@size} \parskip\z@ \@plus .3\p@\relax%
{\if@restonecol\onecolumn\else\clearpage\fi} \let\item\@idxitem\index@size%
}{%
\nindexafter%
\if@restonecol\onecolumn\else\clearpage\fi%
}
\newcommand{\@idxitem} {\par\hangindent 40\p@} \newcommand{\@idxitem} {\par\hangindent 40\p@}
\newcommand{\subitem} {\par\hangindent 40\p@ \hspace*{20\p@}} \newcommand{\subitem} {\par\hangindent 40\p@ \hspace*{20\p@}}
\newcommand{\subsubitem}{\par\hangindent 40\p@ \hspace*{30\p@}} \newcommand{\subsubitem}{\par\hangindent 40\p@ \hspace*{30\p@}}
\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax} \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
% Footnotes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand\footnoterule{% \renewcommand\footnoterule{%
\kern-3\p@ \kern-3\p@
\hrule width .4\columnwidth \hrule width .4\columnwidth
...@@ -1086,6 +1183,38 @@ ...@@ -1086,6 +1183,38 @@
\noindent \noindent
\hbox to 1.8em{\hss\@makefnmark\kern 0.25em}#1} \hbox to 1.8em{\hss\@makefnmark\kern 0.25em}#1}
\fi \fi
% Names
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\if@greek
\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\keywordsname{ËÝîåéò êëåéäéÜ}
\def\acknowledgementsname{Åõ÷áñéóôßåò}
\def\committeename{ÓõìâïõëåõôéêÞ åðéôñïðÞ}
\def\supervisorname{ÅðéâëÝðùí}
\def\committeemembersname{ÌÝëç}
\def\pagesname{Óåëßäåò}
\def\urlname{URL}
\def\ftpname{FTP}
\newcommand{\today}{\space\number\day \ifcase\month\or
Éáíïõáñßïõ\or Öåâñïõáñßïõ\or Ìáñôßïõ\or Áðñéëßïõ\or
ÌáÀïõ\or Éïõíßïõ\or Éïõëßïõ\or Áõãïýóôïõ\or
Óåðôåìâñßïõ\or Ïêôùâñßïõ\or Íïåìâñßïõ\or Äåêåìâñßïõ\fi
\number\year}
\else
\def\contentsname{Contents} \def\contentsname{Contents}
\def\listfigurename{List of Figures} \def\listfigurename{List of Figures}
\def\listtablename{List of Tables} \def\listtablename{List of Tables}
...@@ -1099,13 +1228,25 @@ ...@@ -1099,13 +1228,25 @@
\def\partname{Part} \def\partname{Part}
\def\abstractname{Abstract} \def\abstractname{Abstract}
\def\draftname{preliminary draft} \def\draftname{preliminary draft}
\def\figureshortname{Fig.} % <-- thesis \def\prefacename{Preface}
\def\tableshortname{Tab.} % <-- thesis \def\keywordsname{Keywords}
\def\prefacename{Preface} % <-- thesis \def\acknowledgementsname{Acknowledgements}
\def\committeename{Counselling committee}
\def\supervisorname{Supervisor}
\def\committeemembersname{Members}
\def\pagesname{Pages}
\def\urlname{URL}
\def\ftpname{FTP}
\newcommand{\today}{\ifcase\month\or \newcommand{\today}{\ifcase\month\or
January\or February\or March\or April\or May\or June\or January\or February\or March\or April\or
July\or August\or September\or October\or November\or December\fi May\or June\or July\or August\or September\or
October\or November\or December\fi
\space\number\day, \number\year} \space\number\day, \number\year}
\fi
\chapapp{\chaptername} % Print ``Chapter'' (?)
\def\figureshortname{\figurename} % I don't like short names
\def\tableshortname{\tablename}
\setlength\columnsep{10\p@} \setlength\columnsep{10\p@}
\setlength\columnseprule{0\p@} \setlength\columnseprule{0\p@}
\iffinal \iffinal
...@@ -1126,22 +1267,12 @@ ...@@ -1126,22 +1267,12 @@
\onecolumn \onecolumn
\fi \fi
% Page setup
%% Customization for SoftLab -- nickie %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Formulae for calculating the layout parameters:
\usepackage{a4} % odd side margin = IM - 1 in
\usepackage{graphicx} % even side margin = OM - 1 in
% top margin = TM - 1 in
%%% Layout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% 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
% Paper width % Paper width
% -------------------------------- % --------------------------------
...@@ -1162,36 +1293,9 @@ ...@@ -1162,36 +1293,9 @@
\advance \topmargin by -\headheight \advance \topmargin by -\headheight
\advance \topmargin by -\headsep \advance \topmargin by -\headsep
% Let us allow bigger floats % More environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\topfraction}{0.8} \newenvironment{keywords}{\section*{\keywordsname}}{}
\renewcommand{\bottomfraction}{0.8}
\renewcommand{\floatpagefraction}{0.8}
% Other parameters
\setlength{\parskip}{6pt}
%%% For the thesis class
\def\contentsname{} % Declare all greek titles again
\def\listfigurename{} % (thesis class has changed them)
\def\listtablename{}
\def\bibname{}
\def\figurename{}
\def\tablename{}
\def\chaptername{}
\def\appendixname{}
\def\partname{}
\def\abstractname{}
\chapapp{\chaptername} % Print ``Chapter''
\def\figureshortname{\figurename} % I don't like short names
\def\tableshortname{\tablename}
\newenvironment{keywords}{\section*{ }}{}
\newcommand{\footacknowledgement}[1]{% \newcommand{\footacknowledgement}[1]{%
\let\@tmp@makefntext\@makefntext% \let\@tmp@makefntext\@makefntext%
\long\def\@makefntext##1{% \long\def\@makefntext##1{%
...@@ -1200,98 +1304,21 @@ ...@@ -1200,98 +1304,21 @@
\footnotetext{#1}% \footnotetext{#1}%
\let\@makefntext\@tmp@makefntext% \let\@makefntext\@tmp@makefntext%
} }
\newenvironment{acknowledgements}{%
\addcontentsline{toc}{chapter}{\acknowledgementsname}%
\chapter*{\acknowledgementsname}%
}{}
\def\maketitle{% % Font customization
\begin{titlepage} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\let\footnotesize\small
\let\footnoterule\relax
\def\thefootnote{\fnsymbol{footnote}}
\new@tpage
%
\begin{minipage}{2.5cm}
\includegraphics[width=2.5cm]{pyrforos}%
\end{minipage}
\hspace{0.5cm}
\begin{minipage}{12cm}
\renewcommand\baselinestretch{1.2}\normalsize%
\in@font\@institution
\end{minipage}
%
\vfill
%
\begin{center}
{\t@font\@title}
\end{center}
\ifx\@subtitle\@empty\else
\vspace{1cm}
\begin{center}
{\st@font\@subtitle}
\end{center}
\fi
%
\vspace{1cm}
%
\begin{center}
{\a@font\@author}
\end{center}
%
\vfill
%
\begin{minipage}{4.5cm}
\includegraphics{softlab-logo}%
\end{minipage}
\hspace{1cm}
\begin{minipage}{9.5cm}
\renewcommand\baselinestretch{1.2}\normalsize%
\tr@font\@translator \\[0.5em]
\st@font%
\begin{tabular}{@{}ll@{}}
\multicolumn{2}{@{}l@{}}{\underline{ :}} \\[0.25em]
: & , \\
: & , \\
& ,
\end{tabular}
\end{minipage}
\vspace{2cm}
\begin{center}
\st@font \@date
\end{center}
%
\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}
\ifx\@dedication\@empty\else \new@tpage
{\centering \Large \@dedication \par}
\if@twoside \new@tpage \fi
\fi
\end{titlepage}
\def\thefootnote{\arabic{footnote}}
\setcounter{footnote}{0}
\if@thema\else\let\thanks\relax\fi
\gdef\@thanks{}\gdef\@author{}\gdef\@translator{}\gdef\@institution{}
\gdef\@uppertitleback{}\gdef\@lowertitleback{}\gdef\@dedication{}%
\gdef\@title{}\gdef\@subtitle{}\let\maketitle\relax%
}
\def\t@font{\Huge\bfseries} \def\t@font{\Huge\bfseries}
\def\st@font{\large} \def\st@font{\large}
\def\a@font{\LARGE} \def\a@font{\LARGE}
\def\tr@font{\Large} \def\tr@font{\Large}
\def\in@font{\large\slshape} \def\in@font{\large\slshape}
%\def\t@font{\LARGE\bfseries}
%\def\st@font{\large}
%\def\a@font{\Large}
%\def\tr@font{\large}
%\def\in@font{\large\slshape}
% Miscellaneous stuff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Empty pages should be really empty (not have headings) % Empty pages should be really empty (not have headings)
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
...@@ -1306,39 +1333,33 @@ ...@@ -1306,39 +1333,33 @@
\renewcommand\footnoterule{\vfill\kern-3\p@% \renewcommand\footnoterule{\vfill\kern-3\p@%
\hrule width .4\columnwidth\kern 2.6\p@} \hrule width .4\columnwidth\kern 2.6\p@}
% This is a patch for the thesis package % Macros for dates
% The first page of the index should be empty too %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% [If the index package is used, it must be before it.] \def\aux@date@year{\dateread{\theyear}}
% The macros \nindexbefore and \nindexafter are used for \newcommand\date@year[1][\date]{\expandafter\aux@date@year #1 {}\relax{}}
% putting text before and after the index, on the same page.
\newcommand{\nindexbefore}{} % More names
\newcommand{\nindexafter}{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewenvironment{theindex}{%
\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi%
\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%
\if@restonecol\onecolumn\else\clearpage\fi%
}
\translator{% \if@greek
\translator{ÄéðëùìáôéêÞ Åñãáóßá}
\institution{%
Åèíéêü Ìåôóüâéï Ðïëõôå÷íåßï\\
ÔìÞìá Çëåêôñïëüãùí Ìç÷áíéêþí êáé Ìç÷áíéêþí Õðïëïãéóôþí\\
ÔïìÝáò Ôå÷íïëïãßáò ÐëçñïöïñéêÞò êáé Õðïëïãéóôþí\\
ÅñãáóôÞñéï Ôå÷íïëïãßáò Ëïãéóìéêïý%
} }
\else
\translator{Diploma Project}
\institution{% \institution{%
\\ National Technical University of Athens\\
\\ Department of Electrical and Computer Engineering\\
\\ Division of Computer Science\\
Software Engineering Laboratory%
} }
\fi
\trurl{http://www.softlab.ntua.gr/techrep/}
\trftp{ftp://ftp.softlab.ntua.gr/pub/techrep/}
\uppertitleback{% \uppertitleback{%
\begin{minipage}{2cm} \begin{minipage}{2cm}
...@@ -1350,7 +1371,8 @@ ...@@ -1350,7 +1371,8 @@
\end{minipage} \end{minipage}
} }
\middletitleback{% \middletitleback{%
Copyright \copyright\ \ \@author, 2002.\\ % !!! Copyright \copyright\ \ \@author, \date@year.\\
\if@greek
Ìå åðéöýëáîç ðáíôüò äéêáéþìáôïò.\\[12pt] Ìå åðéöýëáîç ðáíôüò äéêáéþìáôïò.\\[12pt]
Áðáãïñåýåôáé ç áíôéãñáöÞ, áðïèÞêåõóç êáé äéáíïìÞ ôçò ðáñïýóáò Áðáãïñåýåôáé ç áíôéãñáöÞ, áðïèÞêåõóç êáé äéáíïìÞ ôçò ðáñïýóáò
åñãáóßáò, åî ïëïêëÞñïõ Þ ôìÞìáôïò áõôÞò, ãéá åìðïñéêü óêïðü. åñãáóßáò, åî ïëïêëÞñïõ Þ ôìÞìáôïò áõôÞò, ãéá åìðïñéêü óêïðü.
...@@ -1359,41 +1381,52 @@ ...@@ -1359,41 +1381,52 @@
íá áíáöÝñåôáé ç ðçãÞ ðñïÝëåõóçò êáé íá äéáôçñåßôáé ôï ðáñüí ìÞíõìá. íá áíáöÝñåôáé ç ðçãÞ ðñïÝëåõóçò êáé íá äéáôçñåßôáé ôï ðáñüí ìÞíõìá.
ÅñùôÞìáôá ðïõ áöïñïýí ôç ÷ñÞóç ôçò åñãáóßáò ãéá êåñäïóêïðéêü óêïðü ÅñùôÞìáôá ðïõ áöïñïýí ôç ÷ñÞóç ôçò åñãáóßáò ãéá êåñäïóêïðéêü óêïðü
ðñÝðåé íá áðåõèýíïíôáé ðñïò ôïí óõããñáöÝá. ðñÝðåé íá áðåõèýíïíôáé ðñïò ôïí óõããñáöÝá.
\else
All rights reserved.\\[12pt]
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.
\fi
} }
\def\cr@comma{, }
\lowertitleback{% \lowertitleback{%
\let\cr@old\\%
. . \let\\\cr@comma%
. \\[24pt]
%
\@author, \@author,
\emph{\@title}, \emph{\@title},
\@translator, \@translator,
\@institution, \@institution,
\@date. \\[6pt] \@date.%
\let\\\cr@old%
\\[6pt]
\begin{tabular}{@{}ll@{}} \begin{tabular}{@{}ll@{}}
URL: & \texttt{http://www.softlab.ntua.gr/~{}vkoutav/} \\ % !!! \@ifundefined{@url}{}{%
Pages: & \pageref{pg:last-front} + \pageref{pg:last-document} \urlname: & \@url \\
}
\pagesname: & \pageref{pg:last-front} + \pageref{pg:last-document}
\end{tabular} \\[12pt] \end{tabular} \\[12pt]
: \@ifundefined{@TRnumber}{}{%
CSD-SW-TR-2-02, \let\cr@old\\%
, \let\\\cr@comma%
, \if@greek%
, ÄéáèÝóéìï åðßóçò ùò: Ôå÷íéêÞ ÁíáöïñÜ
\@date. \\[6pt] \else%
\begin{tabular}{@{}ll@{}} Also available as: Technical Report
URL: & \texttt{http://www.softlab.ntua.gr/techrep/} \\ \fi%
FTP: & \texttt{ftp://ftp.softlab.ntua.gr/pub/techrep/} \@TRnumber, \@institution, \@date.%
\end{tabular} \let\\\cr@old%
\\[6pt]
\begin{tabular}{@{}ll@{}}
\urlname: & \@trurl \\
\ftpname: & \@trftp
\end{tabular}
}
} }
\newenvironment{acknowledgements}{%
\addcontentsline{toc}{chapter}{}%
\chapter*{}%
}{}
\let\nickie@oldenddocument\enddocument \let\nickie@oldenddocument\enddocument
\def\enddocument{\label{pg:last-document}\nickie@oldenddocument} \def\enddocument{\label{pg:last-document}\nickie@oldenddocument}
\endinput \endinput
%%
%% End of file `thesis.cls'.
...@@ -12,14 +12,24 @@ ...@@ -12,14 +12,24 @@
\frontmatter \frontmatter
\title{% \title{%
Μεταγλωττιστής Calvin σε NFlint Μεταγλωττιστής Calvin σε NFlint%
} }
\author{% \author{%
Βασίλειος Μ.\ Κουταβάς Βασίλειος Μ.\ Κουταβάς%
} }
\date{% \date{%
Οκτώβριος 2002 Οκτώβριος 2002%
} }
\supervisor{%
Νικόλαος Παπασπύρου, Λέκτορας%
}
\committeemembers{%
Εμμανουήλ Σκορδαλάκης, Καθηγητής%
\and%
Ευστάθιος Ζάχος, Καθηγητής%
}
\url{http://www.softlab.ntua.gr/\textasciitilde vkoutav/}
\TRnumber{CSD-SW-TR-2-02}
\maketitle \maketitle
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment