\documentclass[12pt,a4paper,openany]{book}
\usepackage[top=30mm, bottom=30mm, left=30mm, right=30mm]{geometry}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{xfrac}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{makeidx}
\usepackage{fontspec} 
\usepackage{graphicx} 
\usepackage[nottoc]{tocbibind}
\usepackage{tocbibind} 
\usepackage{perpage}
\MakePerPage{footnote}
\usepackage{lipsum}
\usepackage{mathrsfs}
\usepackage{hyperref}
\usepackage{setspace} 
\usepackage{color,graphicx} 
\usepackage{framed} 
\usepackage{lastpage}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,positioning}
\usepackage{supertabular}
\usepackage{xepersian}

\headsep=0.9cm
\footskip=1.5cm
\renewcommand{\bibname}{منابع و مآخذ}
\newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\}
\newcommand\englishgloss[2]{#2\dotfill\lr{#1}\\}
\pagestyle{fancy}

\renewcommand\headrule{}
\csname@twosidetrue\endcsname

\fancyhf{} 
\fancyhead[OR]{\bf\traffic\em\footnotesize\rightmark$\hrulefill\quad$}
\fancyhead[LE]{\bf$\quad\hrulefill$\traffic\em\footnotesize\leftmark}


\renewcommand{\chaptermark}[1]{
\markboth{\thechapter.\ #1}{}}





%\fancyhead[RO]{\leftmark}\fancyhead[LE]{\leftmark}
\fancyhead[LO,RE]{}
\cfoot{\thepage}


\makeatletter
\newcommand\mycustomfont[1]{\def\@mycustomfont{#1}}
\newcommand\mycustomraggedright{%
	\if@RTL\raggedleft%
		\else\raggedright%
							\fi}
\def\@part[#1]#2{%
    \ifnum \c@secnumdepth >-2\relax
      \refstepcounter{part}%
      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
    \else
      \addcontentsline{toc}{part}{#1}%
    \fi
    \markboth{}{}%
    {\centering
     \interlinepenalty \@M
     \@mycustomfont
     \ifnum \c@secnumdepth >-2\relax
       \huge\bfseries \partname\nobreakspace\thepart
       \par
       \vskip 20\p@
     \fi
     \Huge \bfseries #2\par}%
    \@endpart}
\def\@makechapterhead#1{%
  \vspace*{50\p@}%
  {\parindent \z@ \mycustomraggedright \@mycustomfont
    \ifnum \c@secnumdepth >\m@ne
      \if@mainmatter
        \huge\bfseries \@chapapp\space \thechapter
        \par\nobreak
        \vskip 20\p@
      \fi
    \fi
    \interlinepenalty\@M
    \Huge \bfseries #1\par\nobreak
    \vskip 40\p@
  }}
  \renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%
                                   {\@mycustomfont\Large\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\@mycustomfont\large\bfseries}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\@mycustomfont\normalsize\bfseries}}
\makeatother
\mycustomfont{\fontFa}










\ExplSyntaxOn
\cs_set_eq:cN {zf@fontspec} \fontspec_select:nn
\ExplSyntaxOff
\settextfont{B Mitra}
\defpersianfont\fontFa[Scale=1]{XB Niloofar}
\defpersianfont\naz[Scale=1]{B Nazanin}
\defpersianfont\fontFr[Scale=1]{XM Traffic}
\defpersianfont\fontfa[Scale=1]{B Compset}
\defpersianfont\titr[Scale=1]{XB Titre}
\defpersianfont\Sols[Scale=1]{XB Sols}
\defpersianfont\traffic[Scale=1]{B Traffic}





\theoremstyle{definition}
\newtheorem{definition}{ تعــریف}[section]
\theoremstyle{theorem}
\newtheorem{theorem}[definition]{قضیـه}
\newtheorem{lemma}[definition]{لــم}
\newtheorem{proposition}[definition]{قضیـه}
\newtheorem{corollary}[definition]{نتیجه}
\newtheorem*{corollar}{نتیجه}
\newtheorem*{question}{ســوال}
\newtheorem{remark}[definition]{ملاحظه}
\theoremstyle{definition}
\newtheorem{example}[definition]{مثـال}

\let\oldproof\proof
\let\oldendproof\endproof
\def\proof{\paragraph{\fontsize{12}{12}\Sols{برهان:}}} 
\def\endproof{\hfill$\blacksquare$\oldendproof}

%\textcolor{red}

%\newtheorem{proof}{\textbf{برهان :}}
\newcommand{\Con}[1]{\overline{\mathrm{co}}({#1})}
\newcommand{\re}{Re}
\newcommand{\mc}{\mathcal}\newcommand{\ms}{\mathscr}
\newcommand{\dis}{\displaystyle}
\newcommand{\mr}{\mathrm}
\newcommand{\nn}{\nonumber}
\newcommand{\enorm}[1]{\norm{#1}_e}
\newcommand{\fnorm}[1]{\norm{#1}_{ae}}
\newcommand{\abs}[1]{\left\vert#1\right\vert}
\newcommand{\set}[1]{\left\{#1\right\}}
\newcommand{\paran}[1]{\left(#1\right)}
\newcommand{\seq}[1]{\left\langle#1\right\rangle}
\newcommand{\seqn}[1]{\langle#1\rangle}
\newcommand{\norm}[1]{\left\Vert#1\right\Vert}
\newcommand{\LB}[1]{\mathcal{L}(\mathrm{#1})}
\newcommand{\bm}[1]{\bf{#1}}
\newcommand{\dom}[1]{\mathrm{D}_{{#1}}}


\def\opn#1#2{\def#1{\operatorname{#2}}} % to make operators
\opn\it{\mathrm{Int}}
\opn\cl{\mathrm{cl}}
\opn\con{\mathrm{co}}
\opn\det{\mathrm{det}}
\opn\span{\mathit{span}}
\opn\ker{\mathrm{Ker}}
\opn\wot{\mathrm{(WOT)}}
\opn\sot{\small\mathrm{(SOT)}}
\opn\ind{\mathrm{ind}}
\opn\W{\mathcal{W}}
\opn\Dom{\mathrm{Dom}}
\opn\B{\mathcal{B}}\opn\F{\mathcal{F}}
\opn\K{\mathcal{K}}
\opn\R{\mathbb{R}}
\opn\C{\mathbb{C}}
\opn\rng{\mathrm{Rang}}
\opn\Lat{\mathrm{Lat}}
\opn\spp{\mathrm{supp}}
\opn\Re{\mathrm{Re}}
\opn\H{\mathcal{H}}\opn\K{\mathcal{K}}
\opn\Im{\mathrm{Im}}
\opn\mx{\mathrm{max}}\opn\dist{\mathrm{dist}}
%***********************************************************
\settextfont[Scale=1.25]{XB Niloofar}
\setdigitfont[Scale=1.25]{B Yas}



%************************************************************
\begin{document}

\thispagestyle{empty}

\newpage

\thispagestyle{empty}




\setcounter{page}{1}
 \topskip0pt

\newpage
\baselineskip=.84cm
\pagenumbering{arabic}

\baselineskip=1cm
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{18pt}{\Huge}
\titlespacing*{\chapter} {0pt}{100pt}{80pt}
  \chapter*{}\markboth{مقدمه}{مقدمه}

  \section*{مقدمه}
 ریاضی، به عنوان علم محض و انتزاعی، در علوم دیگر جایگاهی بسیار رفیع دارد. بحث در روش تدریس ریاضی به زمان ما منحصر نمی شود. از هنگامی‌که تدریس ریاضی مطرح بوده است، روش تدریس آن نیز مورد بحث و مطالعه بوده است. 
 
\titleformat{\chapter}[display] 
{\vspace{3cm}\naz\Huge\filcenter\bfseries}{\LARGE\chaptertitlename\ \thechapter}{1em}{}[\thispagestyle{empty}]
\clearpage \chapter{ اصول آموزش ریاضی در کلاس درس  }

\vspace*{6cm}

\section{تجربیات تدریس درس ریاضی }

در سن معینی که کودک پا به کودکستان و یا دبستان می گذارد و تجربه جدیدی را در زندگی آغاز می کند تصور و پندار معلمان درباره فرد  و نحوه  آشنایی شاگرد با معلمان و رابطه ای که بین معلم و دانش آموز ایجاد می گردد عامل مهمی در شکل گیری شخصیت و نحوه خویشتن پنداری دانش آموز به شمار می آید. معلمان علاقه مند با رفتار انسانی خود دانش آموزانی با صفات انسانی و علاقه مند در مدرسه به وجود می آورند. 


\end{document}

