\documentclass[12pt, a4paper, oneside]{article}
\usepackage{setspace}
\usepackage{fontspec}
\usepackage{mathptmx}
% \setmainfont{Times New Roman}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\graphicspath{ {figures/} }
\usepackage{array}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[labelfont=bf]{caption}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{tensor}
\usepackage{setspace}
\usepackage[T1]{fontenc}
\onehalfspacing
\usepackage{hyperref}
\usepackage{apacite}
\usepackage[acronym,nomain]{glossaries}
\usepackage{geometry}
\geometry{left=3.5cm, right=2.5cm, top=2.5cm, bottom=2.5cm}
\usepackage{blindtext}
% Generate the glossary
\makeglossaries
%\renewcommand{\BAstyle}{\bfseries}
\usepackage{chngcntr}
\counterwithin{figure}{section}
\numberwithin{equation}{section} %sets equation numbers .
\counterwithin{table}{section}
\usepackage{silence}
\WarningFilter{latex}{Command \InputIfFileExists}
%%% For accessing system, OTF and TTF fonts
%%% (would have been loaded by polylossia anyway)
\usepackage{fontspec}
\usepackage{xunicode} %% loading this first to avoid clash with bidi/arabic
%%% For language switching -- like babel, but for xelatex
\usepackage{polyglossia}
%%% For the xelatex (and other LaTeX friends) logos
\usepackage{hologo}
%%% For the awesome fontawesome icons!
\usepackage{fontawesome}
%\usepackage[hyphens]{url}
\usepackage[explicit]{titlesec}
\titleformat{\section}[display]
{\Large\bfseries\centering}{\section}
{20pt}{\Large\MakeUppercase{#1}}
\titlespacing*{\section}
{0pt}{0pt}{20pt}
\setmainlanguage{english}
\setotherlanguages{hindi}
\newfontfamily\devanagarifont[Script=Devanagari]{Kalimati}
\begin{document}
\onehalfspacing
\clearpage \thispagestyle{empty}
\input{titlepage}
\pagenumbering{roman}
\newpage
\input{Recommendation}
\input{Declaration}
\input{Letter of Forward}
\input{Board of examination and certificate of approval}
\input{Acknowledgement}
\input{Abstract}
\input{sodhsar}
\input{List of acronyms and abbreviations}
\input{List of Tables}
\input{List of figures}
\tableofcontents
\newpage
\input{CHAPTER 1: INTRODUCTION}
\newpage
\input{CHAPTER 2: LITERATURE REVIEW}
\newpage
\input{CHAPTER 3: MATERIALS AND METHODS}
\newpage
\input{CHAPTER 4: RESULTS AND DISCUSSION}
\newpage
\input{CHAPTER 5: CONCLUSION AND RECOMMENDATION}
\newpage
\bibliographystyle{apacite}
\bibliography{references}
% \input{APPENDIX}
\end{document}