\documentclass[15pt,twoside]{report} \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{float} \usepackage{fancyhdr} \usepackage[nohyperlinks, printonlyused, withpage, smaller]{acronym} \usepackage[sorting=nyt,backend=biber,style=authoryear]{biblatex} \usepackage[inkscapeformat=png]{svg} \usepackage{booktabs,multirow,array} \usepackage{listings} \usepackage{xcolor} \usepackage{amsmath} \usepackage[font=small,labelfont=bf,tableposition=top]{caption} \usepackage{tikz} \usepackage{tocloft} \usepackage{enumitem} \usepackage{appendix} \usetikzlibrary{positioning} \captionsetup[table]{skip=5pt} % Customize list of figures appearance in table of contents \renewcommand{\cftfigpresnum}{\figurename\ } \setlength{\cftfigindent}{0pt} \setlength{\cftfignumwidth}{6.5em} \definecolor{codegreen}{rgb}{0,0.6,0} \definecolor{codegray}{rgb}{0.5,0.5,0.5} \definecolor{codepurple}{rgb}{0.58,0,0.82} \definecolor{backcolour}{rgb}{0.95,0.95,0.92} % Define the page style "mystyle" for the fancyhdr package \fancypagestyle{mypagestyle}{ % Clear all header and footer fields \fancyhf{} % Set the header to display the chapter name on the right side \fancyhead[R]{\leftmark} % Set the footer to display the page number on the center \fancyfoot[C]{\thepage} % Set the footer line to appear (change 0pt to desired line thickness) \renewcommand{\footrulewidth}{0.4pt} } \lstdefinestyle{mystyle}{ backgroundcolor=\color{backcolour}, commentstyle=\color{codegreen}, keywordstyle=\color{magenta}, numberstyle=\tiny\color{codegray}, stringstyle=\color{codepurple}, basicstyle=\ttfamily\footnotesize, breakatwhitespace=false, breaklines=true, captionpos=b, keepspaces=true, numbers=left, numbersep=5pt, showspaces=false, showstringspaces=false, showtabs=false, tabsize=2 } \lstset{style=mystyle} \graphicspath{ {images/} } \renewbibmacro*{url+urldate}{% \printfield{url}% \iffieldundef{urlyear} {} {\setunit*{\addspace}% \printtext[urldate]{\printurldate}}} \DeclareFieldFormat{url}{Available at\addcolon\space\url{#1}} \DeclareFieldFormat{urldate}{\\Accessed on\addcolon\space#1} \addbibresource{References.bib} \includeonly{preliminary/title, % preliminary/affidavit, % preliminary/abstract, % preliminary/acronyms, % chapters/introduction, % chapters/chapter2,% chapters/chapter3,% chapters/chapter4,% chapters/chapter5,% chapters/chapter6,% chapters/chapter7,% chapters/chapter1,% chapters/conclusion, % chapters/appendix% } \begin{document} %--------------- Prelimanary pages ------------- %-------------------------------------------- \include{preliminary/title.tex} \include{preliminary/affidavit.tex} \include{preliminary/abstract.tex} \pagenumbering{roman} \pagestyle{plain} \tableofcontents \clearpage %----------------- chapters -------------------- \pagestyle{mypagestyle} \pagenumbering{arabic} %--------------------------------------- \include{chapters/introduction.tex} \include{chapters/chapter2} \include{chapters/chapter3} \include{chapters/chapter4} \include{chapters/chapter5} \include{chapters/chapter6} \include{chapters/chapter7} \include{chapters/chapter1} \include{chapters/conclusion} \pagenumbering{roman} \pagestyle{mypagestyle} % Add the List of Figures to the table of contents \cleardoublepage % Ensure the correct page \addcontentsline{toc}{chapter}{\listfigurename} \listoffigures \addcontentsline{toc}{chapter}{\listtablename} \listoftables \lstlistoflistings \include{preliminary/acronyms} \clearpage % \printglossary[type=\acronymtype] % \printglossary \addcontentsline{toc}{chapter}{Bibliography} \printbibliography[title={References}] \defbibheading{bibempty}{} \let\oldbib\thebibliography \let\endoldbib\endthebibliography \renewenvironment{thebibliography} {\vspace{\baselineskip}\begin{oldbib}} {\end{oldbib}\vspace{\baselineskip}} \addcontentsline{toc}{chapter}{Appendices} \appendix \include{chapters/appendix.tex} \end{document}