\documentclass[a4paper, 12pt]{report}
%---PREAMBLE BEGINS HERE---
\usepackage{graphicx} % Required for inserting images
\usepackage[a4paper]{geometry} % Required for changing page size
\usepackage{titlesec} % Required for modifying section titles
\usepackage{minted}   % Required for styling codes
\usepackage{amsmath, amsthm, amsfonts} % Required for advance mathemetical and font fromats
\usepackage{mathptmx} % Sets font to Times New Roman
\usepackage[skip=18pt, indent=40pt]{parskip}    % for indenting the paragraphs
\usepackage{setspace}   % Required for line spacicngs
\usepackage[acronym, nomain, section=section]{glossaries}   % Required for making glossaries and acronyms
\usepackage{glossaries-extra}   % Required for extra changes in glossaries
\usepackage[nottoc]{tocbibind}  % for adding lists to Table of Contents
\usepackage{ifthen}     % Requried for conditional statements
\usepackage{tocloft}    % Required for modifying table of contents
\usepackage{lipsum}     % Required to generate lorem texts
\usepackage{enumitem}   % Required to modify items and bullet points
\usepackage{fancyhdr}
\usepackage{hyperref}
\fancyhf{} % Clear all header and footer fields
\fancyfoot[C]{\thepage} % Place the page number at the center of the footer
\renewcommand{\headrulewidth}{0pt} % Remove header line
\renewcommand{\footrulewidth}{0pt} % Remove footer line
\setlist[itemize]{noitemsep, topsep=0pt} % Adjust spacing for itemize
\setlist[enumerate]{noitemsep, topsep=0pt} % Adjust spacing for enumerate
% Creating new style acronyms for tabulating acronyms
\newglossarystyle{acronyms}{%
  \renewenvironment{theglossary}{\begin{tabular}{ll}}{\end{tabular}}%
  \renewcommand*{\glossaryheader}{}%
  \renewcommand*{\glsgroupheading}[1]{}%
  \renewcommand*{\glossentry}[2]{\glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}} & \glossentrydesc{##1}\tabularnewline}%
  \renewcommand*{\subglossentry}[3]{\glstarget{##2}{\glossentryname{##2}} & \glossentrydesc{##2}\tabularnewline}%
  \renewcommand*{\glsgroupskip}{}%
}
\makeglossaries
% defining the page margins
\newgeometry{
    top=1in,
    bottom=1in,
    inner=1.5in,
    outer=1in,
}
% defining variables, DO CHANGE THIS BEFORE COMPILE
\newcommand{\projectTitle}{\textless My Project Title \textgreater}
\newcommand{\projectDate}{August, 2023}
\newcommand{\projectAuthor}{Niyoj Oli}
% Paragraph formating gor heading and normal paragraphs
\titleformat{\chapter}
   {\fontsize{12pt}{12pt}\bfseries\uppercase}{\thechapter.}{1em}{}[\vspace{-\parskip}]
\titlespacing*{\chapter}{0pt}{0pt}{12pt} % Adjust spacing
\titleformat{\section}
   {\fontsize{12pt}{12pt}\bfseries}{\thesection}{1em}{}
\titlespacing*{\section}{0pt}{18pt}{10pt} % Adjust spacing
\titleformat{\subsection}
   {\fontsize{12pt}{12pt}\bfseries}{\thesubsection}{1em}{}
\titlespacing*{\subsection}{0pt}{18pt}{8pt} % Adjust spacing
\titleformat{\subsubsection}
   {\fontsize{12pt}{12pt}\bfseries}{\thesubsubsection}{1em}{}
\titlespacing*{\subsubsection}{0pt}{0pt}{6pt} % Adjust spacing
\setcounter{secnumdepth}{3}
% Customizing chapter section in Table of Contents
\renewcommand{\cftfigpresnum}{Figure\ }
\setlength{\cftfignumwidth}{5em}
\renewcommand{\cfttabpresnum}{Table\ }
\setlength{\cfttabnumwidth}{4.5em}
\renewcommand{\contentsname}{Table of Contents}     % changing the name of TOC page
\setlength{\cftbeforechapskip}{6pt}     % Spaces between two toc titles
\renewcommand{\cftchapaftersnum}{.}     % Adds a dot after chapter number
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}  % Dotted lines
\renewcommand{\cftchapfont}{\bfseries}  % Bold chapter titles
% Customize Table of Contents title format
\renewcommand{\cfttoctitlefont}{\fontsize{12pt}{12pt}\bfseries}
\setlength{\cftbeforetoctitleskip}{0pt} % Adjust spacing before TOC title
\setlength{\cftaftertoctitleskip}{12pt}  % Adjust spacing after TOC title
% Customize List of Figures title format
\renewcommand{\cftloftitlefont}{\fontsize{12pt}{12pt}\bfseries}
\setlength{\cftbeforeloftitleskip}{20pt} % Adjust spacing before LOF title
\setlength{\cftafterloftitleskip}{20pt}  % Adjust spacing after LOF title
% Customize List of Tables title format
\renewcommand{\cftlottitlefont}{\fontsize{12pt}{12pt}\bfseries}
\setlength{\cftbeforelottitleskip}{20pt} % Adjust spacing before LOF title
\setlength{\cftafterlottitleskip}{20pt}  % Adjust spacing after LOF title
\hypersetup{
  pdfauthor={\projectAuthor},
  pdftitle={\projectTitle}
}
\title{\projectTitle}
\author{Niyoj Oli}
\date{\projectDate}
\doublespacing     % line spacing sets to 1.5 for every pagraphs
%---PREAMBLE ENDS HERE---
\begin{document}
\include{includes/acronyms}
%---MAIN DOCUMENT BEGINS HERE---
\include{includes/coverpage}
\onehalfspacing
\pagenumbering{roman} % Begin roman page numbers from second page
\pagestyle{plain} % Plain page style for Roman pages
\include{includes/copyright}
\include{includes/acknowledgemt}
\include{includes/abstract}
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables
\newpage
\addcontentsline{toc}{chapter}{List of Abbreviations} % Manually add glossary to TOC
\printglossary[type=acronym,style=acronyms]
\newpage
\pagenumbering{arabic}  % Page numbering starts as 1,2...
\pagestyle{fancy}    % Required for arabic
\chapter{Introduction}
\lipsum[10]
\section{Background Introduction}
\lipsum[15]
\section{Motivation}
\lipsum[5]
\lipsum[10]\cite{einstein}
\section{Objectives}
The main objectives of the program are listed below:
\begin{itemize}
    \item Objective 1
    \item Objective 2
\end{itemize}
\section{Scope}
\lipsum[5]
\chapter{Literature Review}
\section{How to use images?}
\begin{figure}[h]
    \centering
    \includegraphics[scale=0.1]{images/einstein.jpg}
    \caption{Image of a Einstein}
    \label{fig:einstein}
\end{figure}
\section{How to use tables?}
\begin{table}[htb]
    \centering
    \begin{tabular}{|c|c|}
        \hline
         Male & Female \\
         \hline
         1 & 4\\
         \hline
         5 & 6\\
         \hline
    \end{tabular}
    \caption{Table representing populations}
    \label{tab:population}
\end{table}
\chapter{Methodology}
\chapter{System Description}
\chapter{Result and Analysis}
\chapter{Conclusion and Future Enhancement}
\appendix
\chapter{Appendices}
\section{Title 1}
\section{Title 2}
\section{Title 3}
\bibliographystyle{ieeetr}
\bibliography{includes/ref}
%use \cite{} to cite the part taken as refernce
%---MAIN DOCUMENT ENDS HERE---
\end{document}