                                                        


\documentclass[fleqn,12pt]{book}%openany,
\usepackage{perpage}
\MakePerPage{footnote}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}


\usepackage{mathrsfs}
\usepackage{fancybox}
\usepackage{fancyhdr}
\usepackage[all]{xy}
\usepackage{setspace}
\usepackage{makeidx}
\makeindex
\usepackage{lscape}
\usepackage{array}
\RequirePackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=red,citecolor=green,
filecolor=magneta,urlcolor=cyan}
\usepackage{xepersian}
\settextfont[Scale=1.1]{B Lotus}
\setdigitfont[Scale=1]{XB Niloofar}
\setlatintextfont[Scale=1]{Times New Roman}

\renewcommand{\chaptermark}[1]{%
        \markboth{#1}{}}
\renewcommand{\sectionmark}[1]{%
        \markright{\thesection\ #1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand{\contentsname}{\centerline{فهرست مطالب }}
%\renewcommand{\listfigurename}{\centerline{فهرست شکل‌ها}}
%\renewcommand{\listtablename}{\centerline{   فهرست جدول‌ها }}
\renewcommand{\bibname}{{فهرست مراجع }}  
%%%%%%%%%%%%%%%%%%%
%\textheight=23cm%تنظیم طول متن   
%\textwidth=16cm%تنظیم عرض متن 
%\topmargin=-2.5cm%تنظیم حاشیه بالای صفحه 
%\oddsidemargin=2.5cm%تنظیم حاشیه سمت چپ صفحه  
%\headsep=1cm%     فاصله متن از سر برگ   
%\footskip=1cm% فاصله شماره صفحه از انتهای متن 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\renewcommand{\@makefntext}[1]{\parindent 1em
   \noindent\hbox to 1em{}% if you want to indent footnote text you can change the width of the hbox (e.g. \hbox to 2em{})
   \llap{\if@RTL\else\latinfont\fi\@thefnmark -\,\,}#1}
\makeatother
%برای تغییر در حالت پاورقی که بعدش خط تیره بیاید.
%%%%%%%%%%%%%%%%%%%%%%%
%برای تغییر آ به الف در شمارنده‌ی ابجد 
\makeatletter
\def\@abjad#1{\ifcase#1\or الف \or ب\or ج\or د\or ه‌\or
و\or ز\or ح\or ط\or ی\or ک\or ل\or م\or ن\or \else\@ctrerr\fi}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%
%برای وسط چین شدن عنوان فصل ها
%\makeatletter\def\@makechapterhead#1{\vspace*{50\p@}{\parindent \z@ \centering \normalfont
  %  \ifnum \c@secnumdepth >\m@ne\huge\bfseries \@chapapp\space \thechapter\par\nobreak
      %  \vskip 20\p@\fi \interlinepenalty\@M\Huge \bfseries #1\par\nobreak\vskip 40\p@}}\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% تغییر در فهرست مطالب
\makeatletter\renewcommand{\@starttoc}[1]{  \hboxR to \textwidth{عنوان \hfill صفحه}  \begingroup    \makeatletter   \@input{\jobname.#1}    \if@filesw      \expandafter\newwrite\csname tf@#1\endcsname     \immediate\openout \csname tf@#1\endcsname \jobname.#1\relax    \fi \@nobreakfalse  \endgroup } \makeatother
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%......................................................................................................................... 
 %%%%% یا عــلــــــی  مـدد  یا عــلــــــی  مـدد  یا عــلــــــی  مـدد  یا عــلــــــی  مـدد    
\begin{document}


\pagestyle{empty}
 %\begin{figure}[ht]\vspace*{-2.5cm}\centerline{\includegraphics[width=20cm]{it}} \end{figure}

 


\newpage
\footskip= 10cm% فاصله شماره صفحه از انتهای متن 
\setcounter{tocdepth}{3}
\tableofcontents
\footskip= 1cm% فاصله شماره صفحه از انتهای متن 
%---------------------- List of figures ---------------------%


%--------------------- Set line spacing ---------------------%
%---------------------------- مقدمه ------------------------------- 

\newpage
\pagestyle{headings}
\baselineskip =.8cm
\pagenumbering{arabic}
\setcounter{page}{1}



%------------------------- Chapter 7 ------------------------%
\appendix
\include{fasle11}
\include{atlas}

%------------------------- مراجع -\listoffigures
\addcontentsline{toc}{chapter}{   فهرست شکل‌ها }
\listoftables
\addcontentsline{toc}{chapter}{   فهرست جدول‌ها }

\end{document}











