% ========================================================================================
% Author: Amrita Das Tipu
% Date: October 1st, 2023
% Section Description: Primarily generated using ChatGPT
% Reviewers: Priyanka Roy, Md. Fahad, Prashant Karna, Sonu Kumar Keshari, Zahidul Islam
% This template serves as a demonstration for thesis papers at HSTU, Bangladesh.
% Feel free to modify, distribute, and adapt it according to your needs.
% ========================================================================================
\documentclass[a4paper, 12pt]{report}
% for line spacing 1.5 set value to 1.3
\linespread{1.3}
% set page margins
\usepackage[left=1.5in, right=1in, top=1.25in, bottom=1.25in]{geometry}
% set fonts
\usepackage{fontspec}
% for using other fonts, upload them to the project and create new command like this
\newfontface{\myfont}{[kalpurush.ttf]}
% times new roman font
% \usepackage{times} % for the old times new roman font
\usepackage{newtxtext, newtxmath} % for the times new roman font in MS word
% set captions
\usepackage{caption, subcaption}
\captionsetup[table]{skip=10pt}
% set no paragraph indent
\setlength{\parindent}{0pt}
% set page styles
\usepackage{fancyhdr}
\fancypagestyle{body}{
\fancyhead[L]{}
\fancyhead[R]{\chaptername\ \thechapter\ --\ \leftmark}
\renewcommand{\chaptermark}[1]{\markboth{##1}{##1}}
}
\fancypagestyle{plain}{%
\fancyhf{}% clear all header and footer fields
\fancyfoot[R]{{\thepage}} % except the center
\renewcommand{\headrulewidth}{0pt}%
\renewcommand{\footrulewidth}{0pt}%
}
\setlength{\headheight}{15pt}
% otherr packages
\usepackage{float}
\usepackage{dashrule}
\usepackage{tabularx, booktabs, multirow, multicol}
\usepackage{setspace}
\usepackage{ragged2e}
\usepackage{algorithm, algorithmicx, algpseudocode}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{cite, url}
\usepackage[acronyms, toc, nonumberlist, nogroupskip, nopostdot, style=superheader]{glossaries}
% for chapter names in single page
\usepackage [newlinetospace]{titlesec}
\usepackage[toc, page]{appendix}
% set depth of table of contents and section number
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{3}
% default path to image files
\graphicspath{{images/}}
% set abbreviations path
\makenoidxglossaries
\glsnoexpandfields
\loadglsentries{chapters/abbreviation}
% custom commands
\renewcommand{\bibname}{\centering References}
\newcommand{\TextUnderscore}{\rule{.4em}{.4pt}}
\renewcommand{\contentsname}{Table of Contents}
% ========================================================================================
% Change values of these variables
% ========================================================================================
\def\thesistitle{A Template for Writing Thesis Report for HSTU (Title)}
\def\coursecode{CSE 452}
\def\coursetitle{Project and Thesis Sessional}
\def\submitdate{October, 2023}
% member A
\def\authorA{Member A}
\def\authorAid{000000}
\def\authorAsession{YYYY}
\def\authorAemail{membera@gmail.com}
% member B
\def\authorB{Member B}
\def\authorBid{000000}
\def\authorBsession{YYYY}
\def\authorBemail{memberb@gmail.com}
% member C
\def\authorC{Member C}
\def\authorCid{000000}
\def\authorCsession{YYYY}
\def\authorCemail{memberc@gmail.com}
% supervisor
\def\supervisor{Supervisor Name}
\def\supervisorDesignation{Designation}
% cosupervisor
\def\cosupervisor{Co-supervisor Name}
\def\cosupervisorDesignation{Designation}
% ....................... Document begins here ....................... %
\begin{document}
% for removing space around align command
\setlength{\abovedisplayskip}{-15pt}
\setlength{\belowdisplayskip}{0pt}
\setlength{\abovedisplayshortskip}{0pt}
\setlength{\belowdisplayshortskip}{0pt}
\pagestyle{plain}
\pagenumbering{roman}
\input{chapters/title}
\newpage
\addcontentsline{toc}{chapter}{Certificate}
\input{chapters/certificate}
\newpage
\addcontentsline{toc}{chapter}{Declaration}
\input{chapters/declaration}
\newpage
\addcontentsline{toc}{chapter}{Acknowledgment}
\chapter*{\centering Acknowledgment}
\input{chapters/acknowledgment}
\newpage
\addcontentsline{toc}{chapter}{Dedication}
\chapter*{\centering Dedication}
\input{chapters/dedication}
\newpage
% table of contents, figures, tables, algorithms, acronyms etc.
\addcontentsline{toc}{chapter}{Table of Contents}
\tableofcontents
\newpage
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\newpage
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\newpage
\addcontentsline{toc}{chapter}{List of Algorithms}
\listofalgorithms
% \newpage
% \glsaddall % for displaying both used and unused abbreviations
\setlength{\glspagelistwidth}{0.2\linewidth}
\setlength{\glsdescwidth}{0.8\linewidth}
\printnoidxglossary[type=acronym,sort=letter,title={List of Abbreviations}]
\newpage
% .................................................................. %
% start the report from abstract to conclusion
\addcontentsline{toc}{chapter}{Abstract}
\chapter*{\centering Abstract}
\input{chapters/abstract}
\newpage
{
% for seperating chapter title in a new page
\titleformat{name=\chapter}[display]{\vfill\filcenter\bfseries}{\huge\chaptername~\thechapter}{0ex}{\Huge}
[\vfill\null\thispagestyle{empty}\clearpage]
\titlespacing{\chapter}{0pt}{0ex}{0ex}
\pagestyle{body}
\pagenumbering{arabic}
\chapter{Introduction}
\label{chapter:introduction}
\input{chapters/introduction}
\newpage
\chapter{Literature Review}
\label{chapter:literature}
\input{chapters/literature}
\newpage
\chapter{Proposed Approach}
\label{chapter:methodology}
\input{chapters/methodology}
\newpage
\chapter{Results and Discussion}
\label{chapter:experiment}
\input{chapters/results}
\newpage
\chapter{Conclusion and Future Work}
\label{chapter:conclusion}
\input{chapters/conclusion}
\newpage
}
% .................................................................. %
% references
\pagestyle{plain}
\bibliographystyle{ieeetr} % change to other styles if necessary
\addcontentsline{toc}{chapter}{References}
\bibliography{references}
% .................................................................. %
% Appendix
% Uncomment this part to add appendix
% \newpage
% \pagestyle{body}
% \begin{appendices}
% \input{chapters/appendix}
% \end{appendices}
\end{document}