\documentclass[a4paper,  12pt]{book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz, pgf}
\usepackage[titles]{tocloft}
\usepackage[nottoc]{tocbibind}
\usepackage{titlesec}
\usepackage{ptext}
\usepackage{amsthm}
\usepackage{emptypage}
%سربرگ از صفحات خالی برداشته میشه
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{fancyhdr}
\usepackage{xcolor}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage{perpage}
\MakePerPage{footnote}
\usepackage{titlesec}
\usepackage{hyperref}
\usepackage[xindy,acronym,nonumberlist=true]{glossaries}
\usepackage[extrafootnotefeatures]{xepersian}
\newcommand\englishgloss[2]{\lr{#1}\hfill#2\\}
\newcommand\persiangloss[2]{#1\hfill\lr{#2}\\}
%\usepackage[nottoc]{tocbibind}
\settextfont{XB Niloofar}
\setlatintextfont{XB Niloofar}
\setdigitfont[Scale=1.2]{IRLotusICEE.ttf}
\twocolumnfootnotes
\renewcommand{\baselinestretch}{1.5}
\usepackage{titlesec}
\titleformat{\chapter}[display]%
{\normalfont\fontsize{50}{60}\bfseries}{\thechapter}{10pt}{\Huge}
%فاصله بین عنوان و شماره فصل تغییر میکنه
\makeatletter
\begin{document}
	\pagestyle{fancy}
	\renewcommand{\headrulewidth}{0pt}
	\fancyhf{}
		\fancyhead[RE]{\thepage \ \ \ \leftmark}
	\fancyhead[LE]{}
		\fancyhead[LO]{\rightmark\ \ \ \ \thepage}
	\cfoot{}
		\renewcommand{\chaptermark}[1]{	\markboth{ #1}{}}
	\renewcommand{\sectionmark}[1]{	\markright{ #1}{}}
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	
	\chapter*{پیشگفتار}
		\ptext[1-2]
	\chapter{ذهن آگاهی}
			\ptext[1-1]	
	\section{تمرین هشیاری بدن}	
	\ptext[1-10]	
	\chapter{ریاضیات}	
	\ptext[1-1]	
		\section{نمونه جدید}
				\ptext[1-1]	
\end{document}



	