%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper,12pt,oneside]{book}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[top=25mm, bottom=25mm, left=25mm, right=35mm]{geometry}
\usepackage[all]{xy} 
\usepackage{amsmath,amsthm,amssymb,graphicx,tikz,fancyhdr,hyperref} 
\usepackage{graphicx,hyperref,fancyhdr,amsmath,amssymb,mathrsfs,color,xspace,pdflscape} 
\usepackage{bbm, mathrsfs}
\usepackage{fancybox}
\usepackage{makeidx}
\usepackage{float}
\usepackage{caption}
\usepackage{indentfirst}
\usepackage{subcaption} 
\usepackage[nottoc]{tocbibind}
\usepackage{setspace}
\usepackage{titlesec}
\usepackage{etoolbox}
\graphicspath{{images/}}
\hypersetup{colorlinks=true,linkcolor=blue,citecolor=blue,filecolor=blue,urlcolor=blue}
\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage{maple2e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\allowdisplaybreaks[1]
\usepackage[perpagefootnote]{xepersian}

\SepMark{-}

\makeatletter
\bidi@patchcmd{\@harfi}{آ}{الف}
{\typeout{Succeeded in changing `آ` into `الف`}}
{\typeout{Failed in changing `آ` into `الف`}}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\footskip=1.0cm
\settextfont[Scale=1.1]{XB Niloofar}
\linespread{1.30}
\setlength{\headsep}{1.5cm}
\setlatintextfont[Scale=1.1]{Times New  Roman}
\setdigitfont[Scale=1.1]{Yas}
\defpersianfont\titr[Scale=1.1]{XB Titre}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\englishgloss[2]{#2\dotfill\lr{#1}\\}
\newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\}
\renewcommand\proofname{\textbf{برهان}}
\renewcommand{\bibname}{مراجع}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newtheorem{definitionnn}{تعریف}[]
\newtheorem{definitionn}{تعریف}[chapter]
\newtheorem{definition}{تعریف}[section]
\newtheorem{definitio}{تعریف}[subsection]

\newtheorem{theoremmm}[definitionnn]{قضیه}
\newtheorem{theoremm}[definitionn]{قضیه}
\newtheorem{theorem}[definition]{قضیه}
\newtheorem{theore}[definitio]{قضیه}

\newtheorem{conjectureee}[definitionnn]{حدس}
\newtheorem{conjecturee}[definitionn]{حدس}
\newtheorem{conjecture}[definition]{حدس}
\newtheorem{conjectur}[definitio]{حدس}

\newtheorem{questionnn}[definitionnn]{پرسش}
\newtheorem{questionn}[definitionn]{پرسش}
\newtheorem{question}[definition]{پرسش}
\newtheorem{questio}[definitio]{پرسش}

\newtheorem{lemma}[definition]{لم}
\newtheorem{proposition}[definition]{گزاره}
\newtheorem{corollary}[definition]{نتیجه}
\newtheorem{remark}[definition]{تذکر}
\newtheorem{example}[definition]{مثال}
\newtheorem{notation}{نکته}
\newtheorem{symb}[definition]{نمادگذاری}

\renewcommand\proofname{\textbf{برهان}} 