\documentclass[a4paper,12pt,titlepage,oneside]{book}
\usepackage{times}
\usepackage[utf8]{inputenc}
\usepackage{caption}
\usepackage{lipsum}
\usepackage{amsmath,amsthm,amssymb,amsfonts}
\usepackage{comment}
\usepackage{multirow}
\usepackage{rotating, graphicx}
\usepackage{tabularx}
\usepackage{ragged2e}
\usepackage{textcomp}
\usepackage{titletoc}
\usepackage{listings}
\usepackage{setspace}
\usepackage[normalem]{ulem}
\useunder{\uline}{\ul}{}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage{fancyhdr} % To customize headers/footers
\usepackage{tocloft} % For customizing the Table of Contents
\usepackage[style=apa, sorting=nyt]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\addbibresource{references.bib} % replace with your actual .bib file
% Customizing the page numbering
\pagestyle{fancy}
\fancyhf{} % Clear headers and footers
\fancyfoot[R]{\thepage} % Align page numbers to the bottom-right
\renewcommand{\headrulewidth}{0pt} % Remove header line
\renewcommand{\footrulewidth}{0pt} % Remove footer line
% Configure hyperref
\hypersetup{
colorlinks=true,
linkcolor=black,
filecolor=black,
urlcolor=blue,
citecolor=black,
}
\urlstyle{same}
\lstset{
basicstyle=\ttfamily,
columns=fullflexible,
frame=single,
breaklines=true
}
% Custom formatting for Table of Contents, List of Figures, and List of Tables
\renewcommand{\cfttoctitlefont}{\bfseries\fontsize{14}{16}\selectfont}
\renewcommand{\cftloftitlefont}{\bfseries\fontsize{14}{16}\selectfont}
\renewcommand{\cftlottitlefont}{\bfseries\fontsize{14}{16}\selectfont}
\renewcommand{\cftdotsep}{1}
\renewcommand{\cftfigfont}{\fontsize{12}{14}\selectfont}
\renewcommand{\cfttabfont}{\fontsize{12}{14}\selectfont}
\renewcommand{\cftloftitlefont}{\bfseries\fontsize{14}{16}\selectfont}
\renewcommand{\cftfigpresnum}{Figure~}
\setlength{\cftfignumwidth}{3.75em}
\renewcommand{\cftfigaftersnum}{:~}
\renewcommand{\cftlottitlefont}{\bfseries\fontsize{14}{16}\selectfont}
\renewcommand{\cfttabpresnum}{Table~}
\setlength{\cfttabnumwidth}{3.75em}
\renewcommand{\cfttabaftersnum}{:~}
\usepackage[a4paper,%bindingoffset=0.5in,%
left=1.25in,right=1in,top=1in,bottom=1in,%
]{geometry}
\captionsetup{justification=raggedright, singlelinecheck=false} % Left-align captions
\begin{document}
% Title Page
\thispagestyle{empty}
\newpage
\setstretch{2.0}
\begin{center}
\text{ HAMAD BIN KHALIFA UNIVERSITY }\\
\vspace{1.0cm}
\text{ [COLLEGE NAME] }\\
% Please select one from below and paste in [COLLEGE NAME]
% COLLEGE OF HEALTH AND LIFE SCIENCES
% COLLEGE OF HUMANITIES AND SOCIAL SCIENCES
% COLLEGE OF ISLAMIC STUDIES
% COLLEGE OF LAW
% COLLEGE OF PUBLIC POLICY
% COLLEGE OF SCIENCE AND ENGINEERING
\vspace{2.0cm}
TITLE OF THESIS CENTERED, SIZE 14 PTS (16 PTS FOR ARABIC), ALL IN CAPS, LINE SPACING OF 1.5
\vspace{2.0cm}
BY
\vspace{1.0cm}
STUDENT’S NAME AS IT APPEARS IN THE TRANSCRIPT
\vspace{2.75cm}
A [Select Document Type] Submitted to the Faculty of\\
% Please select one from below and paste in [Select Document Type]
% Dissertation
% Project
% Thesis
\text{[College Name]}\\
% Please select one from below and paste in [College Name]
% College of Health and Life Sciences
% College of Humanities and Social Sciences
% College of Islamic Studies
% College of Law
% College of Public Policy
% College of Science and Engineering
In Partial Fulfillment\\ of the Requirements\\ for the Degree of\\
\text{[Master of XXX]/ [Doctor of Philosophy]}\\
\vspace{1.25cm}
[Month and Year]\\
% Example - December 2024
\textcopyright Student's Name. All Rights Reserved
\end{center}
% Start Roman numeral page numbering
\pagenumbering{roman}
\setcounter{page}{2} % Start from page 2
\newpage
\setstretch{1.5}
\begin{center}
\fontsize{14}{16}\selectfont
\textbf{ABSTRACT}
\end{center}
\justify
\raggedright
\phantomsection
\fontsize{12}{14}\selectfont
\setlength{\parindent}{0pt}
The abstract is mandatory and provides readers with a concise summary of the student’s work in this document. It should be single-spaced and not more than one page.\\
The HBKU thesis template is a Word Template document that opens in a new copy for you to work on while preserving the original/raw file for you to refer to when/if needed. You may delete the raw file if not needed.
\addcontentsline{toc}{section}{ABSTRACT}
\clearpage
\newpage
\setstretch{1.5}
% Custom formatting for the Table of Contents title
\begin{center}
\fontsize{14}{16}\selectfont % Set font size to 14pt
\textbf{TABLE OF CONTENTS} % Make the title bold
\end{center}
\vspace{-3.5cm}
% Suppress the default Table of Contents title
\renewcommand\contentsname{}
\renewcommand{\cftdotsep}{1}
% Set the font size of the contents to 12pt
\fontsize{12}{14}\selectfont
\tableofcontents
% List of Figures
\newpage
\begin{center}
\fontsize{14}{16}\selectfont
\textbf{LIST OF FIGURES}
\end{center}
\vspace{-3.0cm}
% Suppress the default List of Figures title
\renewcommand{\listfigurename}{}
\renewcommand{\cftdotsep}{1}
% Set the font size of the contents to 12pt
\fontsize{12}{14}\selectfont
\listoffigures
% List of Tables
\newpage
\begin{center}
\fontsize{14}{16}\selectfont
\textbf{LIST OF TABLES}
\end{center}
\vspace{-3.0cm}
% Suppress the default List of Figures title
\renewcommand{\listtablename}{}
\renewcommand{\cftdotsep}{1}
% Set the font size of the contents to 12pt
\fontsize{12}{14}\selectfont
\listoftables
%% Preface
\newpage
\setstretch{1.5}
\begin{center}
\fontsize{14}{16}\selectfont
\textbf{PREFACE}
\end{center}
\justify
\raggedright
\phantomsection
\fontsize{12}{14}\selectfont
This page is optional.
\addcontentsline{toc}{section}{{PREFACE}}
%% Acknowledgements
\newpage
\setstretch{1.5}
\begin{center}
\fontsize{14}{16}\selectfont
\textbf{ACKNOWLEDGEMENTS}
\end{center}
\justify
\raggedright
\phantomsection
\fontsize{12}{14}\selectfont
This page is optional. It is intended for acknowledgements.
\addcontentsline{toc}{section}{{ACKNOWLEDGEMENTS}}
%% Declaration
\newpage
\setstretch{1.5}
\begin{center}
\fontsize{14}{16}\selectfont
\textbf{DECLARATION}
\end{center}
\justify
\raggedright
\phantomsection
\setlength{\parindent}{0pt}
\fontsize{12}{14}\selectfont
This is to certify that the work described in this [document type] is entirely my own, unless otherwise referenced or acknowledged. This work has not previously been submitted for qualifications at any other academic institution. \\
\vspace{1 cm}
Signed\\
\vspace{0.5 cm}
Date: [Insert the Date]\\ % Insert the date in following format - MMMM d, yyyy
\addcontentsline{toc}{section}{{DECLARATION}}
\clearpage
%% Dedication
\newpage
\setstretch{1.5}
\begin{center}
\fontsize{14}{16}\selectfont
\textbf{DEDICATION}
\end{center}
\justify
\raggedright
\phantomsection
\fontsize{12}{14}\selectfont
This page is optional. You may dedicate your thesis/dissertation/project on this page.
\addcontentsline{toc}{section}{DEDICATION}
%% Acronyms
\newpage
\setstretch{1.5}
\begin{center}
\fontsize{14}{16}\selectfont
\textbf{ACRONYMS}
\end{center}
\justify
\raggedright
\phantomsection
\fontsize{12}{14}\selectfont
This page is optional. It is intended for acronyms used in the thesis.
\addcontentsline{toc}{section}{ACRONYMS}
%% Nomenclature
\newpage
\setstretch{1.5}
\begin{center}
\fontsize{14}{16}\selectfont
\textbf{NOMENCLATURE}
\end{center}
\justify
\raggedright
\phantomsection
\fontsize{12}{14}\selectfont
This page is optional. It is intended for naming systems adopted within the thesis.
\addcontentsline{toc}{section}{NOMENCLATURE}
% Chapter 1
\newpage
\pagenumbering{arabic}
\setstretch{1.5}
\justify
\raggedright
\phantomsection
\fontsize{14}{16}\selectfont
\setlength{\parindent}{0pt}
\textbf{CHAPTER 1: TITLE OF CHAPTER}
\\
\label{chap:title-of-chapter}
\addcontentsline{toc}{section}{CHAPTER 1: TITLE OF CHAPTER}
\fontsize{12}{14}\selectfont
\vspace{0.5 cm}
% Chapter 1.1
\phantomsection
\textbf{1.1 Title of 1\textsuperscript{st} Level Heading}
\label{sec:title-of-1st-level-heading}
\addcontentsline{toc}{subsection}{1.1 Title of 1st Level Heading}
\\
To ensure proper formatting of the chapter title and its inclusion in the table of contents, type it all in caps, then select all words, and go to Styles then click on HEADING 1. The title should be all caps, 14 points, bold, left indented (16 pts for Arabic).\\
As for the 1st level headings, capitalize the 1st letter in each main word, then select all and click on Heading 2 in Styles. They should be formatted as Bold, Left, 12 Pts (Arabic Thesis 14pts)\\
The page numbering restarts on the first page of chapter 1 in Arabic numbers.
\fontsize{12}{14}\selectfont
\vspace{0.5 cm}
% Chapter 1.2
\phantomsection
\textbf{1.2 Spacing, Font Type and Font Size}
\label{subsec:spacing_font_size}
\addcontentsline{toc}{subsection}{1.2 Spacing, Font Type and Font Size}
\\
Leave a blank line/space between paragraphs, before each new subheading, and between the end of a paragraph and the start of a table or a figure. Do not add space between 2 subheadings if there is no paragraph in between (check the example in the following page (1.4.1 and 1.4.1.1).
% Chapter 1.3
\phantomsection
\fontsize{12}{14}\selectfont
\vspace{0.5 cm}
\textbf{1.3 Margins}
\label{subsec:margins}
\addcontentsline{toc}{subsection}{1.3 Margins}
\\
Margins are set in this template.
% Chapter 1.4
\phantomsection
\fontsize{12}{14}\selectfont
\vspace{0.5 cm}
\textbf{1.4 Page Numbering}
\label{subsec:page_numbering}
\addcontentsline{toc}{subsection}{1.4 Page Numbering}
\\
Page numbers are placed right justified in the footer.
% Chapter 1.4.1
\phantomsection
\fontsize{12}{14}\selectfont
\vspace{0.5 cm}
\textbf{\textit{1.4.1 2\textsuperscript{nd} Level Heading, Bold, Italic, Left, 12 Pts, 1st Letter of Each Major Word Capital}}
\label{subsubsec:2nd_level_heading}
% For Following Section For Example - (1.4.1) Should be in Italics
\addcontentsline{toc}{subsection}{\textit{1.4.1 2nd Level Heading, Bold, Italic, Left, 12 Pts, 1st Letter of Each Major Word Capital}}
% Chapter 1.4.1.1
\phantomsection
\textit{1.4.1.1 Title page}
\label{par:title_page}
\addcontentsline{toc}{subsection}{\textit{1.4.1.1 Title page}}
\\
Students must adhere to the format of the title page as provided in this template.
% Chapter 1.4.2
\phantomsection
\fontsize{12}{14}\selectfont
\vspace{0.5 cm}
\textbf{\textit{1.4.2 Table of Contents}}
\\
\label{subsec:table_of_contents}
\addcontentsline{toc}{subsection}{1.4.2 Table of Contents}
\setlength{\parindent}{0pt}
The table of contents is to compile all headings presented in the text.\\
\clearpage
% Chapter 1.4.3
\setstretch{1.5}
\justify
\raggedright
\phantomsection
\fontsize{12}{14}\selectfont
\setlength{\parindent}{0pt}
\textbf{\textit{1.4.3 Lists of Figures and Tables}}
\\
\label{subsec:lists_of_figures_tables}
\addcontentsline{toc}{subsection}{\textit{1.4.3 Lists of Figures and Tables}}
Each table and figure can be numbered consecutively starting with 1 (e.g. Figure 1: Illustration of …) or by chapter using decimal numbering (Figure 1.1: Illustration of …).\\
% For inserting image example
\begin{figure}[h]
\includegraphics{images/hbku.jpg}
\caption{HBKU logo (Caption below figure)}
\label{fig:hbku-logo}
\end{figure}
% For table example
\begin{table}[h!]
\centering
\caption{Example of a caption above table (Caption above the table)}
\fontsize{12}{14}\selectfont
\begin{tabularx}{\textwidth}{l X X}
\hline
Programs & Total for 2014 & Total for 2016 \\
Master’s & 4 & 12 \\
PhD & 0 & 6 \\
\hline
\end{tabularx}
\end{table}
\clearpage
% Chapter 2
\newpage
\setstretch{1.5}
\justify
\raggedright
\phantomsection
\fontsize{14}{16}\selectfont
\setlength{\parindent}{0pt}
\textbf{CHAPTER 2: NEXT CHAPTER ON A NEW PAGE}
\addcontentsline{toc}{section}{CHAPTER 2: NEXT CHAPTER ON A NEW PAGE}
\label{s:NEXT CHAPTER ON A NEW PAGE}
\vspace{0.5 cm}
\fontsize{12}{14}\selectfont
\\
% Chapter 2.1
\phantomsection
\textbf{2.1 Starting a New Chapter on a New Page}
\label{sec:new_chapter_start}
\addcontentsline{toc}{subsection}{2.1 Starting a New Chapter on a New Page}
\\
Each chapter must start on a new page.
\vspace{0.5 cm}
\\
\setstretch{1.5}
% Chapter 2.2
\phantomsection
\textbf{2.2 References and Appendices}
\label{subsec:references_appendices}
\addcontentsline{toc}{subsection}{2.2 References and Appendices}
The end matter of the dissertation/thesis/project includes, in the following order:
\begin{itemize}
\setstretch{1.5}
\item References or Bibliography
\item Appendices
\end{itemize}
\clearpage
% References Section
\newpage
\setstretch{1.5}
\fontsize{14}{16}\selectfont
\textbf{REFERENCES/BIBLIOGRAPHY}
\justify % Justify the abstract text
\raggedright
\phantomsection
\fontsize{12}{14}\selectfont % Set the abstract text to 12pt font size
\setlength{\parindent}{0pt}
The spacing of the list is 1.5 line spacing with an empty line between references.
You are encouraged to format the list of references once all entries have been inserted.
\\
Example in APA 7th Edition:
\defbibheading{bibliography}[\refname]{%
\raggedright
\fontsize{14}{16}\selectfont
}
\printbibliography
\label{chap:references_bibliography}
\addcontentsline{toc}{section}{{REFERENCES/ BIBLIOGRAPHY}}
\clearpage
% This thesis uses bibtex -- check the included references.bib file to see how that works.
% Appendix Section
\newpage
\setstretch{1.5}
\fontsize{14}{16}\selectfont % Set font size to 14pt
\textbf{APPENDIX: TITLE OF APPENDIX}
\justify % Justify the abstract text
\raggedright
\phantomsection
\fontsize{12}{14}\selectfont % Set the abstract text to 12pt font size
\setlength{\parindent}{0pt}
If you have more than one appendix, add the number (APPENDIX 1: TITLE OF APPENDIX, APPENDIX 2...). Each appendix starts on a new page. \\
\label{chap:appendix_title}
\addcontentsline{toc}{section}{APPENDIX: TITLE OF APPENDIX}
\clearpage
\end{document}