\documentclass[a4paper,12pt,oneside]{karunya-thesis} % Use the custom thesis class file
\usepackage[none]{hyphenat} % Disable word hyphenation (no chopped-up words!)
\sloppy % Relax spacing to avoid overfull boxes

\onehalfspacing % Set line spacing to 1.5 (thesis standard)
\numberwithin{equation}{chapter} % Equations numbered per chapter (e.g., 2.1, 2.2…)


% -------------------------------
% DETAILS (FILL ONCE, auto-populates THROUGHOUT thesis)
% -------------------------------
% Scholar Details
% -------------------------------
\newcommand{\ScholarName}{Full Name of the Scholar} % Replace with your name
\newcommand{\RegNo}{REGISTER NUMBER} % University Registration Number
\newcommand{\ThesisTitle}{FULL TITLE OF THE THESIS IN ALL CAPS} % Title of your thesis
% -------------------------------
% Supervisor Details 
% -------------------------------
\newcommand{\SupervisorName}{Name of the Supervisor}
\newcommand{\SupervisorDesignation}{Designation of Supervisor} % e.g., Professor, Associate Professor, Assistant Professor
\newcommand{\SupervisorDivision}{Division Name} % e.g., Division/Department of ECE
\newcommand{\SupervisorInstitution}{Karunya Institute of Technology and Sciences}
% -------------------------------
% Joint-Supervisor Details (if any)(Toggle below)
% -------------------------------
\newcommand{\CoSupervisorName}{Name of the Joint-Supervisor}
\newcommand{\CoSupervisorDesignation}{Designation of Joint-Supervisor}
\newcommand{\CoSupervisorDivision}{Division of Joint-Supervisor}
\newcommand{\CoSupervisorInstitution}{Institution of Joint-Supervisor}
% -------------------------------
% Toggle for Joint-Supervisor
% -------------------------------
\newif\ifcosupervisor	% Define the toggle
\cosupervisortrue		% Uncomment if you have a Joint-supervisor
%\cosupervisorfalse		% Uncomment if you do NOT have a Joint-supervisor

% -------------------------------
% Other Details
% -------------------------------
\newcommand{\Department}{Name of the Division} % Division in which PhD is to be granted

\newcommand{\HoDName}{Name of the Head of the Division} % Head of the Division
\newcommand{\HoDDivision}{Name of the Division of HoD} % Division of HoD

\newcommand{\School}{Name of the School} % Name of the School
\newcommand{\DeanName}{Name of the Dean of the School} % Name of the Dean

\newcommand{\MonthYear}{January 2026} % Month and Year of submission
% -------------------------------

% Environment to kill hyphenation inside specific blocks
\newenvironment{nohyphen}
{\tolerance=1 % Also consider setting \pretolerance
	\emergencystretch=\maxdimen %
	\hyphenpenalty=10000
	\hbadness=10000} % Forces LaTeX to keep words whole

% -------------------------------
% Bibliography Styles (DO NOT CHANGE)
% -------------------------------
% (Default referencing style is APA, applicable university-wide across all divisions.)

 \newcommand{\referencestyle}{apa} % Social Sciences, Psychology, Education (Default - Use for all Divisions)
% \newcommand{\referencestyle}{ieee} % Engineering & Technology
% \newcommand{\referencestyle}{mla} % Literature & Arts
% \newcommand{\referencestyle}{chem-acs} % Chemistry (American Chemical Society style)
% \newcommand{\referencestyle}{acm} % Computer Science (Association for Computing Machinery)

% (Optional) Disable sorting if you want references in order of citation:
% \ExecuteBibliographyOptions{sorting=none}

% Setup BibLaTeX backend (biber) with chosen style
\usepackage[backend=biber,style=\referencestyle]{biblatex}
\addbibresource{./TeX_files/Back_Matter/references.bib} % The .bib file with your references

% Custom heading for bibliography (so it shows up in TOC properly)
\defbibheading{bibnumbered}[\refname]{%
	\chapter*{#1}
	\addcontentsline{toc}{chapter}{#1}
}

% --------------------------------------------------------------------
% PDF metadata for the generated thesis document.
% These fields populate the document properties (Title, Author,
% Subject, Keywords, Creator and Producer) of the final PDF file.
% --------------------------------------------------------------------
\hypersetup{
	pdftitle   = {\ThesisTitle},
	pdfauthor  = {\ScholarName},
	pdfsubject = {Doctoral Thesis, Karunya Institute of Technology and Sciences},
	pdfkeywords= {PhD Thesis, Karunya, KITS},
	pdfcreator = {LaTeX with hyperref},
	pdfproducer= {Karunya Institute of Technology and Sciences},
	pdfencoding=auto
}


\begin{document}
% -------------------------------
% Front matter page numbering (Roman numerals)
% -------------------------------
\pagenumbering{roman} % i, ii, iii, iv...
\pagestyle{plainroman} % Roman numbers at top-right

% Include front matter files (each in TeX_files/Front_Matter)(DO NOT change the order)(comment to remove)
\include{./TeX_files/Front_Matter/instructions} % LaTeX usage instructions (Comment this line before final thesis submission)
\include{./TeX_files/Front_Matter/titlepage} % Title page
\include{./TeX_files/Front_Matter/declaration} % Declaration page
\include{./TeX_files/Front_Matter/certificate} % Certificate
\include{./TeX_files/Front_Matter/abstract} % Abstract
\include{./TeX_files/Front_Matter/acknowledgement} % Acknowledgement

% -------------------------------
% Table of Contents, List of Tables, List of Figures
% -------------------------------
\cleardoublepage
\pagestyle{plainroman} % Keep Roman headers
\renewcommand{\contentsname}{\MakeUppercase{TABLE OF CONTENTS}} % TOC in all caps
\addcontentsline{toc}{chapter}{\hspace{7mm}TABLE OF CONTENTS} % Add TOC itself to TOC
\makeatletter
\let\ps@plain\ps@plainroman % Force first TOC page to have Roman header
\makeatother
\tableofcontents % Generate TOC

% List of Tables
\addcontentsline{toc}{chapter}{\hspace{7mm}LIST OF TABLES}
\listoftables
\thispagestyle{plainroman} % Roman page style for LoT

% List of Figures
\addcontentsline{toc}{chapter}{\hspace{7mm}LIST OF FIGURES}
\listoffigures
\thispagestyle{plainroman} % Roman page style for LoF

\include{./TeX_files/Front_Matter/symbols} % List of symbols (if any)

% -------------------------------
% Switch to Arabic numbering for main thesis chapters
% -------------------------------
\clearpage
\pagenumbering{arabic} % 1, 2, 3...
\setcounter{page}{1} % Reset to page 1

% Define footer style for main content
\fancypagestyle{plain}{
	\fancyhf{}  % clear header/footer
	\fancyfoot[C]{\thepage} % Page number in center footer
	\renewcommand{\headrulewidth}{0pt} % No header line
}
\pagestyle{plain} % Apply this style

% -------------------------------
% Main Thesis Chapters
% -------------------------------
\mainmatter
\include{./TeX_files/Chapter_01/chapter01} % Chapter 1
\include{./TeX_files/Chapter_02/chapter02} % Chapter 2
% Add more here, as required

% -------------------------------
% Back Matter
% -------------------------------
\backmatter % bibliography, glossary and index would go here.

\include{./TeX_files/Back_Matter/appendix} % Appendix
\printbibliography[heading=bibnumbered,title={\hspace{7mm}REFERENCES}] % References
\include{./TeX_files/Back_Matter/publications} % List of Publications
\include{./TeX_files/Back_Matter/cv} % Curriculum Vitae

\end{document}

% ----------------------------------------------------------------
% Acknowledgements (for internal template credits only)
% ----------------------------------------------------------------
% This LaTeX thesis template was compiled and customized
% by Dr. Tony Jose (Office of Research & Consultancy),
% for the Ph.D. scholars of
% Karunya Institute of Technology and Sciences, Coimbatore, India.
%
% With sincere thanks to:
% - The LaTeX community and contributors on TeX Stack Exchange
% - Developers of the biblatex, fancyhdr, geometry, and related packages
% - Overleaf, for democratizing LaTeX and providing a collaborative platform
% - ChatGPT (by OpenAI), for assistance in formatting, writing macros,
%   and generally making LaTeX a less lonely experience.
% ----------------------------------------------------------------
% Last updated: February 18, 2026.