\documentclass[a4paper, 12pt, openany,  oneside, arshad, Kashida, 	ABpages%
, ABfig, ABdiag ABgraph, ABalg, ABprog, ABtab
]{ABThesis}

%\includeonly{c1}
%\usepackage{newfloat,tocloft}
%\newlistof{jadval}{lod}{فهرست جداول}
%\DeclareFloatingEnvironment[name=جدول,fileext=lod]{jadval}

\usepackage[top=3cm,right=3cm,bottom=3cm,left=2cm]{geometry}                 
\usepackage{fancyhdr}
\usepackage{xepersian}
%\settextfont{Yas}


\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4} 

\numberwithin{equation}{section}

\begin{document}
%\includeonly{c1}

\ifABpages
\include{options}‮
\besm{besm}
\includepdf{w_part1}
\includepdf{w_part2}
\includepdf{w_part3}
\includepdf{w_part4}
%\ftitle
%\specifications
%\declaration
%\presentation{1}{اگر می‌خواهید خودتان صفحه تقدیم را بنویسید، عدد 1 دستور presention را 2 کنید و همین‌جا متن مورد نظرتان را وارد کنید.}
%\praise{1}{اگر می‌خواهید خودتان صفحه ستایش را بنویسید، عدد 1 دستور praise را 2 کنید و همین‌جا متن مورد نظرتان را وارد کنید.}
%\thanks{1}{اگر می‌خواهید خودتان صفحه سپاس‌گذاری را بنویسید، عدد 1 دستور thanks را 2 کنید و همین‌جا متن مورد نظرتان را وارد کنید.}‮‮
\include{tos}
\else\relax\fi






%\pagestyle{fancy}

%\cfoot{\thepage}
%\markboth{}{}
%\pagenumbering{arabic}
%\baselineskip=.75cm
%\renewcommand{\baselinestretch}{1.5}\normalsize


\tableofcontents


\pagestyle{fancy}
\pagenumbering{alph} 

%\csname@twosidetrue\endcsname
%\pagestyle{fancy}
%\cfoot{}
%\fancyhead[OL,EL]{\thepage}
%\fancyhead[OR]{\rightmark}
%\fancyhead[ER]{\leftmark}

%\renewcommand{\chaptermark}[1]{%
%\markboth{#1}{}}
%\renewcommand{\sectionmark}[1]{%
%\markright{\thesection\ #1}}
%\fancyhf{} % delete current header and footer
%\fancyhead[OL,EL]{\bfseries\thepage}
%\fancyhead[OR]{\bfseries\rightmark}
%\fancyhead[ER]{\bfseries\leftmark}
%\renewcommand{\headrulewidth}{0.5pt}
%\renewcommand{\footrulewidth}{0pt}
%\addtolength{\headheight}{0.5pt} % space for the rule
%\fancypagestyle{plain}{%
%\fancyhead{} % get rid of headers on plain pages
%\renewcommand{\headrulewidth}{0pt} % and the line
%}




\ifABpages
\listoftables
\listoffigures		
\if@ABalg
\addcontentsline{toc}{chapter}{فهرست الگوریتم‌ها}\listofalgorithms
\else\relax\fi
\else\relax\fi



%\pagestyle{fancy}

%\abovedisplayshortskip=10pt
%\belowdisplayshortskip=10pt

%\abovedisplayskip=0pt
%\belowdisplayskip=0pt



%\certificate{شناسه مجری}{صفحات مربوطه}{ایرادات مطرحه از طرف مجری}{اسم و شناسه مشتری}



‮
\include{pf}
\pagenumbering{arabic}
%\include{c1}%install
\include{c2}%pre
\include{c3}%packages
\include{c4}%xindy














\ifABpages
\appendix
%\include{appendix}
{\small
\bibliographystyle{acm-fa}
\bibliography{refs}
}
\include{refs}

%\phantomsection
%\glossarystyle{mylistFa}
%\printglossary[type=persian]
%\onecolumn{ }
\label{lastpage}

% دقت کنید که این نمایه براساس حروف انگلیسی هم قابل مرتب شدن است، و آن‌ را به عنوان نمایه و واژه‌نامه به طور همزمان نیز می‌توان به کار برد.
%\renewcommand\glossaryname{نمایه}
%\glossarystyle{list}
%\addcontentsline{toc}{chapter}{نمایه}
%\printglossary‮

%\twocolumn{ }
%\glossarystyle{mylistEn}
%\printglossary[type=english]

\includepdf{w_part6}
\includepdf{w_part5}

\renewcommand{\baselinestretch}{1}\normalsize
%itle
\else\relax\fi










\pagebreak
\thispagestyle{empty}



\end{document}‮‮‮‮`
