% !TeX root=SBUKThesis-main.tex

 %بسته های برای تایپ متون ریاضی و محیط های شماره دار
\usepackage{amsfonts,mathtools,dsfont,amsthm,amssymb,amsmath,enumerate}
\usepackage{mathrsfs}
% بسته‌ای برای تنطیم حاشیه‌های بالا، پایین، چپ و راست صفحه

 \usepackage[footskip=1.5cm, top=3cm, bottom=2.5cm, left=2.5cm, right=3cm]{geometry}

 \usepackage{tikz}
  \usepackage{lipsum}
%بسته های مربوط به ایجاد الگوریتم
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{pdfpages}
%\usepackage{subfigure}
% بسته‌‌ای برای ظاهر شدن شکل‌ها و تصاویر متن
\usepackage{graphicx}
% بسته‌ای برای رسم کادر
\usepackage{framed}
%بسته هایی برای مدیریت کپشن در محیط های شناور مانند شکل و جدول و ...
\usepackage{caption}
\usepackage{subcaption}

 % بسته‌ای برای ظاهر شدن «مراجع» و «نمایه» در فهرست مطالب
\usepackage[nottoc,notlof,notlot]{tocbibind}
% دستورات مربوط به ایجاد نمایه
\usepackage{makeidx}
\makeindex
%titles, headers and contents.
\usepackage{titlesec}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{cite}
\usepackage[labelfont=bf,format=hang,labelsep=quad]{caption}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{color}
\definecolor{Blue}{rgb}{0,0,.55}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% بسته‌ و دستوراتی برای ایجاد لینک‌های رنگی با امکان جهش
\usepackage[colorlinks=true,linkcolor=Blue,urlcolor=Blue,citecolor=Blue]{hyperref}
\usepackage{amsbsy}
\usepackage{float}
\usepackage{verbatim}
\usepackage{zref-perpage}
%\usepackage{perpage}
%\usepackage[colorlinks=true,linkcolor=black,urlcolor=black,citecolor=black]{hyperref}
%\usepackage[pagebackref=false,colorlinks,linkcolor=blue,citecolor=magenta]{hyperref}
%\usepackage[pagebackref=false]{hyperref}
%\usepackage{hyperref} % PDF links
%\hypersetup{
% colorlinks = true, %Colours links instead of ugly boxes
% urlcolor = blue, %Colour for external hyperlinks
% linkcolor = blue, %Colour of internal links
% citecolor = red %Colour of citations
%}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% فراخوانی بسته زی‌پرشین و تعریف قلم فارسی و انگلیسی
\usepackage{fancyhdr}
\usepackage{tocloft}
\usepackage{xepersian}
\settextfont[Scale=1.16]{IRXLotus-Regular}
\setlatintextfont[Scale=1]{Times New Roman}
\setdigitfont[Scale=1]{PGaramond}%{Parsi Digits}%
%\setdigitfont{XB Zar}
\renewcommand{\cftchapfont}{\fontsize{14}{17}\selectfont}
\renewcommand{\cftsecfont}{\fontsize{14}{17}\selectfont}
\renewcommand{\cftsubsecfont}{\fontsize{14}{17}\selectfont}
\renewcommand{\cftsubsubsecfont}{\fontsize{14}{17}\selectfont}
% تعریف قلم‌های فارسی و انگلیسی اضافی برای استفاده در بعضی از قسمت‌های متن
\defpersianfont\secfont[Scale=1.41]{IRXLotus-Bold}
\defpersianfont\subfont[Scale=1.33]{IRXLotus-Bold}
\defpersianfont\ssubfont[Scale=1.33]{IRXLotus-Bold}
\defpersianfont\chekfont[Scale=1]{IRXLotus-Regular}
\defpersianfont\chekenfont[Scale=0.84]{Times New Roman}
\defpersianfont\nastaliq[Scale=1]{IranNastaliq}
\defpersianfont\titr[Scale=1.5]{XB Zar}
\defpersianfont\geldfa{XB Zar}
\defpersianfont\Geldfa{XB Titre}
%\defpersianfont\titlefont[Scale=2.7]{XB Zar}
%\defpersianfont\iranic[Scale=1.1]{XB Zar Oblique}%Italic}%
% \defpersianfont\nastaliq[Scale=1.2]{IranNastaliq}
% برای نوشتن انگلیسی اعداد در فرمولها
%\DefaultMathsDigits
%%%%%%%%%%%%%%%%%%%%%%%%%%
%جهت داشتن زیرنویس به صورت شماره گذاری شده، صفحه به صفحه
%\paragraphfootnotes
%\MakePerPage{footnote}
\zmakeperpage{footnote}
%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*{\baselinestretch}{1.8}
% فولدر شامل تصاویر را برای تک شناسایی می کند.
\graphicspath{{images/}}
% دستوری برای تعریف واژه‌نامه انگلیسی به فارسی
\newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\}
% دستوری برای تعریف واژه‌نامه فارسی به انگلیسی
\newcommand\englishgloss[2]{#2\dotfill\lr{#1}\\}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%\makeatletter
%\def\abjad@zero{}
%\def\abj@num@i#1{%
%	\ifcase#1\or أ\or ب\or ج\or د%
%	\or ه‍\or و\or ز\or ح\or ط\fi
%	\ifnum#1=\z@\abjad@zero\fi}
%\def\abj@num@ii#1{%
%	\ifcase#1\or ی\or ک\or ل\or م\or ن%
%	\or س\or ع\or ف\or ص\fi
%	\ifnum#1=\z@\fi\abj@num@i}
%\def\abj@num@iii#1{%
%	\ifcase#1\or ق\or ر\or ش\or ت\or ث%
%	\or خ\or ذ\or ض\or ظ\fi
%	\ifnum#1=\z@\fi\abj@num@ii}
%\def\abj@num@iv#1{%
%	\ifcase#1\or غ\fi
%	\ifnum#1=\z@\fi\abj@num@iii}
%\let\@latinalph\@alph%
%\let\@latinAlph\@Alph%
%\def\PersianAlphs{%
%	\let\@alph\abjadnumeral%
%	\let\@Alph\abjadnumeral%
%}
%\def\LatinAlphs{%
%	\let\@alph\@latinalph%
%	\let\@Alph\@latinAlph%
%}
%\PersianAlphs
%\makeatother
%%%%%%%%%%%%%%
\SepMark{-}
 % تعریف و نحوه ظاهر شدن عنوان قضیه‌ها، تعریف‌ها، مثال‌ها و ...
\newtheorem{theorem}{قضیه}[section]
\newtheorem{lemma}[theorem]{لم}
\newtheorem{proposition}[theorem]{گزاره}
\newtheorem{corollary}[theorem]{نتیجه}
\newtheorem{hokm}[theorem]{حکم}
\theoremstyle{def}
\newtheorem{taza}[theorem]{تذکر}
\newtheorem{nok}[theorem]{نکته}
\newtheorem{problem}[theorem]{مسأله}
\newtheorem{origin}[theorem]{اصل موضوع تامیت}
\newcommand{\borhan}{\textbf{برهان. }}
\newtheorem{es}[theorem]{اثبات}
\theoremstyle{definition}%متن های بعد از این دستور ایتالیک نیستند
\newtheorem{remark}[theorem]{ملاحظه}
\newtheorem{example}[theorem]{مثال}
\newtheorem{definition}[theorem]{تعریف}

\def\bibname{منابع}

%%%%%%%%% Numbering+Equations+In section%%%%%%%%%%%%%%%%%%%
\numberwithin{equation}{chapter}
%%%%%%%%%%%%% My commands%%%%%%%%%%%%%
