%
\documentclass[a4paper,12pt]{report}
\usepackage{colortbl}
\usepackage{longtable}
\usepackage{bidi-longtable}
\setlength{\LTcapwidth}{\textwidth}
\usepackage{array}
\usepackage[table]{xcolor}
\newcolumntype{C}[1]{>{\hfil}p{#1}<{\hfil}}
\usepackage{graphicx} % inserting images
%\usepackage{threeparttable}
\usepackage{bidiftnxtra}
	%برای اضافه کردن بالت های با حروف الفبا
\usepackage{enumitem}
%برای اضافه شدن نام مراجع در فهرست
\usepackage{tocbibind}
%برای نمایش لینک های فهرست و مراجع در فایل پی دی اف
%\usepackage[linktocpage=true,pagebackref=true]{hyperref}
%\usepackage[pagebackref=true,colorlinks,linkcolor=blue,citecolor=blue]{hyperref}
\usepackage[colorlinks,linkcolor=black,citecolor=black]{hyperref}

\usepackage[colorinlistoftodos, textwidth=4cm, shadow]{todonotes}

%برای فاصله خطوط
\usepackage{setspace}
%\openup -1em
%\doublespacing

%\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.6}

\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[labelfont=bf]{caption}
\captionsetup{labelfont=bf}
% بسته‌ای برای ظاهر شدن «مراجع» و «نمایه» در فهرست مطالب

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

% commands to print the page number in header
\pagestyle{fancy}
% شماره صفحه روی هدر باشد یا فوتر
\cfoot{\thepage}
\lhead{}

% فاصله خطوط
\renewcommand{\baselinestretch}{\mlinespace}
% commands related to XePersian package1
%HM_FLotoos

\settextfont[Scale=1.13]{HM FLotoos}
\setdigitfont{XB Niloofar}
\setlatintextfont{Times New Roman}
%\fontsize{14}{15}\selectfont
% -------------------------------------

% دستوری برای تعریف واژه‌نامه انگلیسی به فارسی
\newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\}
% دستوری برای تغییر نام کلمه «کتاب‌نامه» به «مراجع»
\renewcommand{\bibname}{\rl{مراجع}}
%\def\bibname{مراجع}
\input{jeld_info}
	
\begin{document}
	
	\input{faTitle}

	\include{abstract_fa}

	\settextfont[Scale=1.13]{HM FLotoos}
	\pagenumbering{harfi}	
	\tableofcontents
%	\addcontentsline{toc}{chapter}{مراجع}
	\listoffigures
	\listoftables
	\newpage
	\pagenumbering{arabic}	
	\include{chapter1}
	\include{chapter2}
	\include{chapter3}
	\include{chapter4}
	\include{chapter5}
	\include{chapter6}
	\include{dicen2fa}
% -------------------------------------	
	\renewcommand{\baselinestretch}{1}
	%\fitodo{واژه نامه}
%	\begin{latin}
		%\latinfont
		\bibliographystyle{plain-fa}
		%\renewcommand{\refname}{\rl{{مراجع}\hfill}}
%		\addcontentsline{toc}{chapter}{مراجع}
		\nocite{*}
		\bibliography{references}
%		\nocite{*}
		\setLTRbibitems
		%\fitodo{اصلاح ارجاعات فارسی}
%	\end{latin}
	\renewcommand{\baselinestretch}{\mlinespace}
	% مراجع
	\include{abstract_en}
	\include{enTitle}
		
\end{document}