\documentclass[a4paper,14pt]{report}
\usepackage[pagebackref=false,colorlinks,linkcolor=black,citecolor=magenta]{hyperref}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{fancyhdr}
\usepackage{sectsty}
\usepackage{float}
\usepackage{fancybox}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage{verbatim}
\usepackage{graphicx}
\usepackage[nottoc]{tocbibind}
\usepackage[top=3cm,right=4cm,bottom=3cm,left=3cm]{geometry}
\usepackage{xepersian}
\graphicspath{{images/}}
\def\thesection{\mbox{\arabic{chapter}.\arabic{section}}}
\def\theequation{\mbox{\arabic{chapter}.\arabic{equation}}}
\def\thefigure{\mbox{\arabic{chapter}.\arabic{figure}}}
\def\thetable{\mbox{\arabic{chapter}.\arabic{table}}}
\newcommand{\zakhimhline}{\noalign{\hrule height 4pt}}
\pagestyle{fancy}
\fancyhf{} 
\fancyhead[OL,EL]{\thepage}
\fancyhead[OR]{\small\rightmark}
\fancyhead[ER]{\small\leftmark}
\renewcommand{\chaptermark}[1]{%
\markboth{\thechapter.\# 1}{}}
\settextfont[Scale=1.3]{XB Zar} %قلم فارسی متن
\setcounter{tocdepth}{4}
\begin{document}
\newpage
\begin{center}
%\begin{figure}[hq] 
%\centerline{\includegraphics[width=2cm]{hq}}
%\end{figure}
%\thispagestyle{empty}

\baselineskip=.85cm
\newpage
\makeatletter
\renewcommand*\l@chapter[2]{%
  \ifnum \c@tocdepth >\m@ne
    \addpenalty{-\@highpenalty}%
    \vskip 1.0em \@plus\p@
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
      \hskip -\if@RTL\rightskip\else\leftskip\fi
      #1\nobreak\leaders\hbox{$\m@th
        \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
        mu$}\hfill \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
      \penalty\@highpenalty
    \endgroup
  \fi}
  \renewcommand\tableofcontents{%
    \if@twocolumn
      \@restonecoltrue\onecolumn
    \else
      \@restonecolfalse
    \fi
    \centerline{\Large\bfseries\contentsname
        \@mkboth{%
           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
    \vskip 40\p@
    \@starttoc{toc}%
    \if@restonecol\twocolumn\fi
    }
     \renewcommand{\bibname}{\normalsize مراجع}
       \renewcommand\listoftables{
            \section*{\centering\listtablename}%
              \@mkboth{%
                  \MakeUppercase\listtablename}%
                 {\MakeUppercase\listtablename}%
            \@starttoc{lot}%
            }       
    \renewcommand\listoffigures{%
        \section*{\centering\listfigurename}%
          \@mkboth{\MakeUppercase\listfigurename}%
                  {\MakeUppercase\listfigurename}%
        \@starttoc{lof}%
        }
  \renewcommand{\baselinestretch}{2}
  \renewcommand{\@starttoc}[1]{%
  \hboxR to \textwidth{\underline{عنوان} \hfill \underline{صفحه}} 
  \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}
\tableofcontents
\listoffigures
\listoftables
%\chapter{مقدمه}
\newpage
\section{مقدمه}

\section{روش آزمایش}

\subsection{روش1}

\subsection{روش2}

\section{طراحی }

\linespread{2}
\begin{thebibliography}{}
\persian
\latin    
    }
\end{thebibliography}
\end{document}

