\documentclass{report}
\makeatletter
\usepackage{graphicx} % بسته‌های مورد نیاز خود را در اینجا بنویسید، مانند:
\usepackage[explicit]{titlesec}
\usepackage[pagebackref=true,colorlinks,linkcolor=blue,filecolor=green,urlcolor=black ,citecolor=magenta]{hyperref}
\usepackage{tablefootnote}
\usepackage[font={scriptsize,bf}]{caption}

\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}



\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}

%\input{myNewCommands}
%x\onehalfspacing
%\makeindex

%\usepackage{rotating, graphicx}
%\begin{document}
%	\begin{sidewaystable}چرخش جدول به شکل لنداسکیپپپپپپپپپپپپپپپپپپپپپپپپپپپ
	%		\includegraphics[width=\textwidth]{capsules}
	%		\caption{Result of a long day  at work.}
	%	\end{sidewaystable}
%\end{document}
\begin{document}
	
	\include{blankpage} 
	\mbox{}
	
	
	\newpage
	\include{CoverPage}                   % صفحه اول و چکیده فارسی
	\pagenumbering{alph}
	\tableofcontents        % فهرست مندرجات را تولید می‌کند.
	\listoffigures          % لیست اشکال را تولید می‌کند.
	\listoftables
	
	
	% هر فصل خود را در فایلی جداگانه ذخیره نموده با نامی با مسمی ذخیره نمایید.
	\include{chapter1}                   % فصل ۱: مقدمه
	%\include{chapter2}       % فصل ۲: مروری بر ادبیات مسئله
	%\include{chapter3}                    %فصل ۳:روش تحقیق  
	%\include{chapter4}  %فصل 4 :  تجزیه تحلیل داده ها 
	%\include{chapter5}    %فصل 5 :  نتیجه گیری و پیشنهادات    
	
	
	\bibliographystyle{acm-fa}  		%مراجع
	\bibliography{MyRef}
	\newpage
	%\include{FTerms}                   % اصطلاحات
	%\include{dicfa2en}        % واژه‌نامه فارسی به انگلیسی
	%\include{dicen2fa}        % واژه‌نامه انگلیسی به فارسی
	%\appendix                           %فصلهای پس از این قسمت به عنوان ضمیمه خواهند آمد.
	\include{CoverPage_and_Abstract_en}                   % عنوان و چکیده انگلیسی
	%\printindex
\end{document}




