%!TEX encoding = UTF-8 Unicode
%!TEX TS-program = xelatex
% template for UIB thesis, monograph. CC-by Koenraad De Smedt
\documentclass[a4paper,12pt]{book} % use oneside option to eliminate blank pages
\input{settings}
\author{Koenraad De Smedt} % replace with your name
\title{Monograph thesis \\ at the University of Bergen} % replace with your title
\newcommand{\Thesisplaintitle}{Monograph thesis at the University of Bergen} % plain title
\date{2015}
\newcommand{\Thesisfulldate}{December 31, 2015}
\bibliographystyle{chicago} % or another bib style
\graphicspath{{pics/}} % this is where the pictures are
\hyphenation{lem-mat-iz-at-ion uni-code}
\begin{document}
\frontmatter
\input{titlepage}
\input{copyright}
\input{scientific-environment}
\input{acknowledgements}
\input{abstract}
\tableofcontents
%\listoffigures
\mainmatter
\renewcommand{\chaptermark}[1]{\markboth{\small \thechapter. #1}{}}
\input{introduction}
% add more chapters as needed
\input{conclusion}
\appendix
\renewcommand{\chaptermark}[1]{\markboth{\small Appendix \thechapter. #1}{}}
\chapter{Frequency list exclusive of hapax legomena} \label{app:freq}
\begin{multicols}{3}
{\footnotesize\verbatiminput{askefreqnohapax}}
\end{multicols}
% add more appendices as needed
\backmatter
\phantomsection \addcontentsline{toc}{chapter}{Bibliography}
\bibliography{literature}
%\chapter*{\glossaryname} \addcontentsline{toc}{chapter}{\glossaryname}
%\printglossary
%\addcontentsline{toc}{chapter}{\indexname}
%\printindex
\end{document}