KTH PhD Kappa Template
Författare
Edwin Bergstedt
Last Updated
för 4 år sedan
Licens
Creative Commons CC BY 4.0
Sammanfattning
Template to PhD Kappa at Machine Design, updated 16/4 2021
Template to PhD Kappa at Machine Design, updated 16/4 2021
%Template for the PhD Kappa at Machine Design, KTH
%Created by Edwin Bergstedt, last update 16/4 2021
\documentclass[10pt,twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage{nomencl}
%\usepackage{showframe} %Typesetting help - Show a frame around text boxes
\usepackage{subfiles} %To use subfiles for sections
\usepackage{graphicx} %To insert images
\usepackage[final]{pdfpages}
\usepackage{afterpage}
\usepackage[paperwidth=169mm, paperheight=239mm]{geometry}
\usepackage{fancyhdr} %Fancy header
\usepackage{textcomp}
\usepackage{gensymb} %Degree symbol
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage{siunitx}
\sisetup{scientific-notation=true}
\usepackage{hyperref} %Handle URL links
\usepackage{setspace}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{amsmath}
\usepackage[section]{placeins}
\usepackage[style=ieee,sorting=none]{biblatex}
\addbibresource{references.bib}
\usepackage{lmodern} %Set lmodern Sans Serif font
\renewcommand*\familydefault{\sfdefault}
\usepackage{epsfig}
\usepackage{wrapfig}
\usepackage[export]{adjustbox}
\usepackage{caption}
\captionsetup{justification=raggedright,singlelinecheck=false}
\usepackage{sectsty}
%Not sure if in use...
\newcommand{\placetextbox}[3]{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
\setbox0=\hbox{#3}% Put <stuff> in a box
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
\put(\LenToUnit{#1\paperwidth},\LenToUnit{#2\paperheight}){\vtop{{\null}\makebox[0pt][c]{#3}}}%
}%
}%
%Abbreviations
%Create ifstrequal with a letter and the corresponding group. Items generated in the Nomenclature section will be placed in a list of abbreviations and sorted alphabetically
\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{G}{Gear Parameters}{%
\ifstrequal{#1}{E}{Efficiency Parameters}{%
}}%
]}
%%Setup of the document to get the correct layout
%Setup pagestyle, numbering at bottom etc.
\fancypagestyle{IHA-fancy-style}{%
\fancyhf{}% Clear header and footer
\fancyhead[LE]{\slshape \leftmark}
\fancyhead[RO]{\slshape \rightmark}
\fancyfoot[LE,RO]{\thepage}% Custom footer
\renewcommand{\headrulewidth}{0pt}% Line at the header invisible, sot to 0.4 for visible
\renewcommand{\footrulewidth}{0pt}% Line at the footer invisible
}
% Redefine the plain page style
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyfoot[LE,RO]{\thepage}%
\renewcommand{\headrulewidth}{0pt}% Line at the header invisible
\renewcommand{\footrulewidth}{0pt}% Line at the footer invisible
}
\pagestyle{IHA-fancy-style}
%Set margins
\geometry{outer=18mm,inner=36mm,top=30mm,bottom=30mm}
%Adjust headheight
\setlength{\headheight}{14pt}
%Set chapter font size
\chapternumberfont{\Large}
\chaptertitlefont{\LARGE}
%Set graphics path
\graphicspath{{Figures/}{../Figures/}}
%Start of the document
\begin{document}
%Create the title page
\begin{titlepage}
\begin{centering}
\includegraphics[width=0.2\textwidth]{KTH_Logotyp_RGB_2013.eps}\par\vspace{1cm}
{\scshape\Large \textbf{TITLE} \par}
\vspace{1.5cm}
{\scshape\large SUB TITLE\par}
\vspace{1.5cm}
{\Large\itshape Author Name\par}
\vfill
\end{centering}
\begin{table}[b!]
\small
\begin{tabular}{lr}
Doctoral thesis & TRITA-ITM-AVL XXXX:XX \\
Department of Machine Design & ISSN XXXX-XXXX \\
Royal Institute of Technology & ISRN/KTH/MMK/R-XX/XX-SE \\
SE-100 44 Stockholm & ISBN XXXXXXXXXXX
\end{tabular}
\end{table}
\vfill
\newpage
\thispagestyle{empty}
\vspace*{\fill}
\small{\noindent TRITA-ITM-AVL XXXX:XX\\
ISSN XXXX-XXXX\\
ISRN/KTH/MMK/R-XX/XX-SE \\
ISBN XXXXXXXXXX}
\vspace{0.5cm}
\noindent \small{TITLE - SUB TITLE}\\
\small{Author Name}\\
\small{Doctoral thesis}
\vspace{0.5cm}
\noindent \small{Academic thesis, which with the approval of the Royal Institute of Technology, will be presented for public review in fulfilment of the requirements for a Doctor of Engineering in Machine Design.}
\vspace{0.5cm}
\noindent \small{The public review is held in Room Gladan on Friday, June 4th, 2021 at 10:00 AM. Room Gladan is located at floor 3, at Brinellv\"agen 85, Royal Institute of Technology, Stockholm}
\end{titlepage}
\newpage
%Start of the main document
% The text the chapters is written in individual files in the folder "Sections", the main.tex document will include them in the rendered document.
%I suggest using Mendeley for reference manegegement. Connect your Mendeley account to Overleaf, click on "New file" and choose Mendeley, select a suitable group from your Mendeley folder and name it "references.bib". Sync Mendeley and then go to references.bib and click "refresh" to update the references in Overleaf.
\frontmatter
\chapter*{Abstract}
\thispagestyle{empty}
\subfile{Sections/01-Abstract.tex}
%List of Keywords
\begin{table}[b!]
\small
\begin{tabular}{lr}
\textbf{Keywords}\\
KW1, KW2, KW3, KW4, KW5
\end{tabular}
\end{table}
\thispagestyle{empty}
\newpage
\section*{Sammanfattning}
\thispagestyle{empty}
\subfile{Sections/02-Sammanfattning.tex}
%List of Keywords
\begin{table}[b!]
\small
\begin{tabular}{lr}
\textbf{Nyckelord}\\
KW1, KW2, KW3, KW4, KW5
\end{tabular}
\end{table}
\newpage
\section*{Preface}
\subfile{Sections/03-Preface.tex}
\newpage
\section*{List of appended papers}
\subfile{Sections/04-ListAppPapers.tex}
\newpage
\section*{Division of work between authors}
\subfile{Sections/05-DivisionOfWork.tex}
\newpage
\clearpage{\pagestyle{empty}\cleardoublepage} %Clears page header/footer if empty page.
\tableofcontents
\newpage
\clearpage{\pagestyle{empty}\cleardoublepage} %Clears page header/footer if empty page.
\subfile{Sections/06-Nomenclature.tex}
\newpage
\clearpage{\pagestyle{empty}\cleardoublepage} %Clears page header/footer if empty page.
\mainmatter
\chapter{Introduction}
\subfile{Sections/07-Introduction.tex}
\clearpage{\pagestyle{empty}\cleardoublepage} %Clears page header/footer if empty page.
\chapter{Background}
\subfile{Sections/08-Background.tex}
\clearpage{\pagestyle{empty}\cleardoublepage} %Clears page header/footer if empty page.
\chapter{Method}
\subfile{Sections/09-Method.tex}
\clearpage{\pagestyle{empty}\cleardoublepage} %Clears page header/footer if empty page.
\chapter{Summary of appended papers}
\subfile{Sections/10-SummaryAppPapers.tex}
\clearpage{\pagestyle{empty}\cleardoublepage} %Clears page header/footer if empty page.
\chapter{Discussion}
\subfile{Sections/11-Discussion.tex}
\clearpage{\pagestyle{empty}\cleardoublepage} %Clears page header/footer if empty page.
\chapter{Conclusions}
\subfile{Sections/12-Conclusions.tex}
\clearpage{\pagestyle{empty}\cleardoublepage} %Clears page header/footer if empty page.
\chapter{Future Work}
\subfile{Sections/13-FutureWork.tex}
\clearpage{\pagestyle{empty}\cleardoublepage} %Clears page header/footer if empty page.
%Bibliography
\printbibliography
\clearpage{\pagestyle{empty}\cleardoublepage} %Clears page header/footer if empty page.
%Appended papers, place the appended papers in the folder "Papers" and input title and authors. Under the includepdf select the pdf and set the page number to correctly match the document.
\chapter{Appended papers}
\chapter*{Paper A}
\placetextbox{0.95}{0.617}{\fcolorbox{black}{black}{\textcolor{white}{\fontsize{70}{84}\selectfont A }}}%
\onehalfspacing
\textit{"TITLE"}\\
Author1, Author 2, Author XX\\
Journal Year
\newpage
%\includepdf[pages=2-10]{Papers/Paper_A.pdf}
\chapter*{Paper B}
\placetextbox{0.95}{0.534}{\fcolorbox{black}{black}{\textcolor{white}{\fontsize{70}{84}\selectfont B }}}%
\textit{"TITLE"}\\
Author1, Author 2, Author XX\\
Journal Year
\newpage
%\includepdf[pages=4-14]{Papers/Paper_B.pdf}
\chapter*{Paper C}
\placetextbox{0.948}{0.451}{\fcolorbox{black}{black}{\textcolor{white}{\fontsize{70}{84}\selectfont C }}}%
\textit{"TITLE"}\\
Author1, Author 2, Author XX\\
Journal Year
\newpage
%\includepdf[pages=1-9]{Papers/Paper_C.pdf}
\chapter*{Paper D}
\placetextbox{0.954}{0.368}{\fcolorbox{black}{black}{\textcolor{white}{\fontsize{70}{84}\selectfont D }}}%
\textit{"TITLE"}\\
Author1, Author 2, Author XX\\
Journal Year
\newpage
%\includepdf[pages=1-8]{Papers/Paper_D.pdf}
\chapter*{Paper E}
\placetextbox{0.945}{0.285}{\fcolorbox{black}{black}{\textcolor{white}{\fontsize{70}{84}\selectfont E }}}%
\textit{"TITLE"}\\
Author1, Author 2, Author XX\\
Journal Year
\newpage
%\includepdf[pages=1-22]{Papers/Paper_E.pdf}
\end{document}