\documentclass[msc]{tabriz-thesis}
\csname@twosidetrue\endcsname



%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%دستورات مورد نیاز
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

\usepackage{bidipoem}
\usepackage{graphicx}
\usepackage{mathtools}
%\usepackage{subfigure}
\usepackage{diagbox}
\usepackage{tikz}
\usetikzlibrary{matrix,positioning,arrows}
\usetikzlibrary{calc}
\usepackage{enumerate}
\usepackage{fancybox}
\usepackage{array}
\usepackage{arydshln}
\usepackage[all]{xy}
\usetikzlibrary{patterns}
\usepackage{zref-perpage}
\zmakeperpage{footnote}
\usepackage{bidipoem}
\usepackage{graphicx}
\usepackage{diagbox}
\usepackage{extarrows}
\usepackage{mathtools}
%\usepackage{subfigure}
\usepackage{tikz}
\usetikzlibrary{matrix,positioning,arrows}
\usetikzlibrary{calc}
\usepackage{enumerate}
\usepackage{stackrel}
\usepackage[all]{xy}
\usetikzlibrary{patterns}
\usepackage{rotating}
\usepackage{tikz-cd}
\usetikzlibrary{arrows, matrix}
\usepackage{xepersian}
\settextfont[Scale=1.5]{XB Zar} %
\defpersianfont\nastaliq[Scale=2]{IranNastaliq}
\setdigitfont[Scale=1.15]{XB Zar}
\setlatintextfont{Times New Roman}
\defpersianfont\chapterfont[Scale=1.5]{XB Niloofar}
%%
\linespread{2}
\footskip=1.3cm
%%%%%%%%%%%%%%%
\renewcommand\poemcolsepskip{1.0cm}

%%%%%%%%%%%%%%%%
\DeclareMathOperator{\Ann}{Ann}
\DeclareMathOperator{\ann}{ann}
\DeclareMathOperator{\Spec}{Spec}
\DeclareMathOperator{\coass}{coass}
\DeclareMathOperator{\Max}{Max}
\DeclareMathOperator{\Min}{Min}
\DeclareMathOperator{\rad}{rad}
\DeclareMathOperator{\Soc}{Soc}
\DeclareMathOperator{\Supp}{Supp}
\DeclareMathOperator{\Ass}{Ass}
\DeclareMathOperator{\Att}{Att}
\DeclareMathOperator{\rank}{rank}
\DeclareMathOperator{\Acc}{Acc}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Cov}{Cov}
\DeclareMathOperator{\Var}{Var}
\DeclareMathOperator{\Div}{div}
\DeclareMathOperator{\coker}{coker}
\DeclareMathOperator{\im}{Im}
\DeclareMathOperator{\Ext}{Ext}
\DeclareMathOperator{\Tor}{Tor}
\DeclareMathOperator{\cone}{Cone}
\DeclareMathOperator{\Comp}{Comp}
\DeclareMathOperator{\inc}{inc}
\DeclareMathOperator{\Dext}{Dext}
\DeclareMathOperator{\Dtor}{Dtor}
\DeclareMathOperator{\pd}{pd}
\DeclareMathOperator{\fd}{fd}
\DeclareMathOperator{\id}{id}
\DeclareMathOperator{\wdd}{wd}
\DeclareMathOperator{\card}{card}
\DeclareMathOperator{\proj}{proj}
\DeclareMathOperator{\inj}{inj}
\DeclareMathOperator{\SGfd}{SGfd}
\DeclareMathOperator{\SGFD}{SGFD}
\DeclareMathOperator{\rSGFD}{rSGFD}
\DeclareMathOperator{\rFID}{rFID}
\DeclareMathOperator{\WD}{WD}
\DeclareMathOperator{\SGF}{SGF}
\DeclareMathOperator{\rD}{rD}
\DeclareMathOperator{\grade}{grade}
\DeclareMathOperator{\grad}{grad}
\DeclareMathOperator{\dep}{dep}
\DeclareMathOperator{\depth}{depth}
\DeclareMathOperator{\htt}{ht}
\DeclareMathOperator{\Span}{Span}
\DeclareMathOperator{\diam}{diam}
%%%%%%%%%%%%%%%%
\def\dd{{\,\mathrm{ d}}}
\def\inc{{\,\mathrm{ inc}}}
%%%%%%%%%%%%%%%%

\newenvironment{fminipage}%
{\begin{Sbox}\begin{minipage}}%
{\end{minipage}\end{Sbox}\fbox{\TheSbox}}
%%%%%%%%%%%


\theoremstyle{definition}
\newtheorem{definition}{تعریف}%[section]
\theoremstyle{theorem}
\newtheorem{theorem}[definition]{Theorem}
\newtheorem{lemma}[definition]{Lemma}
\newtheorem{proposition}[definition]{Proposition}
\newtheorem{corollary}[definition]{Corollary}
\newtheorem{remark}[definition]{Remark}
\newtheorem{theoAndmogh}[definition]{قضیه مقایسه}
\newtheorem{theoAnddefi}[definition]{قضیه و تعریف}
\newtheorem{definition & lemma}{لم و تعریف }[section]
\newtheorem{garar}[definition]{قرارداد}
\theoremstyle{definition}
\newtheorem{example}[definition]{Example}
\newtheorem{nokt}[definition]{نکته}
\newtheorem{tavaj}[definition]{توجه}
\newtheorem{poro}[definition]{پروپوزال}
\newtheorem{tabs}[definition]{تبصره}
\newtheorem{nomad}[definition]{نمادگذاری}
\newtheorem*{yad}{یادآوری}
\newtheorem*{solution}{حل}
\newtheorem*{taza}{تذکر}
\newtheorem{khali}[definition]{‌}
\theoremstyle{definition}
%\newtheorem*{yada}[definition]{یادآوری}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\newcommand{\begin{def}}{\begin{definition}}
%\newcommand{\end{def}}{\end{definition}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\no}{\nonumber}
%%%%%%%%%%%%%%%%%
\makeatletter
\newcommand{\Xrightarrow}[2][]{\ext@arrow 0359\Rightarrowfill@{#1}{#2}}
\makeatother
%%%%%%%%%%%%%%%%%
\newcommand{\Eb}{\mathbb{E}}
\newcommand{\Rb}{\mathbb{R}}
\newcommand{\Zb}{\mathbb{Z}}
\newcommand{\Qb}{\mathbb{Q}}
\newcommand{\Nb}{\mathbb{N}}
\newcommand{\Ib}{\mathbb{I}}
\newcommand{\Cb}{\mathbb{C}}
\newcommand{\Yb}{\mathbb{Y}}
\newcommand{\Xb}{\mathbb{X}}
\newcommand{\Gb}{\mathbb{G}}
\newcommand{\Fb}{\mathbb{F}}
\newcommand{\Lb}{\mathbb{L}}
\newcommand{\Hb}{\mathbb{H}}
\newcommand{\Kb}{\mathbb{K}}
\newcommand{\Pb}{\mathbb{P}}
\newcommand{\Ac}{\mathcal{A}}
\newcommand{\Bc}{\mathcal{B}}
\newcommand{\Fc}{\mathcal{F}}
\newcommand{\Qc}{\mathcal{Q}}
\newcommand{\Hc}{\mathcal{H}}
\newcommand{\Wc}{\mathcal{W}}
\newcommand{\Mc}{\mathcal{M}}
\newcommand{\Gc}{\mathcal{G}}
\newcommand{\Cc}{\mathcal{C}}
\newcommand{\Lc}{\mathcal{L}}
\newcommand{\Xf}{\mathfrak{X}}
\newcommand{\gf}{\mathfrak{g}}
\newcommand{\qf}{\mathfrak{q}}
\newcommand{\pf}{\mathfrak{p}}
\newcommand{\mf}{\mathfrak{m}}
\newcommand{\af}{\mathfrak{a}}
%\newcommand{\AA}{\mathfrak{A}}
%%%%%%%%%%%%%%%%%
\renewcommand{\bibname}{مراجع}
%%%%%%%%%%%%%%%%%
\newcommand{\FP}{$-FP$انژکتیو }
\newcommand{\Zs}{\stackrel[\Zb]{\varphi}{\cong}}
%%%%%%%%%%%%%%%%%

\pagestyle{fancy}
\fancyhf{}
\fancyhead[OL,EL]{} %\thepage
\cfoot{\thepage}
\fancyhead[OR]{\small\rightmark}
\fancyhead[ER]{\small\leftmark}
%\renewcommand{\chaptermark}[1]{%
%\markboth{\thechapter.\ #1}{}}



\tikzset{node distance=2cm, auto,double equal sign distance}

%%%%%%%
\makeatletter
\tikzset{
  column sep/.code=\def\pgfmatrixcolumnsep{\pgf@matrix@xscale*(#1)},
  row sep/.code   =\def\pgfmatrixrowsep{\pgf@matrix@yscale*(#1)},
  matrix xscale/.code=%
    \pgfmathsetmacro\pgf@matrix@xscale{\pgf@matrix@xscale*(#1)},
  matrix yscale/.code=%
    \pgfmathsetmacro\pgf@matrix@yscale{\pgf@matrix@yscale*(#1)},
 matrix scale/.style={/tikz/matrix xscale={#1},/tikz/matrix yscale={#1}}}
\def\pgf@matrix@xscale{.65}
\def\pgf@matrix@yscale{.65}
\makeatother


    

%%%%%%%%%%%%%%%%%
\def\1{\textrm{\lr{1}}}
\def\0{\textrm{\lr{0}}}


%\newcommand{\eqdef}{\overset{\mathrm{~~~~~}}{=\joinrel=}}
\def\Tiny{\fontsize{4pt}{4pt}\selectfont}
\newcommand*{\eqdef}{\ensuremath{\overset{\mathclap{\text{طبق قضیه 67}}}{=}}}



\renewcommand{\mod}[1]{\ \mathrm{mod}\ #1}
\renewcommand{\pmod}[1]{\ (\mathrm{mod}\ #1)}

\allowdisplaybreaks

\makeatletter
\renewcommand \theequation {\@arabic\c@equation.\@arabic\c@chapter}                               
\makeatother
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%عنوان فارسی و مقدمه
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

\begin{document}
%\pagenumbering{harfi}
\pagenumbering{alph}
%\input{fa-title}
%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\pagenumbering{alph}
%\setcounter{page}{0}
\thispagestyle{empty}
\baselineskip=0.9cm
{\latin \tableofcontents}
\mainmatter
\baselineskip=1.28cm
\include{chapter1}
%\include{chapter2}
%\include{reference}
%\include{dicfa2en}
%\include{dicen2fa}
\printindex
%\input{en-title}
\label{LastPage}
\end{document}	