% Required modifications to memoir class style for UEF PhD thesis
   % version 1.0
   %
   % Please, don't modify this file. If you like to define something
   % by your own, put those things in a separate mystyle.sty -file.
   %
   % Created by Jukka Tuomela and Markku Kuittinen.
%
% Commands for the front page
%
\newcommand{\subtitle}[1]{%
\gdef\thesubtitle{#1}
}
\newcommand{\thesubtitle}{}
%
\newcommand{\makefrontpage}[5]{%
\pagenumbering{gobble}
\par
\vspace*{-22mm}
\begin{center}
\includegraphics[width=36mm]{UEF_logo.eps}
\par
\vspace{8mm}
PUBLICATIONS OF THE UNIVERSITY OF EASTERN FINLAND\\
DISSERTATIONS IN FORESTRY AND NATURAL SCIENCES\\[5mm]
N:o #1\\[17mm]
{\LARGE\itshape \textbf{\theauthor}}\\[6mm]
\setlength{\baselineskip}{9mm}
{\Huge\fontseries{sbc}\sffamily \MakeUppercase\thetitle}\\[3mm]
{\Large\bfseries\sffamily \MakeUppercase\thesubtitle}
\vfill
\linespread{1.08}
\normalfont\normalsize
ACADEMIC DISSERTATION
\end{center}
\vspace{2mm}
{To be presented by the permission of the Faculty of Science and Forestry for public examination in the #5}
\vspace{10mm}
\begin{center}
University of Eastern Finland\\
#4 \\
#2 #3
\end{center}
\par
\vspace{12mm}
\thispagestyle{title}
%
}  % makefrontpage
%
\newcommand{\makeabstracthead}[2]{%
\noindent
\theauthor\\
\thetitle ~\thesubtitle \\
#1: University of Eastern Finland, #2\\
Publications of the University of Eastern Finland\\
Dissertations in Forestry and Natural Sciences\\
}
%
\newcommand{\makecover}{%
\begin{center}
\vspace*{94mm}
\setlength{\baselineskip}{9mm}
{\Huge\fontseries{sbc}\sffamily \thetitle}\\[3mm]
{\Large\bfseries\sffamily \thesubtitle}
\par
\end{center}
}
%
\newcommand{\makefront}[4]{%
\pagenumbering{gobble}
\begin{center}
\vspace*{10mm}
{\LARGE\itshape \textbf{\theauthor}}\\[5mm]
\setlength{\baselineskip}{9mm}
{\Huge\fontseries{sbc}\sffamily \MakeUppercase\thetitle}\\[3mm]
{\Large\bfseries\sffamily \MakeUppercase\thesubtitle}
\vfill
#4
\vfill
\linespread{1.08}
{\normalfont\normalsize
Publications of the University of Eastern Finland\\
Dissertations in Forestry and Natural Sciences\\
No #1\\[4.5mm]
University of Eastern Finland\\
#2 \\
#3 \\
\vspace*{5mm}
}
\end{center}
\thispagestyle{title}
} % makefront
%
%  This puts page numbers in the right place and set headings
%
\copypagestyle{chapter}{plain} % make chapter a page style of its own
\makeevenfoot{chapter}{\thepage}{}{}
\makeoddfoot{chapter}{}{}{\thepage}
\makeevenhead{chapter}{}{}{}
\makeoddhead{chapter}{}{}{}
%
\makepagestyle{headings}
\makeevenfoot{headings}{\thepage}{}{}
\makeoddfoot{headings}{}{}{\thepage}
\makeevenhead{headings}{}{}{}
\makeoddhead{headings}{}{}{}
\pagestyle{headings}
%
\captionstyle{\raggedright}
%
%  Setting the margins
%
\settrims{0pt}{0pt}
\setlrmarginsandblock{25mm}{20mm}{*}
\setulmarginsandblock{20mm}{22mm}{*}
\checkandfixthelayout
%
% Numbering the subsections and how they are in the table of contents
%
\setsecnumdepth{subsection}
\settocdepth{subsection}
%
%  How chapter title looks like
%
\chapterstyle{hangnum} % section
\renewcommand*{\chaptitlefont}{\huge\fontseries{sbc}\sffamily}
\renewcommand*{\chapnumfont}{\huge\bfseries\sffamily}
\setlength{\beforechapskip}{0pt}
%
%  How section titles look like
%
\setsecheadstyle{\large\bfseries\sffamily\MakeUppercase}
\setsubsecheadstyle{\large\bfseries\sffamily}
%
% How figure and table captions look like
%
\captionstyle[\centering]{}
\changecaptionwidth
\captionwidth{0.9\textwidth}
\captiondelim{: }
\captionnamefont{\bfseries}
\captiontitlefont{\small} % makes captions with a smaller font
%
% Dots in the table of contents
%
\renewcommand{\cftdotsep}{0.5}
%
%  Fonts in the table of contents
%
\renewcommand*{\cftchapterfont}{\large\bfseries\sffamily}
\renewcommand*{\cftsectionfont}{\large\sffamily}
\renewcommand*{\cftsubsectionfont}{\large\sffamily}
%
% how "table of contents" and "list of figures" are shown
%
\addto\captionsenglish{\renewcommand{\listfigurename}{LIST OF FIGURES}}
\addto\captionsenglish{\renewcommand{\printloftitle}[1]{\large\bfseries\sffamily #1}}
\addto\captionsenglish{\renewcommand{\listtablename}{LIST OF TABLES}}
\addto\captionsenglish{\renewcommand{\printlottitle}[1]{\large\bfseries\sffamily #1}}
\addto\captionsenglish{\renewcommand{\contentsname}{TABLE OF CONTENTS}}
\addto\captionsenglish{\renewcommand{\printtoctitle}[1]{\normalfont\huge\sffamily #1}}
\addto\captionsenglish{\renewcommand{\bibname}{BIBLIOGRAPHY}}
%
% the standard environment for theorems etc
%
\newtheorem{theorem}{Theorem}
\newtheorem{conjecture}{Conjecture}
\newtheorem{lemma}{Lemma}
\newtheorem{proposition}{Proposition}
\newtheorem{corollary}{Corollary}
\newtheorem{definition}{Definition}
%
\DeclareUrlCommand\directory{\urlstyle{tt}}
