\documentclass[12pt]{book}

%\usepackage[small]{caption}
\usepackage{graphicx,fancyhdr,color,xspace,amsmath,amssymb,hyperref,geometry,listofsymbols,amsthm,babel}
\usepackage{algorithm}% http://ctan.org/pkg/algorithm
\usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx
\usepackage{adjustbox}
\usepackage[extrafootnotefeatures]{xpersian}
%%%%برای عکس ها خودم اضافه کردم
%\usepackage{dblfnote}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{lipsum}
\usepackage{float}
\usepackage{tabularx,ragged2e,booktabs}
\usepackage{array}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
%\usepackage{algorithm2e}
%%%%%%
\usepackage{algorithmic}
%\usepackage{setspace}
\usepackage{xepersian}
%\settextfont{Yas}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}



%%%%%%
%\geometry{verbose,a4paper, tmargin=3cm, bmargin=2.5cm, lmargin=2.5cm, rmargin=4cm}1.55
\geometry{a4paper, tmargin=2.21cm, bmargin=2cm, lmargin=2.12cm, rmargin=3.72cm, footskip=1cm}
\renewcommand{\baselinestretch}{1.9} 
\usepackage{xepersian}
%\settextfont[Scale=1.1]{XB Yas}
\settextfont[Scale=1.1]{B Nazanin}
\setlatintextfont{Times New Roman} 
\setdigitfont{Yas}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage[backend=bibtex,style=standard]{biblatex}
%\usepackage[backend=natbib]{biblatex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newtheorem{definition}{تعریف}[section]
\newtheorem{theorem}[definition]{ قضیه}
\newtheorem{lemma}[definition]{لم}
\newtheorem{proposition}[definition]{گزاره}
\newtheorem{observation}[definition]{مشاهده}
\newtheorem{corollary}[definition]{نتیجه}
\newtheorem{remark}[definition]{ملاحظه}
\newtheorem{example}[definition]{مثال}


%\renewcommand\proofname{\textbf{برهان}}
\newenvironment{proof}{{\bf اثبات. }  \rm }{\hfill{$\Box$}\\}
\renewcommand{\theequation}{\thechapter-\rl{\arabic{equation}}}
\renewcommand{\thetable}{\thechapter-\rl{\arabic{table}}}
%\renewcommand\listsymbolname{\textbf{نماد ها}}


% دستوری برای تعریف واژه‌نامه انگلیسی به فارسی
\newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\}
% دستوری برای تعریف واژه‌نامه فارسی به انگلیسی 
\newcommand\englishgloss[2]{#2\dotfill\lr{#1}\\}
% دستوری برای نمادهای مورد استفاده شده در پایان نامه
%\newcommand*{\MyIncludeGraphics}[2][]
%{
%\begin{adjustbox}{max size={\textwidth}{\textheight}}
%\includegraphics[#1][#2]%
%\end{adjustbox}
%}




\def\addsymbol #1:#2#3{$#1$ \> \parbox{5in}{#2 \dotfill \pageref{#3}}\\} 
\def\symboldisplay#1{\label{#1}} 

