% IMPORTANT! In order for the document to compile, one needs to use XeLaTeX or LuaLaTeX as compiler. This can be done in Overleaf by Menu -> Settings -> Compiler -> Choose XeLaTeX/LuaLaTeX
\documentclass[12pt]{article}
\usepackage{KUstyle}
\usepackage[margin=0.8in]{geometry} % Package for pagemargin
\usepackage{setspace} % Package for linespacing
\usepackage{tabularx} % Package for table
\usepackage{fontspec}
\setmainfont{Arial}
% This change the content of the frontpage
\ptype{[Master's thesis/Ph.d. thesis]}
\author{[Name]}
\title{[Title of thesis]}
\subtitle{[Subtitle]}
\date{Date: {[June 2021]}}
\advisor{Advisor: {[Name]}}
\fpimage{picture.png} % Remove this command if no image is desired
\renewcommand{\contentsname}{Table of content}
\begin{document}
\maketitle
\onehalfspacing
\noindent This is a template for the setup itself. The requirements for which information to include varies. You can therefore not simply use the template for your own dissertation. You can get more information about the requirements at your own study office!
\begin{table}[h]
\def\arraystretch{1.5}
\begin{tabularx}{\textwidth}{l X}
Institute: & {[Institute for Xxxxx]} \\
Department & {[Department for Xxxxx]} \\
Author(s): & {[Name]} \\
Title and subtitle: & {[Title and subtitle of thesis]} \\
Description: & Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum porttitor rhoncus dui, vehicula pellentesque odio convallis id. Vestibulum mollis nulla ut sem luctus dictum. Sed scelerisque feugiat arcu, quis faucibus lorem viverra id. Aenean dignissim metus eu ligula sagittis, at commodo magna suscipit. \\
Advisor: & {[Name]} \\
Date: & XX XX XXXX
\end{tabularx}
\end{table}
\newpage
\tableofcontents
\newpage
{\fontfamily{ptm}\selectfont
\section{[Title 1]}
\subsection{[Title 2]}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In consectetur faucibus nulla, eu egestas libero fringilla eget. Mauris sollicitudin velit quis magna malesuada sagittis. Fusce ut metus imperdiet, cursus nunc sit amet, gravida orci. Morbi lacinia, velit nec venenatis maximus, enim tortor semper odio, eget volutpat leo dui ut sem. Nullam tincidunt tellus vel sem sollicitudin, vestibulum iaculis sem dictum.
\subsection{[Title 2]}
Morbi turpis dui, iaculis id augue quis, imperdiet ultricies metus. Nullam eget ante sed nulla placerat efficitur. Nullam vestibulum, nisi vulputate mattis auctor, neque magna ornare justo, sit amet ultrices libero enim eget erat. Nullam sit amet arcu ac arcu eleifend cursus a non sapien. Sed in nibh quam. Donec fringilla sit amet nibh sed aliquam. Etiam ut semper libero. Integer pellentesque augue quis ante auctor laoreet.
\section{[Title 1]}
Fusce lorem ipsum, venenatis porttitor dui at, dapibus varius tortor. Nam in tempor odio, at feugiat nunc. Curabitur ut tellus at sem ornare interdum quis quis odio. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin malesuada ex vitae metus posuere feugiat. Nam vitae efficitur orci. Donec eu purus sed orci pharetra accumsan et sed nunc. Nunc nec diam lacus.
\subsection{[Title 2]}
Suspendisse nec augue lectus. Curabitur risus neque, iaculis sit amet dui in, pellentesque vestibulum libero. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras tincidunt aliquam ultricies. Cras eget nibh at leo placerat tristique. Proin ut tristique sapien. Curabitur non congue mauris.
\subsubsection{[Title 3]}
Nam volutpat nulla non est posuere porta. Ut sit amet ipsum malesuada, aliquam magna eget, semper mi. In felis tortor, convallis nec eros a, aliquet interdum nisl. Pellentesque auctor sapien odio, id dapibus dolor elementum quis. Vivamus bibendum posuere sodales.
}
\end{document}