\documentclass[12pt,openany]{report}
\usepackage{amsthm,amssymb,amsmath}
\usepackage[top=20mm, bottom=15mm, left=20mm, right=20mm]{geometry}
\usepackage{color,amsmath}
\usepackage{graphicx} 
\usepackage[nottoc]{tocbibind}
\usepackage{makeidx}
\makeindex
%%%%%%%%%%%
\usepackage{fancyhdr}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\fancypagestyle{headings}{\renewcommand{\headrulewidth}{0.5pt}}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\fancyfoot[C]{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand\proofname{\textbf{اثبات}}
\newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\}
\newcommand\englishgloss[2]{#2\dotfill\lr{#1}\\}
\pagestyle{headings}
\baselineskip=0.3cm
\usepackage[pagebackref=false,colorlinks,linkcolor=black,citecolor=black]{hyperref}
\usepackage{etoolbox}
\patchcmd{\thebibliography}{\chapter*}{\section*} {}{}
\usepackage{xepersian}
%دستور زیر برای تعیین فونت متن فارسی می‌باشد.
\settextfont[Scale=0.9]{Persian Modern}
%دستور زیر برای تعیین فونت متن لاتین می‌باشد.
%\setlatintextfont{Linux Libertine}
%دستور زیر برای تعیین فونت اعداد می‌باشد.
\setdigitfont[Scale=0.8]{Persian Modern}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \begin{document}
 \tableofcontents 
\chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 \chapter{الف}
 \section{ب}
 \section{پ}
 \section{ت}
 
 
 
 
 
 
 
 
 
 
 
 
 \end{document}