% KTH PhD template 2025
% If you have questions or comments about this template, please contact FuSam (the Doctoral Education Coordination) at KTH: fusam@kth.se
% See https://www.kth.se/en/student/studier/examensarbete/avhandlingarochexamensarbeten/mall-for-avhandling-1.458236 and
% https://gits-15.sys.kth.se/FuSam/kthphdthesis
% Update by Martin Isaksson (2025).
% Based on the works of Giampiero Salvi, Örjan Ekeberg,
% Manuel Osvaldo Olguín, August Janse, Gerald Q. Maguire Jr,
% and others. Thanks you for your valuable input and feedback!
% Use options g5paper,openright,final for print version
\documentclass[g5paper,openright, final]{kthphdthesis}
\input{includes/macros}
\usepackage{lipsum} % For generating random text
\input{includes/acronyms}
\title{Lorem ipsum dolor sit amet}
\subtitle{Consectetur adipiscing elit}
\author{Tekla Andersson}
\defence{Degree of Doctor of Philosophy}{Monday, the 21st October 2025, at 09:00}{Sal-C, Kistagången 16, Stockholm}
\programme{Information and Communication Technology}
\date{\today}
\trita{EECS-AVL-2025:XX} % https://www.kth.se/biblioteket/publicera-analysera/vagledning-for-publicering/kth-s-skriftserie-trita-1.1357097
\isbn{xxx-xx-xxxx-xxx-x} % https://www.kth.se/biblioteket/publicera-analysera/vagledning-for-publicering/bestall-isbn-1.854778
% The file containing the main references.
\addbibresource{references/main.bib}
% The file containing references to own papers.
% (These can be in the main file instead.)
\addbibresource{references/mine.bib}
\begin{document}
% Mock-up of front and titlepages.
% [To be printed by US-AB].
% Remove this before sending for printing.
\frontpage
\cleardoublepage
% Frontmatter includes the titlepage, abstracts and table-of-contents. This redefines page numbering.
\frontmatter
\titlepage
% \copyrightpage[Copyright owner if not author]{Extra copyright text}
\copyrightpage[Company AB]{In reference to IEEE copyrighted material which is used with permission in this thesis, the IEEE does not endorse any of products or services of KTH Royal University of Technology or Ericsson AB . Internal or personal use of this material is permitted. If interested in reprinting/republishing IEEE copyrighted material for advertising or promotional purposes or for creating new collective works for resale or redistribution, please go to \url{http://www.ieee.org/publications_standards/publications/rights/rights_link.html} to learn how to obtain a License from RightsLink.}
\cleardoublepage
%\setcounter{page}{1}
\begin{dedication}
Dedicated to someone special.
\end{dedication}
\cleardoublepage
\begin{abstract}
This thesis explores the curious and occasionally confounding world of doctoral research. While the journey begins with a clear question, it often detours through the land of literature reviews, the valley of imposter syndrome, and the mountain of experimental revisions. Early chapters introduce the reader to concepts that will later be challenged, redefined, or entirely abandoned after an unexpected reviewer comment. Methods are applied with scientific rigor and just a dash of caffeine-fueled optimism. Results are presented with the hope that they mean something, and conclusions are drawn with the confidence of someone who has rewritten them five times. In the end, this work contributes a small but sincere piece to the grand puzzle of human knowledge—and proves that persistence, curiosity, and a decent version control system can carry one far.
\end{abstract}
\begin{keywords}{word1, word2}\end{keywords}
\cleardoublepage
% https://sv.wikipedia.org/wiki/Lorem_ipsum
\begin{otherlanguage}{swedish}
\begin{abstract}
Träutensilierna i ett tryckeri äro ingalunda en oviktig faktor,
för trevnadens, ordningens och ekonomiens upprätthållande, och
dock är det icke sällan som sorgliga erfarenheter göras på grund
af det oförstånd med hvilket kaster, formbräden och regaler
tillverkas och försäljas Kaster som äro dåligt hopkomna och af
otillräckligt.
\end{abstract}
\begin{keywords}{word1, word2}\end{keywords}
\end{otherlanguage}
\cleardoublepage
\input{chapters/acknowledgment}
\input{includes/listofincludedpapers}
% Hack to get title spacing right and microtype in TOCs
\microtypesetup{protrusion=false}
\titlespacing*{\chapter}{0pt}{0mm}{16pt plus 2pt minus 2pt}
\cleardoublepage
\addcontentsline{toc}{chapter}{Contents}
\tableofcontents
\cleardoublepage
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\cleardoublepage
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\addcontentsline{toc}{chapter}{Listings}
\lstlistoflistings
\printglossary[type=acronym, style=index, title=Acronyms]%
\printglossary[type=symbols, style=index, title=Symbols]%
\printglossary[style=index, title=Terminology]%
%\printunsrtglossary[style=index]%
\microtypesetup{protrusion=true}
\titlespacing*{\chapter}{0pt}{50mm}{16pt plus 2pt minus 2pt}
% Mainmatter is where the actual contents of the thesis goes
\mainmatter
\part{Introduction}
\input{chapters/introduction}
\input{chapters/background}
\input{chapters/materialsandmethods}
\input{chapters/results}
\input{chapters/conclusion}
\input{chapters/pointsofperspective.tex}
\AtNextBibliography{
\small
\setlength{\emergencystretch}{1em}
\linepenalty=500 % Higher values increase penalty; default is 10
\tolerance=500 % Lower tolerance encourages breaking
\hyphenpenalty=500
}
% Print the bibliography (and make it appear in the table of contents)
\printbibliography[heading=bibintoc]
\part{Appended papers}
\input{includes/includedpapers}
\appendix
\chapter{Something Extra}
\lipsum
\end{document}