%
\documentclass[a4paper,12pt]{report}
\usepackage{graphicx} % inserting images
%\usepackage{threeparttable}

\usepackage{bidiftnxtra}




%\setlength{\marginparwidth}{2cm}
%\reversemarginpar

\newcommand{\ftodo}[1]{\begin{latin}\todo{\rl{#1}}\end{latin}}
\newcommand{\etodo}[1]{\begin{latin}\todo{#1}\end{latin}}
\newcommand{\fitodo}[1]{\begin{latin}\todo[inline]{\rl{#1}}\end{latin}}
\newcommand{\eitodo}[1]{\begin{latin}\todo[inline]{#1}\end{latin}}
\newcommand{\mlinespace}{1.4}

\usepackage[nonamebreak,numbers]{natbib}%[nonamebreak,numbers]

\usepackage{fancyhdr} % package for changing Headings style
% setting the margins of page
\usepackage{amsmath}
\usepackage{tikz} %using mindmap\begin{flushright}
\usetikzlibrary{shapes,arrows,calc,intersections,through,backgrounds,mindmap}

\usepackage[top=3cm,right=3cm,bottom=2.5cm,left=2.5cm]{geometry}                 

%\usepackage{fontspec}
\usepackage[margin=10mm,font={small,bf},labelfont={normalsize,it}]{caption}
\usepackage{xepersian}

% tell tex engine address of folder containing your pictures
\graphicspath{{images/}}

% commands to print the page number in header
\pagestyle{fancy}
\cfoot{}
\lhead{\thepage}

\renewcommand{\baselinestretch}{\mlinespace}
% commands related to XePersian package1
%HM_FLotoos
\settextfont{XB Niloofar}
\setdigitfont{XB Niloofar}
\setlatintextfont{Times New Roman}

% -------------------------------------


\begin{document}
	\tableofcontents
	%\pagenumbering{harfi}
	\pagenumbering{arabic}
%	\include{chapter1}
%	\include{chapter2}
%	\include{chapter3}
%	\include{chapter4}
%	\include{chapter5}
% -------------------------------------

	
%	\renewcommand{\baselinestretch}{1}
%	%\fitodo{واژه نامه}
%	\begin{latin}
%		%\latinfont
%		\bibliographystyle{plain-fa}
%		%\renewcommand{\refname}{\rl{{مراجع}\hfill}}
%		\bibliography{references}
%		\setLTRbibitems
%		%\fitodo{اصلاح ارجاعات فارسی}
%	\end{latin}
%	\renewcommand{\baselinestretch}{\mlinespace}
	
\end{document}