\documentclass[11pt]{book}
\usepackage{layouts}
\usepackage[width=12.5cm, height=17.5cm, top=3.5cm]{geometry}
\usepackage{makeidx}

%\usepackage[pagebackref=true,colorlinks,linkcolor=blue,citecolor=magenta]{hyperref}
\usepackage{amsthm,amssymb,amsfonts,graphicx,fancyhdr}
\usepackage{url}
\usepackage{array}
\usepackage{tikz}%محیط ایجاد کادر
\usepackage{diagbox}
\usepackage{multicol}
\usepackage{amsmath}%ایجاد محیط ریاضی
\usepackage[quickindex]{xepersian}
%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
\tikzstyle{textBoxStyle} = [fill=gray!20]

\newcommand{\textBox}[1]{%
\begin{tikzpicture}\node [textBoxStyle] (box) {%
\setRTL%
\begin{minipage}{\textwidth}\leavevmode%
#1%
\end{minipage}};%
\end{tikzpicture}%
}
%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
\graphicspath{{images/}}
\settextfont[Scale=1]{XB Zar}
\defpersianfont\nastaliq[Scale=1.5]{IranNastaliq}
\setdigitfont{B Lotus}
%دستور زیر برای تعیین فونت اعداد می‌باشد.
%\setdigitfont[Scale=1]{Persian Modern}
\setlatintextfont{Times New Roman}
\newlength{\defbaselineskip}
\setlength{\defbaselineskip}{\baselineskip}
\newcommand*\pct{\scalebox{.9}{\%}} 
\newcommand{\setlinespacing}[1]%
           {\setlength{\baselineskip}{#1 \defbaselineskip}}
\newenvironment{correct}%
{\noindent\ignorespaces}%
{\par\noindent%
\ignorespacesafterend}
%دستور زیر محیطی برای ایجاد قضیه یا تعریف و مواردی از این قبیل آماده می کند.
\theoremstyle{definition}
\newtheorem{theorem}{قضیه}[chapter]
\newtheorem{definition}{تعريف}[chapter]
\newtheorem{note}{نکته}[chapter]
\newtheorem{example}{مثال}[chapter]
\newtheorem{algo}{الگوریتم}[chapter]
\newtheorem{mfile}{فایل اسکریپت}[chapter]
\newtheorem{prof}{برهان}[chapter]
\newtheorem{rem}{تذکر}[chapter]
\newtheorem{exer}{تمرین}[chapter]
\newtheorem{result}{نتیجه}[chapter]
\newtheorem{yad}{یادآوری}[chapter]
%\newtheorem{solve}{حل}[chapter]
%\renewcommand\solvename{حل}
\newenvironment{solo}{\paragraph{\bfseries حل:}}{\hfill$\blacksquare$}
\makeindex
%********************************************************************
 %**********************************************************************
\begin{document}
\pagenumbering{harfi}% تا وقتی این دستور عوض نشه، شماره صفحات رو به صورت حرفی می‌زنه

\date{}
\thispagestyle{empty}
\vspace{10cm}
\begin{center}
\begin{Huge}
\textbf{ریاضی عمومی }\\
\begin{Large}
\textbf{برای رشته های فنی}
\end{Large}

\\[1.2cm]
%\textbf{نرم‌افزار $R$ }
\end{Huge}
\\[8cm]
\end{center}
%\\[1.4cm]
$\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad$گرد آوری و تدوین:

%$\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\quad$\textbf{\large{دکتر سعید کریمی}}

$\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\quad\quad$\textbf{\large{ علی دلبوت }}
\\[2cm]

\renewcommand{\baselinestretch}{1.7}
\setlinespacing{2}
%\newpage

\include{Abs}
%\include{Ack}تقدیم به


\pagestyle{fancy}
\cfoot{}
\lhead{\thepage}
\tableofcontents
\include{chap1}
\include{chap2}
\include{chap3}
\include{chap4}
\include{chap5}

\rhead{\rightmark}
\include{ref}
\printindex
\end{document}
