%% %% This is file `phdthesis.cls', modified from standard %% Latex file 'report.cls' %% Pauli Tikkanen, Harri Saarnisaari 1996 %% Last modified 25.3.98 HS %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z %% Digits \0\1\2\3\4\5\6\7\8\9 %% Exclamation \! Double quote \" Hash (number) \# %% Dollar \$ Percent \% Ampersand \& %% Acute accent \' Left paren \( Right paren \) %% Asterisk \* Plus \+ Comma \, %% Minus \- Point \. Solidus \/ %% Colon \: Semicolon \; Less than \< %% Equals \= Greater than \> Question mark \? %% Commercial at \@ Left bracket \[ Backslash \\ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{phdthesis} [1998/03/27 PhD-thesis class in English for Acta Universitaes, Univ. of Oulu] \RequirePackage{ifthen} \newif\if@restonecol \newif\if@titlepage \@titlepagetrue \newif\if@openright \newif\if@openbib \@openbibfalse \newif\ifappendix\appendixfalse % appendix flag \newif\ifsuomi\suomifalse \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}{} \DeclareOption{suomi}{suomitrue} %%% 11 and 12pt not allowed %%% \DeclareOption{11pt}{\typeout{I'am using 10pt anyway}} \DeclareOption{12pt}{\typeout{I'am using 10pt anyway}} \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse} \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue} \DeclareOption{draft}{\setlength\overfullrule{5pt}} \DeclareOption{final}{\setlength\overfullrule{0pt}} \DeclareOption{titlepage}{\@titlepagetrue} \DeclareOption{notitlepage}{\@titlepagefalse} \DeclareOption{openright}{\@openrighttrue} \DeclareOption{openany}{\@openrightfalse} \DeclareOption{onecolumn}{\@twocolumnfalse} \DeclareOption{twocolumn}{\@twocolumntrue} \DeclareOption{leqno}{\input{leqno.clo}} \DeclareOption{fleqn}{\input{fleqn.clo}} \DeclareOption{openbib}{\@openbibtrue} %%% Necessary options %%% \ExecuteOptions{b5paper,10pt,oneside,onecolumn,final,openany} \ProcessOptions \if@compatibility \typeout{USE DOCUMENTCLASS instead of documentstyle to get desired result!} \fi %%% latex file size10.clo is included and modified %%% \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xpt\@xiipt \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ \abovedisplayshortskip \z@ \@plus3\p@ \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ \belowdisplayskip \abovedisplayskip \let\@listi\@listI} \normalsize \newcommand{\smallfig}{% \@setfontsize\small\@ixpt{10}%11 \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus2\p@ \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@ \def\@listi{\leftmargin\leftmargini \topsep 4\p@ \@plus2\p@ \@minus2\p@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip } \newcommand{\small}{% \@setfontsize\small\@ixpt{10} \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus2\p@ \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@ \def\@listi{\leftmargin\leftmargini \topsep 4\p@ \@plus2\p@ \@minus2\p@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip } \newcommand{\footnotesize}{% \@setfontsize\footnotesize\@viiipt{9.5}% \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus\p@ \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@ \def\@listi{\leftmargin\leftmargini \topsep 3\p@ \@plus\p@ \@minus\p@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip } \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt} \newcommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt} \newcommand{\large}{\@setfontsize\large\@xiipt{14}} \newcommand{\Large}{\@setfontsize\Large\@xivpt{16}} \newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{22}} \newcommand{\huge}{\@setfontsize\huge\@xxpt{25}} \newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{30}} \if@twocolumn \setlength\parindent{12\p@} %\setlength\parindent{1em} \else \setlength\parindent{12\p@} %\setlength\parindent{12\p@} \fi \setlength\headheight{10\p@} \setlength\headsep {12pt} \setlength\topskip {10\p@} \setlength\footskip{30\p@} \if@compatibility \setlength\maxdepth{4\p@} \else \setlength\maxdepth{.5\topskip} \fi \setlength\@maxdepth\maxdepth \if@compatibility \if@twocolumn \setlength\textwidth{410\p@} \else \setlength\textwidth{345\p@} \fi \else \setlength\@tempdima{\paperwidth} \addtolength\@tempdima{-2in} \setlength\@tempdimb{358\p@} %345 \if@twocolumn \ifdim\@tempdima>2\@tempdimb\relax \setlength\textwidth{2\@tempdimb} \else \setlength\textwidth{12.6cm} \fi \else \ifdim\@tempdima>\@tempdimb\relax \setlength\textwidth{\@tempdimb} \else \setlength\textwidth{\@tempdima} \fi \fi \fi \if@compatibility\else \@settopoint\textwidth \fi \if@compatibility \setlength\textheight{43\baselineskip} \else \setlength\@tempdima{\paperheight} \addtolength\@tempdima{-2in} \addtolength\@tempdima{-0.42cm} %-1.5in \divide\@tempdima\baselineskip \@tempcnta=\@tempdima \setlength\textheight{19.6cm} \fi %\addtolength\textheight{\topskip} \if@compatibility \if@twoside \setlength\oddsidemargin {44\p@} \setlength\evensidemargin {82\p@} \setlength\marginparwidth {107\p@} \else \setlength\oddsidemargin {63\p@} \setlength\evensidemargin {63\p@} \setlength\marginparwidth {90\p@} \fi \if@twocolumn \setlength\oddsidemargin {30\p@} \setlength\evensidemargin {30\p@} \setlength\marginparwidth {48\p@} \fi \else \if@twoside \setlength\@tempdima {\paperwidth} \addtolength\@tempdima {-\textwidth} \setlength\oddsidemargin {.4\@tempdima} \addtolength\oddsidemargin {-1in} \setlength\marginparwidth {.6\@tempdima} \addtolength\marginparwidth {-0.4in} \else \setlength\@tempdima {\paperwidth} \addtolength\@tempdima {-\textwidth} \setlength\oddsidemargin {.5\@tempdima} \addtolength\oddsidemargin {-1in} \setlength\marginparwidth {.5\@tempdima} \addtolength\marginparwidth {-.4in} \fi \ifdim \marginparwidth >2in \setlength\marginparwidth{2in} \fi \@settopoint\oddsidemargin \@settopoint\marginparwidth \setlength\evensidemargin {\paperwidth} \addtolength\evensidemargin{-2in} \addtolength\evensidemargin{-\textwidth} \addtolength\evensidemargin{-\oddsidemargin} \@settopoint\evensidemargin \fi \if@twocolumn \setlength\marginparsep {10\p@} \else \setlength\marginparsep{11\p@} \fi \setlength\marginparpush{5\p@} \if@compatibility \setlength\topmargin{27pt} \else \setlength\topmargin{\paperheight} \addtolength\topmargin{-2in} \addtolength\topmargin{-\headheight} \addtolength\topmargin{-\headsep} \addtolength\topmargin{-\textheight} \addtolength\topmargin{-\footskip} % this might be wrong! \addtolength\topmargin{-.5\topmargin} \@settopoint\topmargin \fi \setlength\footnotesep{6.65\p@} \setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@} \setlength\floatsep {24\p@ \@plus 4\p@ \@minus 4\p@} \setlength\textfloatsep{24\p@ \@plus 4\p@ \@minus 4\p@} \setlength\intextsep {24\p@ \@plus 4\p@ \@minus 4\p@} \setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@} \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@} \setlength\@fptop{0\p@ \@plus 1fil} \setlength\@fpsep{8\p@ \@plus 2fil} \setlength\@fpbot{0\p@ \@plus 1fil} \setlength\@dblfptop{0\p@ \@plus 1fil} \setlength\@dblfpsep{8\p@ \@plus 2fil} \setlength\@dblfpbot{0\p@ \@plus 1fil} \setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@} \def\@listI{\leftmargin\leftmargini \parsep 4\p@ \@plus2\p@ \@minus\p@ \topsep 8\p@ \@plus2\p@ \@minus4\p@ \itemsep4\p@ \@plus2\p@ \@minus\p@} \let\@listi\@listI \@listi \def\@listii {\leftmargin\leftmarginii \labelwidth\leftmarginii \advance\labelwidth-\labelsep \topsep 4\p@ \@plus2\p@ \@minus\p@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep} \def\@listiii{\leftmargin\leftmarginiii \labelwidth\leftmarginiii \advance\labelwidth-\labelsep \topsep 2\p@ \@plus\p@\@minus\p@ \parsep \z@ \partopsep \p@ \@plus\z@ \@minus\p@ \itemsep \topsep} \def\@listiv {\leftmargin\leftmarginiv \labelwidth\leftmarginiv \advance\labelwidth-\labelsep} \def\@listv {\leftmargin\leftmarginv \labelwidth\leftmarginv \advance\labelwidth-\labelsep} \def\@listvi {\leftmargin\leftmarginvi \labelwidth\leftmarginvi \advance\labelwidth-\labelsep} %% %% End of file `size10.clo'. %% \setlength\lineskip{1\p@} \setlength\normallineskip{1\p@} \renewcommand{\baselinestretch}{} \setlength{\parskip}{0\p@} \@lowpenalty 51 \@medpenalty 151 \@highpenalty 301 \setcounter{topnumber}{2} \renewcommand{\topfraction}{.7} \setcounter{bottomnumber}{1} \renewcommand{\bottomfraction}{.3} \setcounter{totalnumber}{3} \renewcommand{\textfraction}{.2} \renewcommand{\floatpagefraction}{.5} \setcounter{dbltopnumber}{2} \renewcommand{\dbltopfraction}{.7} \renewcommand{\dblfloatpagefraction}{.5} \if@twoside \def\ps@headings{% \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@evenhead{\thepage\hfil\slshape\leftmark}% \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% \let\@mkboth\markboth \def\chaptermark##1{% \markboth {\uppercase{% \ifnum \c@secnumdepth >\m@ne \@chapapp\ \thechapter. \ % \fi ##1}}{}}% \def\sectionmark##1{% \markright {\uppercase{% \ifnum \c@secnumdepth >\z@ \thesection. \ % \fi ##1}}}} \else \def\ps@headings{% \let\@oddfoot\@empty \ifappendix \def\@oddhead{{}\hfill{\bfseries{\appendixname}\ \thechapter/{\thepage}}} \else \def\@oddhead{{}\centerline{\thepage}}% \fi \let\@mkboth\markboth \def\chaptermark##1{% \markright {\uppercase{% \ifnum \c@secnumdepth >\m@ne \@chapapp\ \thechapter. \ % \fi ##1}}}} \fi \def\ps@myheadings{% \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@evenhead{\thepage\hfil\slshape\leftmark}% \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% \let\@mkboth\@gobbletwo \let\chaptermark\@gobble \let\sectionmark\@gobble } %%% titlepage %%% \if@titlepage \newcommand{\maketitle}{\begin{titlepage}% \let\footnotesize\small \let\footnoterule\relax \null\vfil \vskip 60\p@ \begin{center}% {\Large{\bfseries \@title} \par}% \vskip 3em% \vspace{32pt} {\large \lineskip .75em% \begin{tabular}[t]{c}% \@author \end{tabular}\par}% \vskip 1.5em% % {\large \@date \par}% % Set date in \large size. No date requred \end{center}\par \@thanks \vfil\null \end{titlepage}% \setcounter{footnote}{0}% \let\thanks\relax\let\maketitle\relax \gdef\@thanks{}\gdef\@author{}\gdef\@title{}} \else \newcommand{\maketitle}{\par \begingroup \renewcommand{\thefootnote}{\fnsymbol{footnote}}% \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}% \long\def\@makefntext##1{\parindent 1em\noindent \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}% \if@twocolumn \ifnum \col@number=\@ne \@maketitle \else \twocolumn[\@maketitle]% \fi \else \newpage \global\@topnum\z@ % Prevents figures from going at top of page. \@maketitle \fi \thispagestyle{plain}\@thanks \endgroup \setcounter{footnote}{0}% \let\thanks\relax \let\maketitle\relax\let\@maketitle\relax \gdef\@thanks{}\gdef\@author{}\gdef\@title{}} \def\@maketitle{% \newpage \null \vskip 2em% \begin{center}% {\LARGE \@title \par}% \vskip 1.5em% {\large \lineskip .5em% \begin{tabular}[t]{c}% \@author \end{tabular}\par}% \vskip 1em% {\large \@date}% \end{center}% \par \vskip 1.5em} \fi %%% chapter and sectioning definitions %%% \newcommand*{\chaptermark}[1]{} \setcounter{secnumdepth}{3} \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}} %%% Periods for sectionin commands %%% (modified from latex kernel) %%% \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth \def\@svsec{}\else \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname.\ }\fi \@tempskipa #5\relax \ifdim \@tempskipa>\z@ \begingroup #6\relax \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par} \endgroup \csname #1mark\endcsname{#7}\addcontentsline {toc}{#1}{\ifnum #2>\c@secnumdepth \else \protect\numberline{\csname the#1\endcsname.}\fi #7}\else \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname {#7}\addcontentsline {toc}{#1}{\ifnum #2>\c@secnumdepth \else \protect\numberline{\csname the#1\endcsname.}\fi #7}}\fi \@xsect{#5}} %%%% end \newcommand{\@chapapp}{\chaptername} \newcommand{\part}{\cleardoublepage \thispagestyle{empty}% \if@twocolumn \onecolumn \@tempswatrue \else \@tempswafalse \fi \hbox{}\vfil \secdef\@part\@spart} \def\@part[#1]#2{% %\ifnum \c@secnumdepth >-2\relax \refstepcounter{part}% % \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% %\else \addtocontents{toc}{\noindent {\newline\bfseries Part {\thepart\hspace{1em}#1}\\[-10pt]}}% %\fi \markboth{}{} {\centering \interlinepenalty \@M \reset@font \ifnum \c@secnumdepth >-2\relax \huge\bfseries \partname~\thepart \par \vskip 20\p@ \fi \Huge \bfseries #2\par}% \@endpart} \def\@spart#1{% {\centering \interlinepenalty \@M \reset@font \Huge \bfseries #1\par}% \@endpart} \def\@endpart{\vfil\newpage \if@twoside \hbox{}% \thispagestyle{empty}% \newpage \fi \if@tempswa \twocolumn \fi} \newif\if@pagestyleempty \newcommand{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi \if@pagestyleempty \pagestyle{headings} \fi \ifappendix \thispagestyle{headings}\setcounter{page}{1} \else \thispagestyle{empty} \fi \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter} \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter}% \typeout{\@chapapp\space\thechapter.}% \ifappendix %appendix case \else \addcontentsline{toc}{chapter}{% \protect\numberline{\thechapter.}#1} \fi \else \addcontentsline{toc}{chapter}{#1}% \fi \chaptermark{#1}% \addtocontents{lof}{\protect\addvspace{10\p@}}% \addtocontents{lot}{\protect\addvspace{10\p@}}% \if@twocolumn \@topnewpage[\@makechapterhead{#2}]% \else \@makechapterhead{#2}% \@afterheading \fi} \def\@makechapterhead#1{% \vspace*{120\p@}% {\parindent \z@ \raggedright \reset@font \ifnum \c@secnumdepth >\m@ne \ifappendix \begin{center} \else \begin{center}\Large\bfseries \thechapter.\ \fi\fi \interlinepenalty\@M \Large\bfseries{#1}\end{center}\par\nobreak \vskip 12pt }} \def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]% \else \@makeschapterhead{#1}% \@afterheading \fi} \def\@makeschapterhead#1{% \vspace*{120\p@}% {\parindent \z@ \raggedright \reset@font \interlinepenalty\@M \begin{center}\Large \bfseries{#1}\end{center}\par\nobreak \vskip 12\p@ }} \newcommand{\section}{\@startsection{section}{1}{0pt}% {-36pt}% {12pt} % {\reset@font\large\bfseries\center}} % \newcommand{\subsection}{\@startsection{subsection}{2}{0pt}% {-36pt}% {12pt} % {\reset@font\large\bfseries\itshape\center}}% \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{0pt}% {-36pt} % {12pt} % {\reset@font\large\itshape\center}} % \newcommand{\paragraph}{\@startsection{paragraph}{4}{0pt}% {-14pt} % {14pt} % {\reset@font\normalsize\bfseries}} \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}% {3.25ex \@plus1ex \@minus .2ex}% {-1em}% {\reset@font\normalsize\bfseries}} \newcommand{\emptychname}[1]{% \if@openright\cleardoublepage\else\clearpage\fi \global\@topnum\z@ \@afterindentfalse \vspace*{120\p@}% {\parindent \z@ \raggedright \reset@font \interlinepenalty\@M \begin{center}\Large \bfseries{#1}\end{center}\par\nobreak \vskip 12\p@ }\@afterheading} %%% end \if@twocolumn \setlength\leftmargini {2em} \else \setlength\leftmargini {2.5em} \fi \setlength\leftmarginii {2.2em} \setlength\leftmarginiii {1.87em} \setlength\leftmarginiv {1.7em} \if@twocolumn \setlength\leftmarginv {.5em} \setlength\leftmarginvi {.5em} \else \setlength\leftmarginv {1em} \setlength\leftmarginvi {1em} \fi \setlength\leftmargin {\leftmargini} \setlength \labelsep {.5em} \setlength \labelwidth{\leftmargini} \addtolength\labelwidth{-\labelsep} \@beginparpenalty -\@lowpenalty \@endparpenalty -\@lowpenalty \@itempenalty -\@lowpenalty \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} \newcommand{\labelitemi}{$\m@th\bullet$} \newcommand{\labelitemii}{\normalfont\bfseries --} \newcommand{\labelitemiii}{$\m@th\ast$} \newcommand{\labelitemiv}{$\m@th\cdot$} \newenvironment{description} {\list{}{\labelwidth\z@ \itemindent-\leftmargin \let\makelabel\descriptionlabel}} {\endlist} \newcommand{\descriptionlabel}[1]{\hspace\labelsep \normalfont\bfseries #1} \if@titlepage \newenvironment{abstract}[1]{% \titlepage \null\vfil \begin{center} \bfseries \abstractname\par \end{center}} {\par\vfil\null\endtitlepage} \else \newenvironment{abstract}{% \if@twocolumn \section*{\abstractname}% \else \small \begin{center}% {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}% \end{center}% \quotation \fi} {\if@twocolumn\else\endquotation\fi} \fi \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} \newenvironment{titlepage} {% \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse\newpage \fi \thispagestyle{empty}% \if@compatibility \setcounter{page}{0} \else \setcounter{page}{1}% \fi}% {\if@restonecol\twocolumn \else \newpage \fi \setcounter{page}{1}% } \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} %%% Equation, figure and table numbering %%% if there are hundres of equations then second cases are preferred %%% %\renewcommand{\theequation}{\arabic{equation}} \renewcommand{\theequation}{\thechapter.\arabic{equation}} %%% figure and table counters \newcounter{figure}[chapter] %\renewcommand{\thefigure}{\@arabic\c@figure} \renewcommand{\thefigure}{\thechapter.\@arabic\c@figure} \newcounter{table}[chapter] %\renewcommand{\thetable}{\@arabic\c@table} \renewcommand{\thetable}{\thechapter.\@arabic\c@table} %%% figure and table floats %%% \def\fps@figure{tbp} \def\ftype@figure{1} \def\ext@figure{lof} \def\fnum@figure{\figurename~\thefigure} \newif\iffigure %%% if-flag for figure \newenvironment{figure} {\figuretrue\@float{figure}} %set if-flag true {\end@float} \newenvironment{figure*} {\figuretrue\@dblfloat{figure}} {\end@dblfloat} \def\fps@table{tbp} \def\ftype@table{2} \def\ext@table{lot} \def\fnum@table{\tablename~\thetable} \newenvironment{table} {\figurefalse\@float{table}} {\end@float} \newenvironment{table*} {\figurefalse\@dblfloat{table}} {\end@dblfloat} \newlength\abovecaptionskip \newlength\belowcaptionskip \setlength\abovecaptionskip{12\p@ \@plus 2\p@ \@minus 2\p@} \setlength\belowcaptionskip{12\p@ \@plus 2\p@ \@minus 2\p@} %0 %%% caption for figure and table %%% bold if figure, italics if table %%% \long\def\@makecaption#1#2{% \vskip\abovecaptionskip \iffigure %test if-flag for figure (test if true) \sbox\@tempboxa{{\small\textbf{#1}. \textbf{#2}}}% % \ifdim \wd\@tempboxa >\hsize {\small\textbf{#1}. \textbf{#2}}\par % \else % \global \@minipagefalse % \hbox to\hsize{\hfil\box\@tempboxa\hfil}% % \fi \else %else table \sbox\@tempboxa{\textit{#1}. \textit{#2}}% % \ifdim \wd\@tempboxa >\hsize \textit{#1}. \textit{#2}\par % \else % \global \@minipagefalse % \hbox to\hsize{\hfil\box\@tempboxa\hfil}% % \fi \fi % \vspace{-12\p@} } \vskip\belowcaptionskip} % % end %%% Figure and Table commands \newcommand{\Figure}[4][tbh]{% \begin{figure}[#1] %optional placement \begin{center} #4 %figure body \end{center} \caption{#2} %caption text \label{#3} %label \end{figure} } \newcommand{\Table}[4][tbp]{% \begin{table}[#1] %optional placement \caption{#2} %caption text \label{ta:#3} %label \vspace{0.25cm} \begin{center} #4 %table body \end{center} \end{table} } \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}{3} %%% ABSTRACTPAGE (new command) %%% \newcommand{\abstractpage}[5]{%author,title,rest bibliography notes,abstract text,keywords \vspace*{-48pt} \pagestyle{empty}\@pagestyleemptytrue \addtocontents{toc}{\noindent\abstractname\newline} \noindent\textbf{#1},\ \textbf{#2} \newline #3\par \vskip 24pt \begin{center}\textbf{\itshape \abstractname}\end{center}\par %\vskip 12pt {\small #4\par}\vskip 12pt \noindent \textit{Keywords:}\ #5 \clearpage } %%% contents %%% \newcommand{\tableofcontents}{% \pagestyle{empty}\@pagestyleemptytrue\setlength{\parskip}{0pt} \addtocontents{toc}{\noindent\contentsname} \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \emptychname{\contentsname} \@starttoc{toc}% \if@restonecol\twocolumn\fi \setlength{\parskip}{0pt} } \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 \large \bfseries #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 0.0em \@plus\p@ % \setlength\@tempdima{1.5em}% % \begingroup % \parindent \z@ \rightskip \@pnumwidth % \parfillskip -\@pnumwidth % \leavevmode %\bfseries % \advance\leftskip\@tempdima % \hskip -\leftskip % #1\nobreak %\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$} %\hfill \nobreak\hbox to\@pnumwidth{\hss #2}\par % \penalty\@highpenalty % \endgroup % \fi} \newcommand*{\l@chapter} {\@dottedtocline{0}{0em}{1.5em}} \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}{% \pagestyle{empty}\@pagestyleemptytrue\ \addtocontents{toc}{\noindent\listfigurename} \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \emptychname{\listfigurename \@mkboth{\uppercase{\listfigurename}}% {\uppercase{\listfigurename}}}% \@starttoc{lof}% \if@restonecol\twocolumn\fi } \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}} \newcommand{\listoftables}{% \pagestyle{empty}\@pagestyleemptytrue\ \addtocontents{toc}{\noindent\listtablename} \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \emptychname{\listtablename \@mkboth{\uppercase{\listtablename}}{\uppercase{\listtablename}}}% \@starttoc{lot}% \if@restonecol\twocolumn\fi } \let\l@table\l@figure %%% references %%% \newdimen\bibindent \setlength\bibindent{1.5em} \def\bibliography#1{\clearpage\small\addcontentsline{toc}{chapter}{\noindent\bibname} \if@filesw\immediate\write\@auxout{\string\bibdata{#1}}\fi \@input{\jobname.bbl}} \newenvironment{thebibliography}[1] {\bibliographytrue \chapter*{\bibname \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}% \newcommand{\bibpage}{\thepage} \list{\@biblabel{\@arabic\c@enumiv}}% {\settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth \advance\leftmargin\labelsep \@openbib@code \usecounter{enumiv}% \let\p@enumiv\@empty \renewcommand\theenumiv{\@arabic\c@enumiv}}% \sloppy \clubpenalty4000 \@clubpenalty \clubpenalty \widowpenalty4000% \sfcode`\.\@m} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist} \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em} \let\@openbib@code\@empty \newenvironment{theindex} {\if@twocolumn \@restonecolfalse \else \@restonecoltrue \fi \columnseprule \z@ \columnsep 35\p@ \twocolumn[\@makeschapterhead{\indexname}]% \@mkboth{\uppercase{\indexname}}% {\uppercase{\indexname}}% \thispagestyle{plain}\parindent\z@ \parskip\z@ \@plus .3\p@\relax \let\item\@idxitem} {\if@restonecol\onecolumn\else\clearpage\fi} \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} \renewcommand{\footnoterule}{% \kern-3\p@ \hrule width .4\columnwidth \kern 2.6\p@} \@addtoreset{footnote}{chapter} \long\def\@makefntext#1{% \parindent 1em% \noindent \hbox to 1.8em{\hss\@makefnmark}#1} \ifsuomi \newcommand{\contentsname}{Sis\"allys} \newcommand{\listfigurename}{Kuvaluettelo} \newcommand{\listtablename}{Taulukkoluettelo} \newcommand{\bibname}{L\"ahteet} \newcommand{\indexname}{INDEX} \newcommand{\figurename}{Kuva} \newcommand{\tablename}{Taulukko} \newcommand{\partname}{OSA} \newcommand{\chaptername}{LUKU} \newcommand{\appendixname}{LIITE} \newcommand{\abstractname}{Tiivistelmä} \newcommand{\prefacename}{Alkulause} \newcommand{\@symbolsname}{Lyhenteiden ja merkkien selitykset} \newcommand{\today}{\ifcase\month\or Tammikuu\or Helmikuu\or Maaliskuu\or Huhtikuu\or Toukokuu\or Kes\"akuu\or Hein\"akuu\or Elokuu\or Syyskuu\or Lokakuu\or Marraskuu\or Joulukuu\fi \space\number\day, \number\year} \else \newcommand{\contentsname}{Contents} \newcommand{\listfigurename}{List of figures} \newcommand{\listtablename}{List of tables} \newcommand{\bibname}{References} \newcommand{\indexname}{Index} \newcommand{\figurename}{Fig.} \newcommand{\tablename}{Table} \newcommand{\partname}{PART} \newcommand{\chaptername}{CHAPTER} \newcommand{\appendixname}{APPENDIX} \newcommand{\abstractname}{Abstract} \newcommand{\today}{\ifcase\month\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 \space\number\day, \number\year} \fi \setlength\columnsep{10\p@} \setlength\columnseprule{0\p@} \pagestyle{headings} \pagenumbering{arabic} % Arabic page numbers \if@twoside \else \raggedbottom \fi \if@twocolumn \twocolumn \sloppy \flushbottom \else \onecolumn \fi %%%APPENDIX \newenvironment{appendix}{% \normalsize \clearpage \ifsuomi \AtEndDocument{\newcommand{\numberofappendices}{\thechapter} \ifthenelse{\numberofappendices=0}{}{% \ifthenelse{\numberofappendices>1}{% \addtocontents{toc}{\noindent Liitteet 1-\numberofappendices}}{% \addtocontents{toc}{\noindent Liite 1}}}} \else \AtEndDocument{\newcommand{\numberofappendices}{\thechapter} \ifthenelse{\numberofappendices=0}{}{% \ifthenelse{\numberofappendices>1}{% \addtocontents{toc}{\noindent Appendices 1-\numberofappendices}}{% \addtocontents{toc}{\noindent Appendix 1}}}} \fi \appendixtrue % set appendix flag \setcounter{chapter}{0}% \setcounter{section}{0}% \renewcommand{\@chapapp}{\appendixname}% \renewcommand{\theequation}{A\thechapter.\arabic{equation}} \def\@oddhead{{}\hfill{\bfseries{\appendixname}\ \thechapter/{\thepage}}} }{\chapter*{}\thispagestyle{empty} } %%%% %%% ABBREVIATIONS AND SYMBOLS \newcommand{\abbreviatename}{Symbols and abbreviations} \newcommand{\abbreviatepage}[1]{% \addtocontents{toc}{\noindent\abbreviatename\newline} \pagestyle{empty}\@pagestyleemptytrue %% after the first chapter command \pagestyle{headings} command must be used \emptychname{\abbreviatename} #1 \clearpage } %%%PREFACEPAGE \newcommand{\prefacename}{Preface} \newcommand{\prefacepage}[1]{% \pagestyle{empty}\@pagestyleemptytrue \emptychname{\prefacename} \addtocontents{toc}{\noindent\prefacename\newline} {#1} \clearpage } %%% LIST of ORIGINAL PAPERS-PAGE \newcommand{\origpapername}{Original publications} \newcommand{\originalpaperspage}[1]{% \pagestyle{empty}\@pagestyleemptytrue \emptychname{\origpapername} \addtocontents{toc}{\noindent\origpapername\newline} {#1} \clearpage } %%% DEDICATION \newcommand{\dedicationpage}[1]{% \pagestyle{empty}\@pagestyleemptytrue \begin{center} \vspace*{300pt} \Large \textit{#1} \end{center} \clearpage } %%% LIST STYLE for Original papers and Abbreviations %% argument is the widest word in the list %% if given it sets the width of the label \newcounter{phdlist} \newenvironment{phdlist}[1] {\begin{list} {\Roman{phdlist}} %standard label {\usecounter{phdlist} %list parameters \setlength{\itemsep}{2pt} \setlength{\parsep}{0pt} \settowidth{\labelwidth}{#1} \setlength{\labelsep}{0.5em} \setlength{\itemindent}{0em} \addtolength{\labelwidth}{\labelsep} \ifthenelse{\labelwidth < 1.5cm}{ \setlength{\leftmargin}{1.5cm} }{ \setlength{\leftmargin}{\labelwidth} } \renewcommand{\makelabel}[1]{##1\hfill} }} {\end{list}} \endinput %% %% End of file `phdthesis.cls'.