\documentclass{report}
\usepackage[top=3.5cm,right=3.5cm,bottom=3.5cm,left=3.5cm, footskip=2cm]{geometry}
\makeatletter
\usepackage{graphicx} % بسته‌های مورد نیاز خود را در اینجا بنویسید، مانند:
\usepackage[explicit]{titlesec}
\usepackage[pagebackref=true,colorlinks,linkcolor=blue,filecolor=green,urlcolor=black ,citecolor=magenta]{hyperref}

\usepackage[font={scriptsize,bf}]{caption}
\usepackage{float}
\usepackage{multirow}
\usepackage{colortbl}
\usepackage[table,xcdraw]{xcolor}
\linespread{1.5}
\usepackage{subfig}
\setcounter{secnumdepth}{5}

\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ {\fontfamily{cmr}\selectfont\thechapter}}{20pt}{\hyperlink{chap-\thechapter}{\Huge#1}
	\addtocontents{toc}{\protect\hypertarget{chap-\thechapter}{}}}
\titleformat{name=\chapter,numberless}
{\normalfont\huge\bfseries}{}{-20pt}{\Huge#1}
\titleformat{\section}
{\normalfont\Large\bfseries}{\thesection}{1em}{\hyperlink{sec-\thesection}{#1}
	\addtocontents{toc}{\protect\hypertarget{sec-\thesection}{}}}
\titleformat{name=\section,numberless}
{\normalfont\Large\bfseries}{}{0pt}{#1}
\titleformat{\subsection}
{\normalfont\large\bfseries}{\thesubsection}{1em}{\hyperlink{subsec-\thesubsection}{#1}
	\addtocontents{toc}{\protect\hypertarget{subsec-\thesubsection}{}}}
\titleformat{name=\subsection,numberless}
{\normalfont\large\bfseries}{\thesubsection}{0pt}{#1}

\titleformat{\subsubsection}
{\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{\hyperlink{subsubsec-\thesubsubsection}{#1}
	\addtocontents{toc}{\protect\hypertarget{subsubsec-\thesubsubsection}{}}}
\titleformat{name=\subsubsection,numberless}
{\normalfont\normalsize\bfseries}{\thesubsubsection}{0pt}{#1}


\usepackage{tasks}
\usepackage{amssymb}
\usepackage[inline,shortlabels]{enumitem}
\usepackage{tabto}
\usepackage{supertabular}
\usepackage{pdflscape}
\usepackage{longtable}
\usepackage{rotating}
\usepackage{tablefootnote}

\usepackage{amsthm}
%\usepackage{makeidx}‎‎
\usepackage[extrafootnotefeatures]{xepersian} % بسته زی‌پرشین را در اینجا فراخوانی نمایید
\threecolumnfootnotes
\settextfont[Scale=1.2]{B Nazanin}

\setlatintextfont[Scale=1]{Times New Roman}
\ExplSyntaxOn
\cs_set_eq:NN
\etex_iffontchar:D
\tex_iffontchar:D
\cs_undefine:N \c_one
\int_const:Nn \c_one { 1 } 
\ExplSyntaxOff
\setdigitfont{Yas}

\begin{document}
	\pagenumbering{adadi}

	\mbox{}

	\newpage
	               % صفحه اول و چکیده فارسی
	\pagenumbering{abjad}
	\addtocontents{toc}{\textbf{عنوان}~\hfill\textbf{صفحه}\par}
	\tableofcontents        % فهرست مندرجات را تولید می‌کند.
	\addtocontents{lof}{\textbf{عنوان}~\hfill\textbf{صفحه}\par}
	\listoffigures          % لیست اشکال را تولید می‌کند.
	\addtocontents{lot}{\textbf{عنوان}~\hfill\textbf{صفحه}\par}
	\listoftables
	
	
	% هر فصل خود را در فایلی جداگانه ذخیره نموده با نامی با مسمی ذخیره نمایید.
	\include{chapter1}                   % فصل ۱: مقدمه
	\include{chapter2}       % فصل ۲: مروری بر ادبیات مسئله
	
	
	
	\bibliographystyle{acm-fa}  		%مراجع
	\bibliography{MyRef}
	\newpage
	%\include{FTerms}                   % اصطلاحات
	%\include{dicfa2en}        % واژه‌نامه فارسی به انگلیسی
	%\include{dicen2fa}        % واژه‌نامه انگلیسی به فارسی
	\appendix     %فصلهای پس از این قسمت به عنوان ضمیمه خواهند آمد.
	
	\renewcommand{\thechapter}{\arabic{chapter}}
	
	\titleformat{\chapter}[display]
	{\normalfont\huge\bfseries}{\chaptertitlename\ {\fontfamily{cmr}\selectfont\thechapter}}{20pt}{\hyperlink{chap-\thechapter}{\large#1}
		\addtocontents{toc}{\protect\hypertarget{chap-\thechapter}{}}}
	\titleformat{name=\chapter,numberless}
	{\normalfont\huge\bfseries}{}{-20pt}{\Huge#1}
	
	
	\include{appendix1}
	
                  % عنوان و چکیده انگلیسی
	%\printindex
\end{document}