با سلام. این فایلی که براتون فرستادم مشکلتونو حل می کنه. ان شا ا...
شما باید فصل ها رو به صورت chapter بنویسید و ابتدای هر فصل را نباید با\begin{document}شروع کنید بلکه باید با \فصل{}شروع کنید.
\documentclass[a4paper,12pt,oneside]{book}
\usepackage[usenames]{color}
\usepackage{geometry}\geometry{left=30mm,right=35mm,
top=30mm,bottom=25mm}
\usepackage{mathrsfs}
\usepackage{color}
\usepackage{amssymb}\usepackage{setspace}
\usepackage{amsthm}
\usepackage{fancyhdr}
\usepackage{makeidx}
\usepackage{caption}
\usepackage{sidecap}
\makeindex
\usepackage{perpage}\MakePerPage[1]{footnote}
\usepackage{lscape}
\usepackage{amsmath}
\usepackage{multicol}
\usepackage{xypic}
\usepackage{stmaryrd}
\usepackage[pagebackref=false,colorlinks,linkcolor=blue,citecolor=magenta]{hyperref}
\usepackage{graphicx}
\graphicspath{{graphics/}{graphics/chapter01/}{graphics/chapter02/}{graphics/chapter03/}{graphics/chapter04/}{graphics/chapter05/}}
\usepackage[quickindex,extrafootnotefeatures]{xepersian}
\usepackage{bidiftnxtra}
\settextfont[Scale=1]{Persian Modern}
\setlatintextfont[Scale=0.8]{Times New Roman}
\setdigitfont[Scale=1]{Persian Modern}
\twocolumnfootnotes
\theoremstyle{definition}
\newtheorem{theorem}{{\textbf{قضیه}}}[section]
\newtheorem{lemma}[theorem]{\textbf{لم}}
\newtheorem{definition}[theorem]{{\textbf{تعریف}}}
\newtheorem{proposition}[theorem]{{گزاره}}
\newtheorem{corollary}[theorem]{{نتیجه}}
\newtheorem{molahezeh}[theorem]{{\textbf{ملاحظه}}}
\newtheorem{tabsereh}[theorem]{{\textbf{تبصره}}}
\newtheorem{example}[theorem]{{\textbf{مثال}}}
\newtheorem{tamrin}{{\textbf{تمرین}}}[chapter]
\newtheorem*{nemad}{\textbf{نمادگذاری}}
\newtheorem{gharar}[theorem]{قرارداد}
\newtheorem{asl}[theorem]{{\textbf{اصل}}}
\newtheorem{mo}[theorem]{{\textbf{مشاهده}}}
%\newtheorem{remark}{تذکر}[chapter]
\newtheorem{remark}[theorem]{{\textbf{تذکر}}}
\newtheorem{soal}[theorem]{{\textbf{سئوال}}}
\newtheorem*{tavajjo}{توجه}
\newtheorem*{nokteh}{نکته}
\def\ds#1{\displaystyle{#1}}
\def\ldb{\left[\kern-0.15em\left[}
\def\rdb{\right]\kern-0.15em\right]}
\def\Dom{\text{ Dom }}
\def\Im{\text{ Im }}
\def\diag{\text{ diag }}
\def\trace{\text{ trace }}
\def\Ra{\Rightarrow }
\def\diam{\text{diam}}
\def\Ra{\Rightarrow}
\def\LRa{\Leftrightarrow}
\def\l{\left }
\def\r{\right }
\def\nosum{\sum\hspace{-5mm}\bigg/}
\def\zzz{\zeta}
\def\atkkk{\mathop{\tilde A}^{\,k}}
\def\atkkkk{\textstyle{\mathop{\tilde A}^{\,k}}}
\def\???{\textcolor{red}{{\Large ???}}}
\def\ke{\big | }
\def\kee{\bigg | }
\def\ya{ \quad \text{یا} \quad }
\def\va{ \quad \text{و} \quad }
\DeclareMathOperator{\tr}{tr\,}
\DeclareMathOperator{\co}{co}
\DeclareMathOperator{\re}{Re}
\DeclareMathOperator{\out}{out}
\DeclareMathOperator{\In}{In}
\DeclareMathOperator{\im}{Im}
\DeclareMathOperator{\Ree}{Re}
\DeclareMathOperator{\adj}{adj}
\DeclareMathOperator{\UHP}{UHP}
\DeclareMathOperator{\RHP}{RHP}
\DeclareMathOperator{\vecc}{vec}
\DeclareMathOperator{\var}{var}
\DeclareMathOperator{\dg}{dg}
\DeclareMathOperator{\cis}{cis\,}
\DeclareMathOperator{\tg}{tg\,}
\DeclareMathOperator{\card}{card\,}
\DeclareMathOperator{\dd}{\,d\hspace{-0.8mm}}
\DeclareMathOperator{\supp}{supp\,}
\DeclareMathOperator{\pos}{POS\,}
\DeclareMathOperator{\cov}{cov\,}
\DeclareMathOperator{\mih}{mih\,}
\DeclareMathOperator{\conv}{conv\,}
\DeclareMathOperator{\coef}{coef\,}
\DeclareMathOperator{\nil}{nil\,}
\DeclareMathOperator{\Nil}{Nil\,}
\DeclareMathOperator{\rad}{rad\,}
\newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\}
\newcommand\englishgloss[2]{#2\dotfill\lr{#1}\\}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\defpersianfont\nastaliq[Scale=1]{Persian Modern}
\defpersianfont\nastaliqq[Scale=0.85]{Persian Modern}
\defpersianfont\nastaliqqq[Scale=1.3]{Persian Modern}
\defpersianfont\nastaliqqqq[Scale=1]{Persian Modern}
\defpersianfont\nastaliqqqqq[Scale=3]{Persian Modern}
\defpersianfont\nastaliqqqqq[Scale=3]{Persian Modern}
\defpersianfont\chapternumber[Scale=1.1]{Persian Modern}
\renewcommand{\baselinestretch}{2}
\makeatletter
\makeatother
\makeatletter
\fi}
\ifnum \c@secnumdepth >-2\relax
{\centering
\interlinepenalty \@M \ifnum \c@secnumdepth >-2\relax
\huge\bfseries \partname\nobreakspace\thepart
\par \vskip 20\p@ \fi
\@endpart}
{\parindent \z@ \mycustomraggedright %\@mycustomfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
{{\centering\nastaliqq\huge\bfseries \@chapapp\space {\chapternumber \hspace{5mm}\thechapter}
\par\nobreak
\vskip 80\p@
\fi
\fi
\interlinepenalty\@M
\centering \Huge \bfseries #1\par\nobreak
\vskip 1\p@\thispagestyle{empty}\newpage
}}}}
\makeatother
\allowdisplaybreaks
\begin{document}
\pagenumbering{empty}
\include{title-fa}
\include{besm-allah}
\include{taghdim}
\include{tashakkor}
\include{abstract-fa} \newpage
\pagestyle{fancy}
\fancyhf{}
\fancyhead[OL,EL]{\thepage}
\fancyhead[OR,ER]{\small\leftmark}
\renewcommand{\chaptermark}[1]{%
\markboth{\thechapter.\ #1}{}}
\pagenumbering{alph}
\فهرستمطالب
\newpage
\listoftables
\newpage
\listoffigures
\newpage
\fancyhead[OR,ER]{\small{پیشگفتار}}
\thispagestyle{empty}
\include{moghaddameh}
\fancyhead[OR,ER]{\small\leftmark}
\صفحهجدید
\\
\pagenumbering{arabic}
\include{chapter01}
\include{chapter03}
\include{chapter04}
\include{chapter05}
\include{chapter07}
\include{chapter08}
\include{bib}
\include{dicfa2en}
\include{abstract-en}
\renewcommand{\baselinestretch}{1.7}
\include{title-en}
\end{document}
دقت کنید که من chapter هارو به صورت chapter01, chapter02, ... نوشتم. شما هم اگه می خواهید این فایل را کپی پیست کنید بهتره chapterهاتونو با همین اسم وارد کنید. نمونه chapterرو براتون می نویسم.
\فصل{نمونه فصل}
%مطالب این فصل با استفاده از مراجع ... بیانشده است.
\section{نمونه بخش}