<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%%%  Version 0.5
%%%  This work is inspired by `Tabriz_thesis.cls' by Vahid Damanafshan,
%%%  `yazd-thesis.cls' by Vahid Damanafshan, `KNTU_thesis.cls' by Farschad Torabi, and
%%%  `aut-thesis' by Vafa Khalighi.
%%%   __________________________________
%%%
%%%   Copyright Â© 2017-2022 Seiied-Mohammad-Javad Razavian
%%%
%%%   http://www.parsilatex.com
%%%   __________________________________
%%%
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\def\qom@thesis@date{2022/06/09}
\def\qom@thesis@version{0.5}
\ProvidesClass{thesis-qom}[%
    \qom@thesis@date\space version\qom@thesis@version\space
    University of  Qom thesis class%
]
\newif\if@qom@print
\newif\if@qom@index
\newif\if@qom@debug
\newif\if@qom@draft\@qom@drafttrue
\newif\if@qom@preamble \@qom@preambletrue
\newcount\qom@thesistype
\newcount\qom@thesis@supervisor
\newcount\qom@thesis@advisor
\newcount\qom@thesis@supervisor@english
\newcount\qom@thesis@advisor@english
\newcount\qom@thesis@referee@enternal
\newcount\qom@thesis@referee@external
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{xepersian}}
\DeclareOption{final}{\@qom@draftfalse\@qom@printfalse}
\DeclareOption{print}{\@qom@printtrue}
\DeclareOption{phd}{\qom@thesistype=\z@\relax} %default option
\DeclareOption{ms}{\qom@thesistype=\@ne\relax}
\DeclareOption{bs}{\qom@thesistype=\tw@\relax}
\DeclareOption{index}{\@qom@indextrue}%
\DeclareOption{debug}{\@qom@debugtrue}%
\ProcessOptions\relax
\LoadClass[a4paper,12pt,openany, oneside]{book}
\RequirePackage{keyval}
\define@key{qomthesis}{Ů†Ř§Ů… Ů Ů†Ř§Ů…â€ŚŘ®Ř§Ů†ŮŘ§ŘŻÚŻŰŚ}{\def\@author@persian{#1}}
\define@key{qomthesis}{Ů†Ř§Ů… Ů Ů†Ř§Ů… Ř®Ř§Ů†ŮŘ§ŘŻÚŻŰŚ}{\def\@author@persian{#1}}
\define@key{qomthesis}{Ů†Ř§Ů… Ů Ů†Ř§Ů…â€ŚŘ®Ř§Ů†ŮŘ§ŘŻÚŻŮŠ}{\def\@author@persian{#1}}
\define@key{qomthesis}{Ů†Ř§Ů… Ů Ů†Ř§Ů… Ř®Ř§Ů†ŮŘ§ŘŻÚŻŮŠ}{\def\@author@persian{#1}}
\define@key{qomthesis}{Ř´Ů…Ř§Ř±Ů‡ ŘŻŘ§Ů†Ř´Ř¬ŮŰŚŰŚ}{\def\@student@id{#1}}
\define@key{qomthesis}{Ř´Ů…Ř§Ř±Ů‡Ů” ŘŻŘ§Ů†Ř´Ř¬ŮŰŚŰŚ}{\def\@student@id{#1}}
\define@key{qomthesis}{Ř´Ů…Ř§Ř±Ů‡â€ŚŰŚ ŘŻŘ§Ů†Ř´Ř¬ŮŰŚŰŚ}{\def\@student@id{#1}}
\define@key{qomthesis}{Ř´Ů…Ř§Ř±Ů‡ ŘŻŘ§Ů†Ř´Ř¬ŮŮŠŮŠ}{\def\@student@id{#1}}
\define@key{qomthesis}{Ř´Ů…Ř§Ř±Ů‡Ů” ŘŻŘ§Ů†Ř´Ř¬ŮŮŠŮŠ}{\def\@student@id{#1}}
\define@key{qomthesis}{Ř´Ů…Ř§Ř±Ů‡â€ŚŮŠ ŘŻŘ§Ů†Ř´Ř¬ŮŮŠŮŠ}{\def\@student@id{#1}}
\define@key{qomthesis}{author}{\def\@author@english{#1}}
\define@key{qomthesis}{ŘąŮ†ŮŘ§Ů†}{\def\@title@persian{#1}}
\define@key{qomthesis}{title}{\def\@title@english{#1}}
\define@key{qomthesis}{ŘŻŘ§Ů†Ř´Ú©ŘŻŮ‡}{\def\@faculty{#1}}
\define@key{qomthesis}{ÚŻŘ±ŮŮ‡}{\def\@department{#1}}
\define@key{qomthesis}{Ř±Ř´ŘŞŮ‡}{\def\@major{#1}}
\define@key{qomthesis}{ÚŻŘ±Ř§ŰŚŘ´}{\def\@field{#1}}
\define@key{qomthesis}{ÚŻŘ±Ř§ŮŠŘ´}{\def\@field{#1}}
\define@key{qomthesis}{ŘŞŘ§Ř±ŰŚŘ® Ř§ŘŞŮ…Ř§Ů…}{\def\@submissiondate{#1}}
\define@key{qomthesis}{ŘŞŘ§Ř±ŮŠŘ® Ř§ŘŞŮ…Ř§Ů…}{\def\@submissiondate{#1}}
\define@key{qomthesis}{faculty}{\def\@faculty@english{#1}}
\define@key{qomthesis}{department}{\def\@department@english{#1}}
\define@key{qomthesis}{major}{\def\@major@english{#1}}
\define@key{qomthesis}{field}{\def\@field@english{#1}}
\define@key{qomthesis}{submission date}{\def\@submissiondate@english{#1}}
\define@key{qomthesis}{ŘŞŘ§Ř±ŰŚŘ® ŘŻŮŘ§Řą}{\def\@defensedate{#1}}
\define@key{qomthesis}{ŘŞŘ§Ř±ŮŠŘ® ŘŻŮŘ§Řą}{\def\@defensedate{#1}}
%\define@key{qomthesis}{phd}     []{\qom@thesistype=\z@\relax}
%\define@key{qomthesis}{master}     []{\qom@thesistype=\@ne\relax}
%\define@key{qomthesis}{bachelor}     []{\qom@thesistype=\tw@\relax}
\define@key{qomthesis}{ŘŞŘąŘŻŘ§ŘŻ ŮŘ§Ř­ŘŻ}{\def\@credit{#1}}
\define@key{qomthesis}{Ů†Ů…Ř±Ů‡}{\def\@grade{#1}}
\define@key{qomthesis}{Ů†Ů…Ř±Ů‡ Ř¨Ů‡ Ř­Ř±ŮŮ}{\def\@grade@letters{#1}}
\define@key{qomthesis}{ŘŻŘ±Ř¬Ů‡}{\def\@degree{#1}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§ŰŚ Ř§ŮŮ‘Ů„}{\qom@thesis@supervisor=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@supervisor@name@persian{\@name}\edef\@first@supervisor@rank@persian{\@rank}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§ŰŚ Ř§ŮŮ„}{\qom@thesis@supervisor=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@supervisor@name@persian{\@name}\edef\@first@supervisor@rank@persian{\@rank}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§ŮŠ Ř§ŮŮ‘Ů„}{\qom@thesis@supervisor=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@supervisor@name@persian{\@name}\edef\@first@supervisor@rank@persian{\@rank}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§ŮŠ Ř§ŮŮ„}{\qom@thesis@supervisor=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@supervisor@name@persian{\@name}\edef\@first@supervisor@rank@persian{\@rank}}
\define@key{qomthesis}{first supervisor}{\qom@thesis@supervisor@english=\@ne\relax\def\@first@supervisor@name@english{#1}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§ŰŚ ŘŻŮŮ‘Ů…}{\qom@thesis@supervisor=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@supervisor@name@persian{\@name}\edef\@second@supervisor@rank@persian{\@rank}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§ŰŚ ŘŻŮŮ…}{\qom@thesis@supervisor=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@supervisor@name@persian{\@name}\edef\@second@supervisor@rank@persian{\@rank}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§ŮŠ ŘŻŮŮ‘Ů…}{\qom@thesis@supervisor=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@supervisor@name@persian{\@name}\edef\@second@supervisor@rank@persian{\@rank}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§ŮŠ ŘŻŮŮ…}{\qom@thesis@supervisor=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@supervisor@name@persian{\@name}\edef\@second@supervisor@rank@persian{\@rank}}
\define@key{qomthesis}{second supervisor}{\qom@thesis@supervisor@english=\tw@\relax\def\@second@supervisor@name@english{#1}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ů…Ř´Ř§ŮŘ± Ř§ŮŮ‘Ů„}{\qom@thesis@advisor=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@advisor@name@persian{\@name}\edef\@first@advisor@rank@persian{\@rank}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ů…Ř´Ř§ŮŘ± Ř§ŮŮ„}{\qom@thesis@advisor=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@advisor@name@persian{\@name}\edef\@first@advisor@rank@persian{\@rank}}
\define@key{qomthesis}{first advisor}{\qom@thesis@advisor@english=\@ne\relax\def\@first@advisor@name@english{#1}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ů…Ř´Ř§ŮŘ± ŘŻŮŮ‘Ů…}{\qom@thesis@advisor=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@advisor@name@persian{\@name}\edef\@second@advisor@rank@persian{\@rank}}
\define@key{qomthesis}{Ř§ŘłŘŞŘ§ŘŻ Ů…Ř´Ř§ŮŘ± ŘŻŮŮ…}{\qom@thesis@advisor=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@advisor@name@persian{\@name}\edef\@second@advisor@rank@persian{\@rank}}
\define@key{qomthesis}{second advisor}{\qom@thesis@advisor@english=\tw@\relax\def\@second@advisor@name@english{#1}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± ŘŻŘ§Ř®Ů„ŰŚ Ř§ŮŮ‘Ů„}{\qom@thesis@referee@enternal=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@referee@name{\@name}\edef\@first@referee@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± ŘŻŘ§Ř®Ů„ŰŚ Ř§ŮŮ„}{\qom@thesis@referee@enternal=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@referee@name{\@name}\edef\@first@referee@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± ŘŻŘ§Ř®Ů„ŮŠ Ř§ŮŮ‘Ů„}{\qom@thesis@referee@enternal=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@referee@name{\@name}\edef\@first@referee@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± ŘŻŘ§Ř®Ů„ŮŠ Ř§ŮŮ„}{\qom@thesis@referee@enternal=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@referee@name{\@name}\edef\@first@referee@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± ŘŻŘ§Ř®Ů„ŰŚ ŘŻŮŮ‘Ů…}{\qom@thesis@referee@enternal=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@referee@name{\@name}\edef\@second@referee@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± ŘŻŘ§Ř®Ů„ŰŚ ŘŻŮŮ…}{\qom@thesis@referee@enternal=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@referee@name{\@name}\edef\@second@referee@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± ŘŻŘ§Ř®Ů„ŮŠ ŘŻŮŮ‘Ů…}{\qom@thesis@referee@enternal=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@referee@name{\@name}\edef\@second@referee@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± ŘŻŘ§Ř®Ů„ŮŠ ŘŻŮŮ…}{\qom@thesis@referee@enternal=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@referee@name{\@name}\edef\@second@referee@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± Ř®Ř§Ř±Ř¬ŰŚ Ř§ŮŮ‘Ů„}{\qom@thesis@referee@external=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@referee@external@name{\@name}\edef\@first@referee@external@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± Ř®Ř§Ř±Ř¬ŰŚ Ř§ŮŮ„}{\qom@thesis@referee@external=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@referee@external@name{\@name}\edef\@first@referee@external@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± Ř®Ř§Ř±Ř¬ŮŠ Ř§ŮŮ‘Ů„}{\qom@thesis@referee@external=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@referee@external@name{\@name}\edef\@first@referee@external@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± Ř®Ř§Ř±Ř¬ŮŠ Ř§ŮŮ„}{\qom@thesis@referee@external=\@ne\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@first@referee@external@name{\@name}\edef\@first@referee@external@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± Ř®Ř§Ř±Ř¬ŰŚ ŘŻŮŮ‘Ů…}{\qom@thesis@referee@external=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@referee@external@name{\@name}\edef\@second@referee@external@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± Ř®Ř§Ř±Ř¬ŰŚ ŘŻŮŮ…}{\qom@thesis@referee@external=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@referee@external@name{\@name}\edef\@second@referee@external@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± Ř®Ř§Ř±Ř¬ŮŠ ŘŻŮŮ‘Ů…}{\qom@thesis@referee@external=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@referee@external@name{\@name}\edef\@second@referee@external@rank{\@rank}}
\define@key{qomthesis}{ŘŻŘ§ŮŘ± Ř®Ř§Ř±Ř¬ŮŠ ŘŻŮŮ…}{\qom@thesis@referee@external=\tw@\relax\expandafter\@get@name@rank\expandafter{#1}%
\edef\@second@referee@external@name{\@name}\edef\@second@referee@external@rank{\@rank}}
\define@key{qomthesis}{Ů†Ů…Ř§ŰŚŮ†ŘŻŮ‡ ŘŞŘ­ŘµŰŚŮ„Ř§ŘŞ ŘŞÚ©Ů…ŰŚŮ„ŰŚ}{\expandafter\@get@name@rank\expandafter{#1}%
\edef\qom@graduate@repsentative@name{\@name}\edef\qom@graduate@repsentative@rank{\@rank}}
\define@key{qomthesis}{Ů†Ů…Ř§ŮŠŮ†ŘŻŮ‡ ŘŞŘ­ŘµŮŠŮ„Ř§ŘŞ ŘŞÚ©Ů…ŮŠŮ„ŮŠ}{\expandafter\@get@name@rank\expandafter{#1}%
\edef\qom@graduate@repsentative@name{\@name}\edef\qom@graduate@repsentative@rank{\@rank}}
\define@key{qomthesis}{ŘŞŮ‚ŘŻŰŚŮ… Ř¨Ů‡}{\def\@dedicatedto{#1}}
\define@key{qomthesis}{ŘŞŮ‚ŘŻŮŠŮ… Ř¨Ů‡}{\def\@dedicatedto{#1}}
\define@key{qomthesis}{Ů†ŰŚŘ§ŰŚŘ´}{\def\@praise{#1}}
\define@key{qomthesis}{Ů†ŮŠŘ§ŮŠŘ´}{\def\@praise{#1}}
\define@key{qomthesis}{ŘłŮľŘ§ŘłÚŻŘ˛Ř§Ř±ŰŚ}{\def\@acknowledgement{#1}}
\define@key{qomthesis}{ŘłŮľŘ§ŘłÚŻŘ˛Ř§Ř±ŮŠ}{\def\@acknowledgement{#1}}
\define@key{qomthesis}{Ú†Ú©ŰŚŘŻŮ‡}{\def\@abstract@persian{#1}}
\define@key{qomthesis}{Ú†Ú©ŮŠŘŻŮ‡}{\def\@abstract@persian{#1}}
\define@key{qomthesis}{Ú©Ů„Ů…Ř§ŘŞ Ú©Ů„ŰŚŘŻŰŚ}{\def\@keywords@persian{#1}}
\define@key{qomthesis}{Ú©Ů„Ů…Ř§ŘŞ Ú©Ů„ŮŠŘŻŮŠ}{\def\@keywords@persian{#1}}
\define@key{qomthesis}{abstract}{\def\@abstract@english{#1}}
\define@key{qomthesis}{keywords}{\def\@keywords@english{#1}}
\newcommand{\thesisdetails}{\setkeys{qomthesis}}
\@onlypreamble\thesisdetails
%%%%%%%%%  Some Macros for Internal Use  %%%%%%%%%%%%%%%%%
\newsavebox\dotboxwidth
\def\qom@dotfill#1{\cleaders\hb@xt@ #1{\hss .\hss }\hfill \kern \z@}
\newcommand\qom@dotline[2][.3em]{\sbox\dotboxwidth{#2}\leavevmode\hb@xt@ \wd\dotboxwidth{\qom@dotfill{#1}\hfil}}
\newcommand\qom@dotlined[2][.3em]{\leavevmode\hb@xt@ #2{\qom@dotfill{#1}\hfil}}
%%%%% name-rank
%\def\@get#1-#2;{\def\@name{#1}\def\@rank{#2}}%
%\def\@striprank#1-{\edef\@rank{#1}}%
%\def\@get@name@rank#1{%
%  \@get#1-\relax;%
%  \edef\@tmpa{\@rank}%
%  \edef\@relax{\relax}%
%  \ifx\@tmpa\@relax%
%  \else\expandafter\@striprank\@rank\fi%
%}%
%%%%% name(rank)
\def\@get#1(#2);{\def\@name{#1}\def\@rank{#2}}%
\def\@striprank#1({\def\@@striprank##1){##1}%
\edef\@rank{\@@striprank#1}}%
\def\@get@name@rank#1{%
    \@get#1(\relax);%
    \edef\@tmpa{\@rank}%
    \edef\@relax{\relax}%
    \ifx\@tmpa\@relax%
    \else\expandafter\@striprank\@rank\fi%
}%
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{}
\vspace*{\fill}
\begin{center}
%Ř§ŰŚŮ† ŘµŮŘ­Ů‡ŘŚ ŘąŮ…ŘŻŘ§Ů‹ Ř®Ř§Ů„ŰŚ ÚŻŘ°Ř§Ř´ŘŞŮ‡ Ř´ŘŻŮ‡ Ř§ŘłŘŞ.
\end{center}
\vspace{\fill}
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
%
\newif\if@qom@TestSubString%
\def\qom@IfSubString #1#2{%
    \edef\@qom@MainString{#1}%
    \def\@qom@TestSubS ##1#2##2\@qom@Del{\edef\@qom@TestTemp{##1}}%
    \expandafter\@qom@TestSubS\@qom@MainString#2\@qom@Del%
    \ifx\@qom@MainString\@qom@TestTemp%
        \@qom@TestSubStringfalse%
    \else%
        \@qom@TestSubStringtrue%
    \fi%
}%
\def\qom@firstletter#1{\expandafter\qom@justfirst#1\relax}
\def\qom@justfirst#1#2\relax{#1}
%%%%%%%%%% list of symbols macros%%%%%%%%%%%%%%
\newcommand{\addsymbol}[3]{%
    \gdef\currntsymbol{#2}%
    \gdef\currntsymboldef{#3}%
    \expandafter\gdef\csname qom@symb@short@#1\endcsname{#2}%
    \expandafter\gdef\csname qom@symb@long@#1\endcsname{#3}
    \addcontentsline{los}{addsymbol}{%
        \protect\numberline{\currntsymbol}%
        \currntsymboldef%
    }%
}
\newcommand\sym[1]{\expandafter{\csname qom@symb@long@#1\endcsname}%
\space(\expandafter{\csname qom@symb@short@#1\endcsname})}
\newcommand\syms[1]{\expandafter{\csname qom@symb@short@#1\endcsname}}
\newcommand\syml[1]{\expandafter{\csname qom@symb@long@#1\endcsname}}
\renewcommand\@tocrmarg{1.55em}
\newcommand\listsymbolsname{ŮŮ‡Ř±ŘłŘŞ Ů†Ů…Ř§ŘŻŮ‡Ř§}
\newcommand\listofsymbols[1][3em]{%
    \newcommand*\l@addsymbol{\@dottedtocline{1}{0em}{#1}}
    \chapter*{\listsymbolsname}%
    \markboth{\listsymbolsname}{\listsymbolsname}%
    \setlength{\columnsep}{5ex}
    \begin{multicols*}{2}
        \small
        \@starttoc{los}
        \raggedcolumns
    \end{multicols*}
}
%%%%%%%%%% end of list of symbols macros%%%%%%%%%%%%%%
%%%%%%%%%%%%%%End of Some Macros for Internal Use %%%%%%%%%%%%%%%%
%%%%%%%%%  Packages  %%%%%%%%%%%%%%%%%
%
%\RequirePackage[immediate]{silence}
%\WarningFilter{latex}{Underfull}
%\WarningFilter{latex}{Overfull}
%\WarningFilter{latex}{LaTeX}
%\WarningsOff[Fancyhdr,fancyhdr, hyperref]
%\ActivateWarningFilters
%\SafeMode
%-------------------------------------------------------------------------------------------------------------------
% ŘŻŘ± ŮŘ±ÚŮ† Ř¬ŘŻŰŚŘŻ Ř˛ŰŚâ€ŚŮľŘ±Ř´ŰŚŮ† Ř¨Ř±Ř§ŰŚ ŘŞŘ§ŰŚŮľ Ů…ŘŞŮ†â€ŚŮ‡Ř§ŰŚ Ř±ŰŚŘ§Ř¶ŰŚŘŚ Ř§ŰŚŮ† ŘłŮ‡ Ř¨ŘłŘŞŮ‡ŘŚ Ř­ŘŞŮ…Ř§Ů‹ Ř¨Ř§ŰŚŘŻ ŮŘ±Ř§Ř®ŮŘ§Ů†ŰŚ Ř´ŮŘŻŘ›â€Ś Ř§ŰŚŮ† Ř¨ŘłŘŞŮ‡â€ŚŮ‡Ř§ ŘŻŘ± ŘµŮŘ±ŘŞ Ů†ŰŚŘ§Ř˛ Ú©Ř§Ř±Ř¨Ř± Ř¨Ů‡ Ů…ŘŞŮ† Ř§ŮŘ˛ŮŘŻŮ‡ Ř®ŮŘ§Ů‡ŘŻ Ř´ŘŻ.
\RequirePackage{amsmath}
\RequirePackage{amsthm}
\RequirePackage{amssymb}
\RequirePackage{biditools}
\RequirePackage{multicol}
% Ř¨ŘłŘŞŮ‡â€ŚŘ§ŰŚ Ř¨Ř±Ř§ŰŚ ŘŞŮ†Ř·ŰŚŮ… Ř­Ř§Ř´ŰŚŮ‡â€ŚŮ‡Ř§ŰŚ Ř¨Ř§Ů„Ř§ŘŚ ŮľŘ§ŰŚŰŚŮ†ŘŚ Ú†Ůľ Ů Ř±Ř§ŘłŘŞ ŘµŮŘ­Ů‡
\RequirePackage[top=40mm, bottom=30mm, left=30mm, right=40mm,
        bindingoffset=0mm, headsep=15mm]{geometry}
%
\RequirePackage{graphicx}
\graphicspath{{images/}}
%
\RequirePackage[]{xcolor}
\RequirePackage{bidi-atbegshi}
\if@qom@debug
    \RequirePackage{picture}
\fi
%
\RequirePackage{array}
\newcolumntype{C}[1]{&gt;{\raggedleft\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{&gt;{\raggedleft\arraybackslash}p{#1}}
\newcolumntype{M}[1]{&gt;{\raggedleft\centering\arraybackslash}m{#1}}
%
\RequirePackage[inline]{enumitem}
\setlist{noitemsep}
\RequirePackage{booktabs}
%
\RequirePackage{emptypage}
\RequirePackage{setspace}
%
\RequirePackage{fancyhdr}
\RequirePackage[titles, subfigure]{tocloft}
\addtolength{\cftchapnumwidth}{10pt}
\addtolength{\cftsecnumwidth}{12pt}
\addtolength{\cftsubsecnumwidth}{14pt}

% Ř¨ŘłŘŞŮ‡â€ŚŘ§ŰŚ Ř¨Ř±Ř§ŰŚ Ř¸Ř§Ů‡Ř± Ř´ŘŻŮ† Â«Ů…Ř±Ř§Ř¬ŘąÂ»  ŘŻŘ± ŮŮ‡Ř±ŘłŘŞ Ů…Ř·Ř§Ů„Ř¨
%nottoc Disables the inclusion of the ToC.
%notlot Disables the inclusion of the List of Tables.
%notlof Disables the inclusion of the List of Figures.
\RequirePackage[nottoc,notlot,notlof]{tocbibind}
% This option make preparation for making index in the document
\if@qom@index
    \PassOptionsToPackage{quickindex-variant1}{xepersian}%
    \RequirePackage{makeidx}%
    \makeindex%
\fi
\RequirePackage{tikz}
\global\let\tikz@ensure@dollar@catcode=\relax
\RequirePackage{apptools}
%%%%% The hyperref package should be the last package before xepersian package.
\if@qom@print
    \PassOptionsToPackage{monocolor, hyperref}{xcolor}
    \RequirePackage[hidelinks=true]{hyperref}
\else
    \PassOptionsToPackage{hyperref}{xcolor}
    \RequirePackage[
    pagebackref,
    colorlinks=true, %% Ř¨Ů‡ Ř¬Ř§ŰŚ Ř§ŘłŘŞŮŘ§ŘŻŮ‡ Ř§Ř˛ Ů…Ř±Ř¨Řą Ů‚Ř±Ů…Ř˛ ŘŻŮŘ± Ů…ŮŘ§Ř±ŘŻ Ř§Ř±Ř¬Ř§ŘąŰŚ Ř§Ř˛ Ů„ŰŚŮ†Ú© Ů‡Ř§ŰŚ Ř±Ů†ÚŻŰŚ Ř§ŘłŘŞŮŘ§ŘŻŮ‡ Ú©Ů†ŘŻ.
    linkcolor=red, anchorcolor=green, citecolor=magenta, urlcolor=cyan, filecolor=magenta, %% Ř±Ů†ÚŻ Ř¨Ř±Ř®ŰŚ Ř§Ř˛ Ů„ŰŚŮ†Ú© Ů‡Ř§ .
    ]{hyperref}
\fi
%% ŘŻŘ± Ř§ŰŚŮ† Ů‚ŘłŮ…ŘŞ ŘŞŮ†Ř¸ŰŚŮ…Ř§ŘŞ Ř¨ŘłŘŞŮ‡ hyperref Ř±Ř§ Ů‚Ř±Ř§Ř± Ů…ŰŚ ŘŻŮ‡ŰŚŮ….
%% Ř§ŰŚŮ† ŘŞŮ†Ř¸ŰŚŮ…Ř§ŘŞ Ř´Ř§Ů…Ů„ Ů…ŮŘ§Ř±ŘŻ Ř˛ŰŚŘ± Ř§ŘłŘŞ.
\hypersetup{
%% Ů…ŮŮ‚ŘąŰŚ Ú©Ů‡ ŮŘ§ŰŚŮ„ ŮľŰŚ ŘŻŰŚ Ř§Ů Ř®Ř±ŮŘ¬ŰŚ Ř±Ř§ Ř¨Ř§Ř˛ Ů…ŰŚ Ú©Ů†ŰŚŘŻ ŘµŮŘ­Ů‡ Ř¨Ů‡ ŘµŮŘ±ŘŞ ŘąŘ±ŰŚŘ¶ Ů Ř¨Ř˛Ř±ÚŻ Ř¨Ř§Ř˛ Ů…ŰŚ Ř´ŮŘŻ.
pdfmenubar=false, pdfstartview=FitH,
%% ŘŻŘ± Ů‚ŘłŮ…ŘŞ Ů…Ř±Ř§Ř¬Řą Ř´Ů…Ř§Ř±Ů‡ ŘµŮŘ­Ů‡ Ř§ŰŚ Ú©Ů‡ Ř¨Ů‡ Ř˘Ů† Ů…Ř±Ř¬Řą Ř§Ř±Ř¬Ř§Řą ŘŻŘ§ŘŻŮ‡ Ř§ŘłŘŞ Ř±Ř§ ŮŘ§Ř±ŘŻ Ů…ŰŚ Ú©Ů†ŘŻŘŚ
%% Ů…ŮŘ§Ř±ŘŻŰŚ Ú©Ů‡ Ř¨Ř±Ř§ŰŚ ŮŘąŘ§Ů„ ŘłŘ§Ř˛ŰŚ Ř§ŰŚŮ† Ú©Ů‡ Ř´Ů…Ř§Ř±Ů‡ Ř§Ř´Ú©Ř§Ů„ Ř±Ř§ Ř¨Ů‡ ŘµŮŘ±ŘŞ Ř§Ř±Ř¬Ř§ŘąŰŚ Ů†Ř´Ř§Ů† ŘŻŮ‡ŘŻ
pagebackref =true,hyperfigures=true,
pdftoolbar=true
bookmarksopen = true,
bookmarksopenlevel = 1
%%% Ř§ÚŻŘ± Ř§ŰŚŮ† option Ř±Ř§ trueâ€Ś Ř¨Ú©Ů†ŰŚŮ…ŘŚ Ř˘Ů†â€ŚÚŻŘ§Ů‡ ŘŻŘ± Ú©Ů†Ř§Ř± bookmark Ř´Ů…Ř§Ř±Ů‡ ŮŘµŮ„ Ů Ř¨Ř®Ř´ Ů Ř˛ŰŚŘ±Ř¨Ř®Ř´ Ů†ŰŚŘ˛ Ů…ŰŚ Ř˘ŰŚŘŻ. Ů…Ř«Ů„Ř§ Ů…ŰŚâ€ŚŮ†ŮŰŚŘłŘŻ: Ű±.Ű˛ Ř·Ř±Ř§Ř­ŰŚ Ř´Ř¨Ú©Ů‡
bookmarksnumbered = true
}
%%%%%%%%%%%%%%%%%%%%%%%%%%
% ŮŘ±Ř§Ř®ŮŘ§Ů†ŰŚ Ř¨ŘłŘŞŮ‡ Ř˛ŰŚâ€ŚŮľŘ±Ř´ŰŚŮ† Ů ŘŞŘąŘ±ŰŚŮ Ů‚Ů„Ů… ŮŘ§Ř±ŘłŰŚ Ů Ř§Ů†ÚŻŮ„ŰŚŘłŰŚ
%\RequirePackage{bidipoem}
\bidi@AtEndPreamble{%
%    \usepackage[para*]{manyfoot}
%    \SetFootnoteHook{\setLTR}
%    \DeclareNewFootnote[para]{A}
    \RequirePackage[extrafootnotefeatures, computeautoilg]{xepersian}[2018/10/06] %ver 21.6 and upper
    \@ifpackagelater{xepersian}{2018/10/06}{}{%
    \typeout{}
    \typeout{############## FATAL ERROR ##############}
    \ClassError{thesis-qom}{You must update your TeX distribution; \MessageBreak
        This version of thesis-qom just works \MessageBreak with xepersian ver 21.6 or upper
    }{if you have no time to update your TeX distribution,\MessageBreak do use there-qom version 0.34 or below.}
    \end{document}
    }
    \normalRTLparaLTRfootnotes*
    % in case of Kashida=off option, because nastaliq font has no support for kashida and the code needs to know about that.
    \if@bidi@csundef{if@Kashida@on}{\newif\if@Kashida@on}{}
    % See http://qa.parsilatex.com/7884 for details
    \if@bidi@csundef{@bidi@removefromreset}{}{%
        \@bidi@removefromreset{footnote}{chapter}%
    }
%    %\settextfont[Language=Default,Scale=1.33,BoldFont={IRlotus}]{IRLotus} %scale adopted with respect to XB Zar font.
    \settextfont[Scale=1.12,]{XB Niloofar} %scale adopted with respect to XB Zar font.
    \setdigitfont[Scale=1]{Yas}
%%    \setlatintextfont[Scale=1.1,]{Linux Libertine}%Times New Roman
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\@ifpackageloaded{listings}{
        \lstset{
            basicstyle=\setLTR\@nonlatinfalse\footnotesize\ttfamily, % from xepersian ver. 16.8
            captiondirection=RTL, captionscript=nonlatin,
        }
}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    % ŘŞŘąŘ±ŰŚŮ Ů‚Ů„Ů…â€ŚŮ‡Ř§ŰŚ ŮŘ§Ř±ŘłŰŚ Ů Ř§Ů†ÚŻŮ„ŰŚŘłŰŚ Ř§Ř¶Ř§ŮŰŚ Ř¨Ř±Ř§ŰŚ Ř§ŘłŘŞŮŘ§ŘŻŮ‡ ŘŻŘ± Ř¨ŘąŘ¶ŰŚ Ř§Ř˛ Ů‚ŘłŮ…ŘŞâ€ŚŮ‡Ř§ŰŚ Ů…ŘŞŮ†
    \defpersianfont\nastaliq[Language=Default,Scale=2.5,AutoFakeBold]{IranNastaliq}
    \defpersianfont\chapternumber[Language=Default,Scale=1.5,BoldFont={IRlotus}]{IRLotus}
    \defpersianfont\zarfont{XB Zar}
    \defpersianfont\titrfont{XB Titre}
    \defpersianfont\yasfont{Yas}
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %%  Ř¨Ř§ Ř§ŘłŘŞŮŘ§ŘŻŮ‡ Ř§Ř˛ Ř§ŰŚŮ† ŘŻŘłŘŞŮŘ± Ů…ŰŚâ€ŚŘŞŮŘ§Ů† ŮŮŮ†ŘŞ Ů ŮŘ§Ř±ŘłŰŚ Ů ŰŚŘ§ Ř§Ů†ÚŻŮ„ŰŚŘłŰŚ Ř¨ŮŘŻŮ† Ř§ŘąŘŻŘ§ŘŻ ŘŻŘ± ŮŘ±Ů…ŮŮ„â€ŚŮ‡Ř§ Ř±Ř§ Ř¨Ů‡ Ř­Ř§Ů„ŘŞ Ř§ŮŮ„ŰŚŮ‡ (ŰŚŘąŮ†ŰŚ ŮľŰŚŘ´â€ŚŮŘ±Ř¶ Ů„Ř§ŘŞÚ©) Ř¨Ř±ÚŻŘ±ŘŻŘ§Ů†ŘŻ.
%   \DefaultMathsDigits
    %
    %\DeclareMathSizes{textsize}{mathsize}{scriptsize}{scriptscriptsize}
    % ÚŻŘ˛ŰŚŮ†Ů‡ Ř§ŮŮ„: Ř§ŰŚŮ† Ř¨Ř±Ř§ŰŚ Ú†Ů‡ ŘŻŘłŘŞŮ‡ ŮŮŮ†ŘŞŰŚ Ř§ŘłŘŞ. ŮľŰŚŘ´ ŮŘ±Ř¶ Ř§ŘłŘŞŘ§ŰŚŮ„ Ů…Ř§ ŮŮŮ†ŘŞ 10pt Ř§ŘłŘŞ.
    % ÚŻŘ˛ŰŚŮ†Ů‡ ŘŻŮŮ…: Ř§Ů†ŘŻŘ§Ř˛Ů‡ ŮŮŮ†ŘŞ ŘŞŮŘ§Ř¨Řą Ů Ů…ŮŘ¬ŮŘŻŘ§ŘŞ Ř±ŰŚŘ§Ř¶ŰŚ ŘŻŘ±ŮŮ† Ů…ŘŞŮ†.
    % ÚŻŘ˛ŰŚŮ†Ů‡ ŘłŮŮ…: Ř¨Ř±Ř§ŰŚ Ř§ŘłÚ©Ř±ŰŚŮľŘŞ Ů‡Ř§ŘŚ Ř§Ů†ŘŻŘ§Ř˛Ů‡ Ř˛ŰŚŘ±Ů†ŮŰŚŘł Ů Ř¨Ř§Ů„Ř§Ů†ŮŰŚŘł.
    % ÚŻŘ˛ŰŚŮ†Ů‡ Ú†Ů‡Ř§Ř±Ů…: Ř¨Ř±Ř§ŰŚ Ř˛ŰŚŘ±Ů†ŮŰŚŘł Ř˛ŰŚŘ±Ů†ŮŰŚŘł.

    % ŘŻŘ± ŘŻŘłŘŞŮŘ±Ř§ŘŞ Ř˛ŰŚŘ± Ů…Ř§ Ř¨Ř±Ř§ŰŚ ŘłŮ‡ Ř­Ř§Ů„ŘŞŘŚ Ř§Ů†ŘŻŘ§Ř˛Ů‡â€ŚŮ‡Ř§ŰŚ Ů…ŮŘ±ŘŻ Ů†Ř¸Ř± Ř±Ř§ ŘŞŘąŘ±ŰŚŮ Ú©Ř±ŘŻŮ‡ Ř§ŰŚŮ….
%    \DeclareMathSizes{10}{11}{9}{8}   % For size 10 text
%    \DeclareMathSizes{11}{12}{11}{10}   % For size 11 text
%    \DeclareMathSizes{12}{13}{12}{11}  % For size 12 text
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \newsavebox\qom@thesis@proof@box
    \def\@getcl@ss#1.cls#2\relax{\def\@currentclass{#1}}
    \def\@getclass{\expandafter\@getcl@ss\@filelist\relax}
    \@getclass
    \sbox{\qom@thesis@proof@box}{\textcolor{gray}{\hboxR{\tiny%
    \char"0622\char"0645\char"0627\char"062F\char"0647{ }\char"200C\char"0634\char"062F\char"0647{ }%
    \char"062A\char"0648\char"0633\char"0637{ }\char"06A9\char"0644\char"0627\char"0633{ }%
    \texttt{\@currentclass}ŘŚ \char"0646\char"0633\char"062E\char"0647\char"0654{ }\lr{\qom@thesis@version}}}}
    \newdimen\qom@thesis@proof@box@dim@ht
    \newdimen\qom@thesis@proof@box@dim@wd
    \qom@thesis@proof@box@dim@wd=\wd\qom@thesis@proof@box
    \qom@thesis@proof@box@dim@ht=\ht\qom@thesis@proof@box
    \AtBeginDocument{\AtBeginShipoutInit}%
    \AtBeginShipout{\AtBeginShipoutLowerRight{%
    % \put doesn't work properly in index pages!
    %\put(0,\LengthToUnit{\ht\qom@thesis@proof@box}){\rotatebox{90}{\usebox\qom@thesis@proof@box}}%
    \begin{tikzpicture}[color=black,remember picture, overlay, every node/.style={inner sep=0pt},]
        \node at (current page.south east)
        [anchor=north, xshift=-\qom@thesis@proof@box@dim@ht,yshift=\qom@thesis@proof@box@dim@wd+2]
        {\rotatebox{90}{\usebox\qom@thesis@proof@box}};
    \end{tikzpicture}
    }}
    \bidi@patchcmd{\@Abjad}{Ř˘}{Ř§Ů„Ů}
    {\typeout{Succeeded in changing `Ř˘` into `Ř§Ů„Ů`}}
    {\typeout{Failed in changing `Ř˘` into `Ř§Ů„Ů`}}
    \bidi@patchcmd{\@Abjad}{Ů‡}{Ů‡â€Ť}
    {\typeout{Succeeded in changing `Ů‡` into `Ů‡â€Ť`}}
    {\typeout{Failed in changing `Ů‡` into `Ů‡â€Ť`}}
    \bidi@patchcmd{\@harfi}{Ř˘}{\hbox{Ř§Ů„Ů}}
    {\typeout{Succeeded in changing `Ř˘` into `Ř§Ů„Ů`}}
    {\typeout{Failed in changing `Ř˘` into `Ř§Ů„Ů`}}
    \bidi@patchcmd{\@harfi}{Ů‡}{Ů‡â€Ť}
    {\typeout{Succeeded in changing `Ů‡` into `Ů‡â€Ť`}}
    {\typeout{Failed in changing `Ů‡` into `Ů‡â€Ť`}}
    \PersianAlphs
%%% because of computeautoilg the changing from RTL to LTR causes a little space. in this case user can use below macro.
    \def\bigpar{\par\medskip}
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \if@qom@debug
    \AtBeginShipout{%
      \AtBeginShipoutUpperRight{%
        {\color{red}%
        \put(\dimexpr 1in+\oddsidemargin,
             -\dimexpr 1in+\topmargin+\headheight+\headsep+\topskip)%
          {%
           \vtop to\dimexpr\vsize+\baselineskip{
             \hrule
             \leaders\vbox to\baselineskip{\hrule width\hsize\vfill}\vfill
           }%
          }%
      }}%
    }
    \fi
} %%%%%%%%%%%%%%%%%%% end of  \bidi@AtEndPreamble %%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\def\@excellent{ŘąŘ§Ů„ŰŚ}
\def\@verygood{Ř¨ŘłŰŚŘ§Ř± Ř®ŮŘ¨}
\def\@good{Ř®ŮŘ¨}
\def\@acceptable{Ů‚Ř§Ř¨Ů„ Ů‚Ř¨ŮŮ„}
%
\def\Thesis{\ifcase\qom@thesistype{Ř±ŘłŘ§Ů„Ů‡}\or{ŮľŘ§ŰŚŘ§Ů†â€ŚŮ†Ř§Ů…Ů‡}\or{ŮľŘ±ŮÚŮ‡}\fi}
%
\def\titlepage{\newpage\centering
    \thispagestyle{empty}
    \parindent 0pt \parskip 10pt plus 1fil minus 1fil
    \def\baselinestretch{1}\@normalsize\vbox to \vsize\bgroup\vbox to 9in\bgroup}
\def\endtitlepage{\par\kern 0pt\egroup\vss\egroup\newpage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{preamblepage}{%
\cleardoublepage%~
\newpage%
\thispagestyle{empty}%
\baselineskip=.76cm
\parindent=\z@}% at the beginnig of the environment
{\thispagestyle{empty}}% at the end of  environment
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\pagetitle#1{%
\vspace*{2.2cm}
\begingroup\if@Kashida@on\KashidaOff\fi
\nastaliq #1
\endgroup
\vspace*{1.4cm}\par
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\renewenvironment{abstract}{
%\section*{Ú†Ú©ŰŚŘŻŮ‡}
%\settextfont[Scale=1.2]{Adobe Arabic}
%\setlatintextfont[Scale=1]{Times New Roman}
%}{\\*[8pt]}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\oathpage{%  ŘŞŘąŮ‡ŘŻŮ†Ř§Ů…Ů‡ Ř§ŘµŘ§Ů„ŘŞ ŮľŘ§ŰŚŘ§Ů†â€ŚŮ†Ř§Ů…Ů‡/Ř±ŘłŘ§Ů„Ů‡
\begin{preamblepage}
    \baselineskip=.76cm
    \begin{center}
        \setlength{\baselineskip}{.7\baselineskip}
        {\zarfont\fontsize{12}{14}\selectfont\includegraphics[width=2cm, height=2cm]{logo.jpg}\\  ŘŻŘ§Ů†Ř´ÚŻŘ§Ů‡ Ů‚Ů…}\\
        {\bfseries\titrfont
        Ů…ŘŻŰŚŘ±ŰŚŘŞ ŘŞŘ­ŘµŰŚŮ„Ř§ŘŞ ŘŞÚ©Ů…ŰŚŮ„ŰŚ\\
        Â«ŘŞŘąŮ‡ŘŻŮ†Ř§Ů…Ů‡ Ř§ŘµŘ§Ů„ŘŞ \ifcase\qom@thesistype{Ř±ŘłŘ§Ů„Ů‡}\or{ŮľŘ§ŰŚŘ§Ů†â€ŚŮ†Ř§Ů…Ů‡}\fiÂ»}
    \end{center}
    \vspace{-\baselineskip}
    \rule{\textwidth}{1mm}\vspace{-\baselineskip}\\[2pt]
    \rule{\textwidth}{1pt}



    \noindent
    Ř§ŰŚŮ†Ř¬Ř§Ů†Ř¨ Ř˘Ů‚Ř§ŰŚ/Ř®Ř§Ů†Ů…:
    {\ifx\@author@persian\undefined\qom@dotline{ŘłŰŚŘŻŮ…Ř­Ů…ŘŻŘ¬ŮŘ§ŘŻ Ř±Ř¶ŮŰŚŘ§Ů†}\else\bfseries\@author@persian\fi{} }
    ŘŻŘ§Ů†Ř´Ř¬ŮŰŚ Ů…Ů‚Ř·Řą
    {Ú©Ř§Ř±Ř´Ů†Ř§ŘłŰŚ Ř§Ř±Ř´ŘŻ}\ifnum\qom@thesistype=1\rlap{\checkmark}\fi$\bigcirc$ %\hskip 10pt
    {ŘŻÚ©ŘŞŘ±ŰŚ}\ifnum\qom@thesistype=0\rlap{\checkmark}\fi$\bigcirc$ %\hskip 10pt
    Ř¨Ů‡ Ř´Ů…Ř§Ř±Ů‡ ŘŻŘ§Ů†Ř´Ř¬ŮŰŚŰŚ
    {\ifx\@student@id\undefined\qom@dotline{ŰąŰ¶ Ű±Ű˛Ű±Ű´Ű±Ű°Ű±Ű¸}\else\bfseries\@student@id\fi{} }
    Ř±Ř´ŘŞŮ‡
    {\ifx\@major\undefined\qom@dotline{Ů…Ů‡Ů†ŘŻŘłŰŚ Ú©Ř§Ů…ŮľŰŚŮŘŞŘ±}\else\bfseries\@major\fi{} }
    {\ifx\@field\undefined\else ÚŻŘ±Ř§ŰŚŘ´ \bfseries\@field\fi }
    Ú©Ů‡ ŘŻŘ± ŘŞŘ§Ř±ŰŚŘ®
    {\ifx\@defensedate\undefined\qom@dotline{Ű±ŰłŰąŰ¶/Ű°Ű·/Ű±Ű´}\else\bfseries\LR{\@defensedate}\fi{} }
    Ř§Ř˛ \Thesis{}  Ř®ŮŘŻ ŘŞŘ­ŘŞ ŘąŮ†ŮŘ§Ů†:\\
    \centerline{\ifx\@title@persian\undefined\qom@dotlined{7cm}\else\bfseriesÂ«\@title@persianÂ»\fi}
    Ř¨Ř§ Ú©ŘłŘ¨ Ů†Ů…Ř±Ů‡  Ř¨Ř§ ŘąŘŻŘŻ:
    {\ifx\@grade\undefined\qom@dotline{Ű±Űą/Ű˛Űµ}\else\bfseries\LR{$\mathbf{\@grade}$}\fi{} }
    Ř¨Ř§ Ř­Ř±ŮŮ:
    {\ifx\@grade@letters\undefined\qom@dotline{Ů†ŮŘ˛ŘŻŮ‡ Ů Ř¨ŰŚŘłŘŞ Ů ŮľŮ†Ř¬ ŘµŘŻŮ… ŘŞŮ…Ř§Ů…}\else\bfseries\@grade@letters\fi}
     Ů Ř¨Ř§ ŘŻŘ±Ř¬Ů‡
     {\ifx\@degree\undefined\qom@dotline{ŘąŘ§Ů„ŰŚ}\else\bfseries\@degree\fi{} }\linebreak
     ŘŻŮŘ§Řą Ů†Ů…ŮŘŻŮ‡â€ŚŘ§Ů…ŘŚ Ř¨ŘŻŰŚŮ† ŮŘłŰŚŮ„Ů‡ Ů…ŘŞŘąŮ‡ŘŻ Ů…ŰŚâ€ŚŘ´ŮŮ… Ú©Ů‡:
    \begin{enumerate}[label=\arabic*-]
        \item
        Ř§ŰŚŮ† \Thesis{} Ř­Ř§ŘµŮ„ ŘŞŘ­Ů‚ŰŚŮ‚ Ů ŮľÚŮŮ‡Ř´ Ř§Ů†Ř¬Ř§Ů… Ř´ŘŻŮ‡ ŘŞŮŘłŘ· Ř§ŰŚŮ†Ř¬Ř§Ů†Ř¨ Ř¨ŮŘŻŮ‡ Ů ŘŻŘ± Ů…ŮŘ§Ř±ŘŻŰŚ Ú©Ů‡ Ř§Ř˛ ŘŻŘłŘŞŘ§ŮŘ±ŘŻŮ‡Ř§ŰŚ
        ŘąŮ„Ů…ŰŚ Ů ŮľÚŮŮ‡Ř´ŰŚ ŘŻŰŚÚŻŘ±Ř§Ů† Ř§ŘąŮ… Ř§Ř˛ ŮľŘ§ŰŚŘ§Ů†â€ŚŮ†Ř§Ů…Ů‡ŘŚ Ú©ŘŞŘ§Ř¨ŘŚ Ů…Ů‚Ř§Ů„Ů‡ŘŚ \ldots Ř§ŘłŘŞŮŘ§ŘŻŮ‡ Ů†Ů…ŮŘŻŮ‡â€ŚŘ§Ů…ŘŚ   Ů…Ř·Ř§Ř¨Ů‚ Ř¶ŮŘ§Ř¨Ř· Ů Ř±ŮŰŚŮ‡  Ů…ŮŘ¬ŮŘŻŘŚ Ů†Ř§Ů… Ů…Ů†Ř¨Řą Ů…ŮŘ±ŘŻ Ř§ŘłŘŞŮŘ§ŘŻŮ‡ Ů ŘłŘ§ŰŚŘ± Ů…Ř´Ř®ŘµŘ§ŘŞ
        Ř˘Ů† Ř±Ř§ ŘŻŘ± ŮŮ‡Ř±ŘłŘŞ Ů…Ř±Ř¨ŮŘ·Ů‡ Ř°Ú©Ř± Ů ŘŻŘ±Ř¬ Ú©Ř±ŘŻŮ‡â€ŚŘ§Ů….
        \item
        Ř§ŰŚŮ† \Thesis{} Ů‚Ř¨Ů„Ř§Ů‹ Ř¨Ř±Ř§ŰŚ Ů‡ŰŚÚ† Ů…ŘŻŘ±Ú© ŘŞŘ­ŘµŰŚŮ„ŰŚ Ů‡Ů… ŘłŘ·Ř­ŘŚ ŮľŘ§ŰŚŰŚŮ†â€ŚŘŞŘ± ŰŚŘ§ Ř¨Ř§Ů„Ř§ŘŞŘ± ŘŻŘ± ŘłŘ§ŰŚŘ± \linebreak
        ŘŻŘ§Ů†Ř´ÚŻŘ§Ů‡â€ŚŮ‡Ř§ Ů Ů…ŮŮ”ŘłŘłŘ§ŘŞ Ř˘Ů…ŮŘ˛Ř´ ŘąŘ§Ů„ŰŚ Ř§Ř±Ř§Ř¦Ů‡ Ů†Ř´ŘŻŮ‡ Ř§ŘłŘŞ.
        \item
        Ú†Ů†Ř§Ů†Ú†Ů‡ Ř¨ŘąŘŻ Ř§Ř˛ ŮŘ±Ř§ŘşŘŞ Ř§Ř˛ ŘŞŘ­ŘµŰŚŮ„ŘŚâ€Ś Ů‚ŘµŘŻ Ř§ŘłŘŞŮŘ§ŘŻŮ‡ Ů Ů‡Ř±ÚŻŮŮ†Ů‡ Ř¨Ů‡Ř±Ů‡â€ŚŘ¨Ř±ŘŻŘ§Ř±ŰŚ Ř§ŘąŮ… Ř§Ř˛ Ú†Ř§Ůľ Ú©ŘŞŘ§Ř¨ŘŚ Ř«Ř¨ŘŞ Ř§Ř®ŘŞŘ±Ř§Řą Ů \ldots
        Ř§Ř˛ Ř§ŰŚŮ† \Thesis{} Ř±Ř§ ŘŻŘ§Ř´ŘŞŮ‡ Ř¨Ř§Ř´Ů…ŘŚ Ř§Ř˛ Ř­ŮŘ˛Ů‡ Ů…ŘąŘ§ŮŮ†ŘŞ ŮľÚŮŮ‡Ř´ŰŚ ŮŘ§Ř­ŘŻ Ů…Ř¬ŮŘ˛Ů‡Ř§ŰŚ Ů…Ř±Ř¨ŮŘ·Ů‡ Ř±Ř§ Ř§Ř®Ř° Ů†Ů…Ř§ŰŚŮ….
        \item
        Ú†Ů†Ř§Ů†Ú†Ů‡ ŘŻŘ± Ů‡Ř± Ů…Ů‚Ř·Řą Ř˛Ů…Ř§Ů†ŰŚ Ř®Ů„Ř§Ů Ů…ŮŘ§Ř±ŘŻ ŮŮŮ‚ Ř«Ř§Ř¨ŘŞ Ř´ŮŘŻŘŚ ŘąŮŘ§Ů‚Ř¨ Ů†Ř§Ř´ŰŚ Ř§Ř˛ Ř˘Ů† Ř±Ř§ Ů…ŰŚâ€ŚŮľŘ°ŰŚŘ±Ů…  Ů ŮŘ§Ř­ŘŻ ŘŻŘ§Ů†Ř´ÚŻŘ§Ů‡ Ů‚Ů… Ů…Ř¬Ř§Ř˛ Ř§ŘłŘŞ Ř¨Ř§ Ř§ŰŚŮ†Ř¬Ř§Ů†Ř¨ Ů…Ř·Ř§Ř¨Ů‚ Ř¶ŮŘ§Ř¨Ř· Ů Ů…Ů‚Ř±Ř±Ř§ŘŞ
        Ř±ŮŘŞŘ§Ř± Ů†Ů…ŮŘŻŮ‡ Ů ŘŻŘ± ŘµŮŘ±ŘŞ Ř§Ř¨Ř·Ř§Ů„ Ů…ŘŻŘ±Ú© ŘŞŘ­ŘµŰŚŮ„ŰŚâ€ŚŘ§Ů… Ů‡ŰŚÚ†ÚŻŮŮ†Ů‡ Ř§ŘŻŘąŘ§ŰŚŰŚ Ů†Ř®ŮŘ§Ů‡Ů… ŘŻŘ§Ř´ŘŞ.
    \end{enumerate}

    \vfill
    \begin{footnotesize}
    \bfseries
    \begin{tabularx}{\textwidth}{@{\hskip 1cm}c@{\hskip 2.5cm}c}
        ŘµŘ­ŘŞ Ř§Ů…Ř¶Ř§ŰŚ ŘŻŘ§Ů†Ř´Ř¬Ů Ů…ŮŘ±ŘŻ ŘŞŘ§ŰŚŰŚŘŻ Ř§ŘłŘŞ. &amp; Ů†Ř§Ů… Ů Ů†Ř§Ů…â€ŚŘ®Ř§Ů†ŮŘ§ŘŻÚŻŰŚ Ů…ŘŞŘąŮ‡ŘŻ: \\
        Ů†Ů…Ř§ŰŚŮ†ŘŻŮ‡ ŘŞŘ­ŘµŰŚŮ„Ř§ŘŞ ŘŞÚ©Ů…ŰŚŮ„ŰŚ &amp; {\scriptsize ŘŞŘ§Ř±ŰŚŘ® Ů Ř§Ů…Ř¶Ř§Řˇ} \\
        Ů†Ř§Ů… Ů Ů†Ř§Ů…â€ŚŘ®Ř§Ů†ŮŘ§ŘŻÚŻŰŚ: \ldots\ldots\ldots  &amp; \\
        {\scriptsize ŘŞŘ§Ř±ŰŚŘ® Ů Ř§Ů…Ř¶Ř§Řˇ} &amp; \\
    \end{tabularx}
    \end{footnotesize}
    \vfill\null
\end{preamblepage}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newsavebox\@too@box@wd
\def\@too#1{%
    \sbox\@too@box@wd{#1}%
    \makebox[\wd\@too@box@wd][c]{"}%
}
\newcommand\refereeAck{%
\begin{preamblepage}
%\begin{minipage}{\textwidth}
%\vbox
{
    \small
    \baselineskip=.7cm
%    \parindent=\z@
%    \begin{center}
    \begingroup
    \centerline{\zarfont%\fontsize{12}{14}\selectfont
    \includegraphics[width=2cm, height=2cm]{logo.jpg} %\\  ŘŻŘ§Ů†Ř´ÚŻŘ§Ů‡ Ů‚Ů…\\
    }%\par%[5pt]
    \centerline{\titrfont\bfseries Â«ŘµŮŘ±ŘŞ Ř¬Ů„ŘłŮ‡ ŘŻŮŘ§Řą Ř§Ř˛ \ifcase\qom@thesistype{Ř±ŘłŘ§Ů„Ů‡ ŘŻÚ©ŘŞŘ±ŰŚ}\or{ŮľŘ§ŰŚŘ§Ů†â€ŚŮ†Ř§Ů…Ů‡ Ú©Ř§Ř±Ř´Ů†Ř§ŘłŰŚ Ř§Ř±Ř´ŘŻ}\fiÂ»}
    \endgroup
%    \end{center}

    {\bfseries Ř¨Ř§ ŘŞŘŁŮŠŮŠŘŻŘ§ŘŞ Ř®ŘŻŘ§ŮŮ†ŘŻ Ů…ŘŞŘąŘ§Ů„ Ů Ř¨Ř§ Ř§ŘłŘŞŘąŘ§Ů†ŘŞ Ř§Ř˛ Ř­Ř¶Ř±ŘŞ ŮŮ„ŰŚ ŘąŘµŘ±}
    {\footnotesize (ŘąŘ¬Ů„ Ř§Ů„Ů„Ů‡ ŘŞŘąŘ§Ů„ŰŚ ŮŘ±Ř¬Ů‡ Ř§Ů„Ř´Ř±ŮŠŮ)}


    Ř¬Ů„ŘłŮ‡ ŘŻŮŘ§ŘąŰŚŮ‡ \ifcase\qom@thesistype{Ř±ŘłŘ§Ů„Ů‡ ŘŻÚ©ŘŞŘ±ŰŚ}\or{ŮľŘ§ŰŚŘ§Ů†â€ŚŮ†Ř§Ů…Ů‡ Ú©Ř§Ř±Ř´Ů†Ř§ŘłŰŚ Ř§Ř±Ř´ŘŻ}\fi{} Ř®Ř§Ů†Ů…/Ř˘Ů‚Ř§ŰŚ{}
        {\ifx\@author@persian\undefined\qom@dotlined{4cm}\else\bfseries\@author@persian\fi}
    Ř±Ř´ŘŞŮ‡
        {\ifx\@major\undefined\qom@dotline{Ů…Ů‡Ů†ŘŻŘłŰŚ Ú©Ř§Ů…ŮľŰŚŮŘŞŘ±}\else\bfseries\@major\fi}
    ŘŞŘ­ŘŞ ŘąŮ†ŮŘ§Ů†
    {\ifx\@title@persian\undefined\qom@dotlined{9cm}\else\bfseries\@title@persian\fi}
    Ř¨Ř§ Ř­Ř¶ŮŘ± Ů‡ŰŚŘ§Ů”ŘŞ ŘŻŘ§ŮŘ±Ř§Ů† ŘŻŘ± Ů…Ř­Ů„ ŘŻŘ§Ů†Ř´ÚŻŘ§Ů‡ Ů‚Ů… ŘŻŘ± ŘŞŘ§Ř±ŰŚŘ®
    {\ifx\@defensedate\undefined\qom@dotline{Ű±ŰłŰąŰ¶/Ű°Ű·/Ű±Ű´}\else\bfseries\LR{\@defensedate}\fi{} }
    ŘŞŘ´Ú©ŰŚŮ„ ÚŻŘ±ŘŻŰŚŘŻ.

    ŘŻŘ± Ř§ŰŚŮ† Ř¬Ů„ŘłŮ‡ŘŚ \Thesis{} Ř¨Ř§ Ů†Ů…Ř±Ů‡ (Ř¨Ů‡ ŘąŘŻŘŻ
    {\bfseries\ifx\@grade\undefined\ldots\ldots\ldots\else\LR{$\mathbf{\@grade}$}\fi}{ŘŚ}
    Ř¨Ů‡ Ř­Ř±ŮŮ
    {\bfseries\ifx\@grade@letters\undefined\ldots\ldots\ldots\ldots\ldots\ldots\ldots\ldots\else\@grade@letters\fi})    Ů \linebreak
        Ř¨Ř§ ŘŻŘ±Ř¬Ů‡ ŘąŘ§Ů„ŰŚ ~%
        \ifx\@degree\@excellent\rlap{\checkmark}\fi$\bigcirc$ \hskip 10pt
        Ř¨ŘłŰŚŘ§Ř±~Ř®ŮŘ¨~%
        \ifx\@degree\@verygood\rlap{\checkmark}\fi$\bigcirc$\hskip 10pt
        Ř®ŮŘ¨~%
        \ifx\@degree\@good\rlap{\checkmark}\fi$\bigcirc$\hskip 10pt
        Ů‚Ř§Ř¨Ů„~Ů‚Ř¨ŮŮ„~%
        \ifx\@degree\@acceptable\rlap{\checkmark}\fi$\bigcirc$\hskip 10pt Ů…ŮŘ±ŘŻ ŘŻŮŘ§Řą Ů‚Ř±Ř§Ř± ÚŻŘ±ŮŘŞ.

    \vskip 5pt
    \def\@nextrow{\\[10pt]}
    \begin{tabularx}{\textwidth}{|@{\hskip 3pt}p{4cm}@{\hskip 3pt}|@{\hskip 2pt}c@{\hskip 2pt}|@{}c@{}|@{}X@{}|}
    \toprule
    \multicolumn{1}{|c|}{\titrfont\small Ů†Ř§Ů… Ů Ů†Ř§Ů…â€ŚŘ®Ř§Ů†ŮŘ§ŘŻÚŻŰŚ}  &amp;
    \multicolumn{1}{c|}{\titrfont\small ŘłŮ…ŘŞ} &amp;
    \multicolumn{1}{c|}{\titrfont\small Ů…Ř±ŘŞŘ¨Ů‡ ŘąŮ„Ů…ŰŚ}  &amp;
    \multicolumn{1}{c|}{\titrfont\small Ř§Ů…Ř¶Ř§Řˇ}
    \\[5pt]
    \toprule\toprule
%    &amp;&amp;&amp;\\
    \ifnum\qom@thesis@supervisor&gt;\z@
    \@first@supervisor@name@persian &amp;
    \ifcase\qom@thesis@supervisor\or Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§\or Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§ŰŚ Ř§ŮŮ‘Ů„\fi  &amp;
    \@first@supervisor@rank@persian &amp; \@nextrow
    \ifnum\qom@thesis@supervisor=\tw@
    \@second@supervisor@name@persian &amp;
    \@too{Ř§ŘłŘŞŘ§ŘŻ} \@too{Ř±Ř§Ů‡Ů†Ů…Ř§ŰŚ}
    ŘŻŮŮ‘Ů…  &amp;
    \@second@supervisor@rank@persian &amp; \@nextrow\fi
    \fi

    \ifnum\qom@thesis@advisor&gt;\z@
    \@first@advisor@name@persian &amp;
    \ifcase\qom@thesis@advisor\or{ Ř§ŘłŘŞŘ§ŘŻ Ů…Ř´Ř§ŮŘ±}\or{Ř§ŘłŘŞŘ§ŘŻ Ů…Ř´Ř§ŮŘ± Ř§ŮŮ‘Ů„}\fi  &amp;
    \@first@advisor@rank@persian &amp; \@nextrow
    \ifnum\qom@thesis@advisor=\tw@
    \@second@advisor@name@persian &amp;
    \@too{Ř§ŘłŘŞŘ§ŘŻ} \@too{Ů…Ř´Ř§ŮŘ±}
    ŘŻŮŮ‘Ů… &amp;
    \@second@advisor@rank@persian &amp;\@nextrow\fi\fi

    \ifnum\qom@thesis@referee@enternal&gt;\z@
    \@first@referee@name  &amp;
    \ifcase\qom@thesis@referee@enternal\or{ŘŻŘ§ŮŘ± ŘŻŘ§Ř®Ů„ŰŚ}\or{ŘŻŘ§ŮŘ± ŘŻŘ§Ř®Ů„ŰŚ Ř§ŮŮ‘Ů„}\fi &amp;
    \@first@referee@rank  &amp;  \@nextrow
    \ifnum\qom@thesis@referee@enternal=\tw@
    \@second@referee@name &amp; \@too{ŘŻŘ§ŮŘ±} \@too{ŘŻŘ§Ř®Ů„ŰŚ}
    ŘŻŮŮ‘Ů…
    &amp;  \@second@referee@rank  &amp; \@nextrow\fi\fi

    \ifnum\qom@thesis@referee@external&gt;\z@
    \@first@referee@external@name &amp;
    \ifcase\qom@thesis@referee@external\or{ŘŻŘ§ŮŘ± Ř®Ř§Ř±Ř¬ŰŚ}\or{ŘŻŘ§ŮŘ± Ř®Ř§Ř±Ř¬ŰŚ Ř§ŮŮ‘Ů„}\fi &amp;
    \@first@referee@external@rank &amp;\@nextrow
    \ifnum\qom@thesis@referee@external=\tw@
    \@second@referee@external@name &amp; \@too{ŘŻŘ§ŮŘ±} \@too{Ř®Ř§Ř±Ř¬ŰŚ}
    ŘŻŮŮ‘Ů…
    &amp;  \@second@referee@external@rank &amp; \@nextrow\fi\fi

    \ifx\qom@graduate@repsentative@name\undefined\else\qom@graduate@repsentative@name\fi &amp;
    \parbox[t]{4.1cm}{\centering Ř§ŘłŘŞŘ§ŘŻ Ů†Ř§Ř¸Ř± Ů \par Ů†Ů…Ř§ŰŚŮ†ŘŻŮ‡ ŘŞŘ­ŘµŰŚŮ„Ř§ŘŞ ŘŞÚ©Ů…ŰŚŮ„ŰŚ}
    &amp; \ifx\qom@graduate@repsentative@rank\undefined\else\qom@graduate@repsentative@rank\fi &amp;
    \\
%    &amp; Ů†Ů…Ř§ŰŚŮ†ŘŻŮ‡ ŘŞŘ­ŘµŰŚŮ„Ř§ŘŞ ŘŞÚ©Ů…ŰŚŮ„ŰŚ &amp; &amp; \\[5pt]
    \bottomrule
    \end{tabularx}

    \bigskip
%        \vfill
        \begin{tabularx}{\textwidth}{XX}
            \begin{minipage}{.4\textwidth}
                \centering
                Ů…ŘąŘ§ŮŮ† Ř˘Ů…ŮŘ˛Ř´ŰŚ Ů ŮľÚŮŮ‡Ř´ŰŚ ŘŻŘ§Ů†Ř´Ú©ŘŻŮ‡\\[5pt]
                Ů†Ř§Ů… Ů Ř§Ů…Ř¶Ř§Řˇ
            \end{minipage} &amp;
            \begin{minipage}{.4\textwidth}
                \centering
                Ů…ŘŻŰŚŘ± Ř˘Ů…ŮŘ˛Ř´ Ů  ŘŞŘ­ŘµŰŚŮ„Ř§ŘŞ ŘŞÚ©Ů…ŰŚŮ„ŰŚ \\[5pt]
                Ů†Ř§Ů… Ů Ř§Ů…Ř¶Ř§Řˇ
            \end{minipage}\\
        \end{tabularx}
        \vfill
\thispagestyle{empty}
}
\end{preamblepage}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\qomtitle}{%
%%%%%%%%%%%%%%%% ŘµŮŘ­Ů‡Ů” ŘłŮŰŚŘŻ ŮľŘł Ř§Ř˛ Ř¬Ů„ŘŻ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\if@qom@draft\else
\begin{preamblepage}
    \vspace*{\fill}
    \hfill\usebox\qom@thesis@proof@box
\end{preamblepage}
\fi

%%%%%%%%%%%%%%% ŘµŮŘ­Ů‡ Ř¨ŘłŮ…â€ŚŘ§Ů„Ů„Ů‡ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\if@qom@draft\else
\begin{preamblepage}
    \begin{minipage}[c][\textheight][c]{\textwidth}%
    \centering
    \includegraphics[width=%
    \ifx\@besmwidth\undefined%
    .9\textwidth
    \else
    \@besmwidth\textwidth
    \fi
    ]{basmalah}
    \end{minipage}%
\end{preamblepage}
\fi
%%%%%%%%%%%%%%% ŘµŮŘ­Ů‡ ŘąŮ†ŮŘ§Ů†  %%%%%%%%%%%%%%%
\begin{preamblepage}
    \begin{titlepage}
    {\zarfont\fontsize{12}{14}\selectfont\includegraphics[width=2cm, height=2cm]{logo.jpg}\\[-7pt] \bfseries ŘŻŘ§Ů†Ř´ÚŻŘ§Ů‡ Ů‚Ů…}
    \\[-5pt]
    {\zarfont\fontsize{12}{14}\selectfont\bfseries ŘŻŘ§Ů†Ř´Ú©ŘŻŮ‡
    \ifx\@faculty\undefined\qom@dotline{ŘąŮ„ŮŮ… Ř±ŰŚŘ§Ř¶ŰŚ}\else\@faculty\fi
    \\[-7pt]
    ÚŻŘ±ŮŮ‡
    \ifx\@department\undefined\qom@dotline{ŘąŮ„ŮŮ… Ú©Ř§Ů…ŮľŰŚŮŘŞŘ±}\else\@department\fi}
    \\%[5pt]
    %\par
    %\vspace{.3\baselineskip}
    {\vskip 2ex
    \zarfont\fontsize{14}{16}\selectfont\bfseries
    \ifcase\qom@thesistype{Ř±ŘłŘ§Ů„Ů‡ ŘŻÚ©ŘŞŘ±ŰŚ}\or{ŮľŘ§ŰŚŘ§Ů†â€ŚŮ†Ř§Ů…Ů‡ Ú©Ř§Ř±Ř´Ů†Ř§ŘłŰŚâ€ŚŘ§Ř±Ř´ŘŻ}\or{ŮľŘ±ŮÚŮ‡ Ú©Ř§Ř±Ř´Ů†Ř§ŘłŰŚ}\fi
    }
    %\vskip 2ex
%    \vskip 5pt
    \centerline{\zarfont\fontsize{12}{14}\selectfont\bfseries  Ř±Ř´ŘŞŮ‡
    {\ifx\@major\undefined\qom@dotline{Ů…Ů‡Ů†ŘŻŘłŰŚ Ú©Ř§Ů…ŮľŰŚŮŘŞŘ±}\else\bfseries\@major\fi}{}
    \ifx\@field\undefined\else ÚŻŘ±Ř§ŰŚŘ´ \@field\fi}
    \vskip 4ex
    {\titrfont\fontsize{14}{16}\selectfont\bfseries ŘąŮ†ŮŘ§Ů†: \\
    \ifx\@title@persian\undefined\qom@dotlined{9cm}\else\bfseries {\fontsize{22}{24}\selectfont\@title@persian }\fi}
    \baselineskip=1.5cm\par
    \vskip 4ex
    \baselineskip=1cm

%    \large
    {\bfseries\ifcase\qom@thesis@supervisor%0
    \titrfont Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§: \\
    \qom@dotlined{5cm}
    \or%1
    \titrfont Ř§ŘłŘŞŘ§ŘŻ Ř±Ř§Ů‡Ů†Ů…Ř§: \\
    \fontsize{12}{14}\selectfont\@first@supervisor@name@persian
    \or%2
    \titrfont Ř§ŘłŘŞŘ§ŘŻŘ§Ů† Ř±Ř§Ů‡Ů†Ů…Ř§: \\
    \fontsize{12}{14}\selectfont\@first@supervisor@name@persian{} Ů \@second@supervisor@name@persian
    \fi
    }
    \par
    {\bfseries\ifcase\qom@thesis@advisor\relax%0
    \ifnum\qom@thesistype=0\titrfont Ř§ŘłŘŞŘ§ŘŻ Ů…Ř´Ř§ŮŘ±: \\ \qom@dotlined{5cm} \fi
    \or%1
    \titrfont Ř§ŘłŘŞŘ§ŘŻ Ů…Ř´Ř§ŮŘ±: \\
    \fontsize{12}{14}\selectfont%
    \@first@advisor@name@persian
    \or%2
    \titrfont Ř§ŘłŘŞŘ§ŘŻŘ§Ů† Ů…Ř´Ř§ŮŘ±: \\
    \fontsize{12}{14}\selectfont%
    \@first@advisor@name@persian{} Ů \@second@advisor@name@persian
    \fi
    }
    \par
    {%
    \titrfont Ů†ÚŻŘ§Ř±Ů†ŘŻŮ‡: \\
    \ifx\@author@persian\undefined\qom@dotlined{4cm}
    \else\fontsize{12}{14}\selectfont\bfseries\@author@persian\fi}
    \par
    {\bfseries\fontsize{12}{14}\selectfont\zarfont
    \ifx\@submissiondate\undefined Ů…Ř§Ů‡ ŘłŘ§Ů„\else\@submissiondate\fi}
    \end{titlepage}
\end{preamblepage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Ř¨Ř±Ř§ŰŚ ŮľŘ±ŮÚŮ‡ Ú©Ř§Ř±Ř´Ů†Ř§ŘłŰŚ Ů†ŰŚŘ§Ř˛ŰŚ Ř¨Ů‡ ŘµŮŘ­Ř§ŘŞ Ř˛ŰŚŘ± Ů†ŰŚŘłŘŞ.
\if@qom@draft\else
\ifnum\qom@thesistype&lt;\tw@
%%%%%%%%%%%%%%% ŘµŮŘ­Ů‡ ŘŞŘ§Ů”ŰŚŰŚŘŻŮ‡ ŘŻŘ§ŮŘ±Ř§Ů†
\refereeAck%
%%%%%%%%%%%%%%% ŘµŮŘ­Ů‡ ŘŞŘąŮ‡ŘŻŮ†Ř§Ů…Ů‡ Ř§ŘµŘ§Ů„ŘŞ ŮľŘ§ŰŚŘ§Ů†â€ŚŮ†Ř§Ů…Ů‡/Ř±ŘłŘ§Ů„Ů‡
\oathpage%
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fi
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%% ŘµŮŘ­Ů‡ ŘŞŮ‚ŘŻŰŚŮ…
\if@qom@draft\else
\begin{preamblepage}
    \ifx\@dedicatedto\undefined%
    \else
        \pagetitle{ŘŞŮ‚ŘŻŰŚŮ…}
        {\@dedicatedto}
    \fi
\end{preamblepage}
\fi
%%%%%%%%%%%%%%% ŘµŮŘ­Ů‡ Ů†ŰŚŘ§ŰŚŘ´
\if@qom@draft\else
\begin{preamblepage}
    \ifx\@praise\undefined%
    \else
    \pagetitle{Ů†ŰŚŘ§ŰŚŘ´}
    {\@praise}
    \fi
\end{preamblepage}
\fi
%%%%%%%%%%%%%%% ŘµŮŘ­Ů‡ ŘłŮľŘ§ŘłÚŻŘ˛Ř§Ř±ŰŚ
\if@qom@draft\else
\begin{preamblepage}
    \ifx\@acknowledgement\undefined%
    \else
        \pagetitle{ŘŞŘ´Ú©Ř± Ů Ů‚ŘŻŘ±ŘŻŘ§Ů†ŰŚ}
        {\@acknowledgement}
    \fi
\end{preamblepage}
\fi
%%%%%%%%%%%%%%% ŘµŮŘ­Ů‡ Ú†Ú©ŰŚŘŻŮ‡
\begin{preamblepage}
    \ifx\@abstract@persian\undefined%
    \else
%        \pagetitle{Ú†Ú©ŰŚŘŻŮ‡}
        \chapter*{Ú†Ú©ŰŚŘŻŮ‡}
        \begin{abstractcount}
            {\@abstract@persian}%
        \end{abstractcount}
        \vspace*{1cm}\par
        {\noindent {\bfseries Ú©Ů„Ů…Ř§ŘŞ Ú©Ů„ŰŚŘŻŰŚ:}
        \ifx\@keywords@persian\undefined\else\@keywords@persian{}\fi}
    \fi
\end{preamblepage}
} %%%% end of qomtitle macro
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ŘŻŘłŘŞŮŘ±Ů‡Ř§ŰŚŰŚ Ř¨Ř±Ř§ŰŚ ŘłŮŘ§Ř±Ř´ŰŚ Ú©Ř±ŘŻŮ† ŘµŮŘ­Ř§ŘŞ Ř§ŮŮ„ ŮŘµŮ„â€ŚŮ‡Ř§
\newcommand\mycustomraggedright{%
\if@RTL\raggedleft%
\else\raggedright%
\fi}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@AfterPackage{xepersian}{%
\SepMark{-}
% ŘŻŘłŘŞŮŘ±ŰŚ Ř¨Ř±Ř§ŰŚ Ř­Ř°Ů Ú©Ů„Ů…Ů‡ Â«Ú†Ú©ŰŚŘŻŮ‡Â»
\def\abstractname{}
% ŘŻŘłŘŞŮŘ±ŰŚ Ř¨Ř±Ř§ŰŚ Ř­Ř°Ů Ú©Ů„Ů…Ů‡ Â«abstractÂ»
%\renewcommand{\latinabstract}{}
% ŘŻŘłŘŞŮŘ±ŰŚ Ř¨Ř±Ř§ŰŚ ŘŞŘşŰŚŰŚŘ± Ů†Ř§Ů… Ú©Ů„Ů…Ů‡ Â«Ř§Ř«Ř¨Ř§ŘŞÂ» Ř¨Ů‡ Â«Ř¨Ř±Ů‡Ř§Ů†Â»
\renewcommand\proofname{\textbf{Ř¨Ř±Ů‡Ř§Ů†}}
% ŘŻŘłŘŞŮŘ±ŰŚ Ř¨Ř±Ř§ŰŚ ŘŞŘşŰŚŰŚŘ± Ů†Ř§Ů… Ú©Ů„Ů…Ů‡ Â«Ú©ŘŞŘ§Ř¨â€ŚŮ†Ř§Ů…Ů‡Â» Ř¨Ů‡ Â«Ů…Ř±Ř§Ř¬ŘąÂ»
\renewcommand{\bibname}{Ů…Ů†Ř§Ř¨Řą Ů Ů…Ř˘Ř®Ř°}
% ŘŻŘłŘŞŮŘ±ŰŚ Ř¨Ř±Ř§ŰŚ ŘŞŘąŘ±ŰŚŮ ŮŘ§ÚŮ‡â€ŚŮ†Ř§Ů…Ů‡ Ř§Ů†ÚŻŮ„ŰŚŘłŰŚ Ř¨Ů‡ ŮŘ§Ř±ŘłŰŚ
\newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\}
% ŘŻŘłŘŞŮŘ±ŰŚ Ř¨Ř±Ř§ŰŚ ŘŞŘąŘ±ŰŚŮ ŮŘ§ÚŮ‡â€ŚŮ†Ř§Ů…Ů‡ ŮŘ§Ř±ŘłŰŚ Ř¨Ů‡ Ř§Ů†ÚŻŮ„ŰŚŘłŰŚ
\newcommand\englishgloss[2]{#2\dotfill\lr{#1}\\}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Ř¨Ř§ ŘŻŘłŘŞŮŘ± newtheoremstyle Ř´Ů…Ř§ Ů…ŰŚ ŘŞŮŘ§Ů†ŰŚŘŻ ŰŚÚ© Ř§ŘłŘŞŘ§ŰŚŮ„ Ř¬ŘŻŰŚŘŻ Ř¨Ř±Ř§ŰŚ Ů…Ř­ŰŚŘ· Ů‡Ř§ŰŚŰŚ Ú†ŮŮ† plainŘŚ definitionâ€Ś Ů ... ŘŞŘąŘ±ŰŚŮ Ú©Ů†ŰŚŘŻ. Ř´Ú©Ů„ Ú©Ů„ŰŚ Ř§ŰŚŮ† ŘŻŘłŘŞŮŘ± Ř¨Ů‡ ŘµŮŘ±ŘŞ Ř˛ŰŚŘ± Ř§ŘłŘŞ.

%%\newtheoremstyle{stylename}% name of the style to be used
%%  {spaceabove}% measure of space to leave above the theorem. E.g.: 3pt
%%  {spacebelow}% measure of space to leave below the theorem. E.g.: 3pt
%%  {bodyfont}% name of font to use in the body of the theorem
%%  {indent}% measure of space to indent
%%  {headfont}% name of head font
%%  {headpunctuation}% punctuation between head and body
%%  {headspace}% space after theorem head; " " = normal interword space
%%  {headspec}% Manually specify head
% % ŘŞŘąŘ±ŰŚŮ Ů…Ř­ŰŚŘ·â€ŚŮ‡Ř§ŰŚ ÚŻŮŮ†Ř§ÚŻŮŮ† Ů…Ř§Ů†Ů†ŘŻ Ů…Ř­ŰŚŘ· Ř¨Ř±Ř§ŰŚ Ů‚Ř¶ŰŚŮ‡ Ů ...
%% theoremstyle = &gt; plain, definition, remark
%% Ř¨Ř§ ŘŻŘłŘŞŮŘ± newtheorem ŰŚÚ© Ů†ŮŘą Ř§Ř˛ Ř§ŘłŘŞŘ§ŰŚŮ„ŰŚ Ú©Ů‡ ŘŻŘ± Ř¨Ř§Ů„Ř§ŰŚ Ř˘Ů† ŘŞŘąŘ±ŰŚŮ Ř´ŘŻŮ‡ Ř§ŘłŘŞ Ř§ŰŚŘ¬Ř§ŘŻ Ů…ŰŚ Ú©Ů†ŰŚŮ….
% ŘŞŘąŘ±ŰŚŮ Ů Ů†Ř­ŮŮ‡ Ř¸Ř§Ů‡Ř± Ř´ŘŻŮ† ŘąŮ†ŮŘ§Ů† Ů‚Ř¶ŰŚŮ‡â€ŚŮ‡Ř§ŘŚ ŘŞŘąŘ±ŰŚŮâ€ŚŮ‡Ř§ŘŚ Ů…Ř«Ř§Ů„â€ŚŮ‡Ř§ Ů ...
\theoremstyle{definition}
\newtheorem{definition}{ŘŞŘąŘ±ŰŚŮ}[chapter]
\newtheorem{example}[definition]{Ů…Ř«Ř§Ů„}
\theoremstyle{plain}
\newtheorem{theorem}[definition]{Ů‚Ř¶ŰŚŮ‡}
\newtheorem{lemma}[definition]{Ů„Ů…}
\newtheorem{proposition}[definition]{ÚŻŘ˛Ř§Ř±Ů‡}
\newtheorem{corollary}[definition]{Ů†ŘŞŰŚŘ¬Ů‡}
\theoremstyle{remark}
\newtheorem{remark}[definition]{Ů…Ů„Ř§Ř­Ř¸Ů‡}
\newtheorem{point}[definition]{Ů†Ú©ŘŞŮ‡}
%%%%%%%%%%%%%%%%%%%%%%%%
%\theoremstyle{plain}
%\newtheorem{theorem}{Ů‚Ř¶ŰŚŮ‡}
%\newtheorem{lemma}{Ů„Ů…}
%\newtheorem{proposition}{ÚŻŘ˛Ř§Ř±Ů‡}
%\theoremstyle{definition}
%\newtheorem{definition}{ŘŞŘąŘ±ŰŚŮ}
%\newtheorem{example}{Ů…Ř«Ř§Ů„}
%\newtheorem{prob}{ŘłŮŘ§Ů„}
%\theoremstyle{remark}
%\newtheorem{corollary}{Ů†ŘŞŰŚŘ¬Ů‡}
%\newtheorem{remark}{Ů…Ů„Ř§Ř­Ř¸Ů‡}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\AtBeginDocument{%
    \def\@makechapterhead#1{%
        \vspace*{50\p@}%
        {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
        \ifnum \c@secnumdepth &gt;\m@ne
            \if@mainmatter
            \huge\bfseries \@chapapp\space
            \ifappendix \harfi{chapter}\else \expandafter\tartibinumeral\c@chapter\fi
            \par\nobreak
            \vskip 20\p@
            \fi
        \fi
        \interlinepenalty\@M
        \Huge \bfseries #1\par\nobreak
        \vskip 40\p@
        \nobreak
        \thispagestyle{empty}
        }}
    \def\@makeschapterhead#1{%
        \vspace*{50\p@}%
        {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
        \normalfont
        \interlinepenalty\@M
        \Huge \bfseries  #1\par\nobreak
        \vskip 40\p@
        \thispagestyle{empty}
    }}
    \bidi@appto{\appendix}{%\addcontentsline{toc}{chapter}{ŮľŰŚŮŘłŘŞâ€ŚŮ‡Ř§}%\appendices
    \appendixtrue}
    %% The followings are hacks for not using \mainmatter macro by users.
    %% Sophisticated front matter page-numbering
%      \bidi@preto{\chapter}{\if@qom@preamble\else\ifappendix\else\ifnum\c@chapter=0\mainmatter\fi\fi\fi}
%      \bidi@patchcmd{\@chapter}{\if@mainmatter}{\if@qom@preamble\else\ifappendix\else\ifnum\c@chapter=0\global\mainmatter\fi\fi\fi\if@mainmatter}{}{}
    \bidi@patchcmd{\secdef}{\@dblarg}{\if@qom@preamble\else\ifappendix\else\ifnum\c@chapter=0\mainmatter\fi\fi\fi\@dblarg}{}{}
    \bidi@appto{\tableofcontents}{\@qom@preamblefalse}
    \bidi@appto{\listoffigures}{\@qom@preamblefalse}
    \bidi@appto{\listoftables}{\@qom@preamblefalse}
    \bidi@appto{\lstlistoflistings}{\@qom@preamblefalse}
    \bidi@appto{\listofsymbols}{\@qom@preamblefalse}
    \bidi@appto{\endacronym}{\@qom@preamblefalse}
    \setlength{\parindent}{1cm}
    \setlength{\parskip}{0pt}
    %
    %\setlength{\footskip}{
    %\paperheight   -(1in+\voffset+\topmargin+\headheight+\headsep+\textheight)  -1cm
    %}
    \pagenumbering{roman}
    \qomtitle
    \frontmatter
}%End of AtBeginDocument
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@part[#1]#2{%
\ifnum\c@secnumdepth &gt;-2\relax
\refstepcounter{part}%
\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
\else
\addcontentsline{toc}{part}{#1}%
\fi
\markboth{}{}%
{\centering
\interlinepenalty \@M
\ifnum \c@secnumdepth &gt;-2\relax%
    \huge\bfseries \partname\nobreakspace\thepart
    \par\vskip 20\p@
\fi
\Huge\bfseries #2\par}%
\@endpart}
%\def\@makechapterhead#1{%
%\vspace*{-30\p@}%
%{\parindent \z@ \mycustomraggedright %\@mycustomfont
%\ifnum \c@secnumdepth &gt;\m@ne
%\if@mainmatter
%\huge\bfseries \@chapapp\space {\chapternumber\thechapter}
%\par\nobreak
%\vskip 20\p@
%\fi
%\fi
%\interlinepenalty\@M
%\Huge \bfseries #1\par\nobreak
%\vskip 120\p@
%}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% http://qa.parsilatex.com/25972/
\newenvironment{abstractcount}{%
    \newcount\WordCount
    \newcount\My@Alphabets
    \newXeTeXintercharclass\MyAlphabets
    \newXeTeXintercharclass\MyPunctuations
    \newXeTeXintercharclass\qom@dot@charclass
    \XeTeXcharclass `\. \qom@dot@charclass
    \XeTeXcharclass`\{\MyPunctuations
    \XeTeXcharclass`\}\MyPunctuations
    \XeTeXcharclass`\[\MyPunctuations
    \XeTeXcharclass`\]\MyPunctuations
    \XeTeXcharclass`\(\MyPunctuations
    \XeTeXcharclass`\)\MyPunctuations
    \XeTeXcharclass`\`\MyPunctuations
    \XeTeXcharclass`\'\MyPunctuations
    \XeTeXcharclass`\!\MyPunctuations
    \XeTeXcharclass`\:\MyPunctuations
    \XeTeXcharclass`\;\MyPunctuations
    \XeTeXcharclass`\?\MyPunctuations
    \XeTeXcharclass`\Řź\MyPunctuations
    \XeTeXcharclass`\Â«\MyPunctuations
    \XeTeXcharclass`\Â»\MyPunctuations
    \XeTeXcharclass`\ŘŚ\MyPunctuations
    \XeTeXcharclass`\,\MyPunctuations
    \My@Alphabets=`\Ř˘ \loop \XeTeXcharclass \My@Alphabets=\MyAlphabets \ifnum\My@Alphabets&lt;`\ŰŚ \advance\My@Alphabets \@ne \repeat
    \My@Alphabets=`\A \loop \XeTeXcharclass \My@Alphabets=\MyAlphabets \ifnum\My@Alphabets&lt;`\Z \advance\My@Alphabets \@ne \repeat
    \My@Alphabets=`\a \loop \XeTeXcharclass \My@Alphabets=\MyAlphabets \ifnum\My@Alphabets&lt;`\z \advance\My@Alphabets \@ne \repeat
    \XeTeXinterchartoks \MyAlphabets 4095 = {\PrintWordCount}
    \XeTeXinterchartoks \MyAlphabets \MyPunctuations = {\PrintWordCount}
    \XeTeXinterchartoks \MyAlphabets \qom@dot@charclass = {\PrintWordCount}
    \newcommand*{\PrintWordCount}{%\raise.4\baselineskip
    \llap{\tiny\global\advance\WordCount\@ne\textcolor{red}{}%{\the\WordCount}
    }}
}% end of beginnig of abstractcount environment
{%
    \renewcommand*{\PrintWordCount}{}
    \ifnum\WordCount&gt;300%
    \par\null\vspace{5mm}
    \centerline{\color{red}\bfseries\if@RTL\zarfont "Ů…ŘŞŮ† Ú†Ú©ŰŚŘŻŮ‡ Ů†Ř¨Ř§ŰŚŘŻ Ř¨ŰŚŘ´ Ř§Ř˛ ŰłŰ°Ű° Ú©Ř§Ř±Ř§Ú©ŘŞŘ± Ř¨Ř§Ř´ŘŻŘ›â€Ś Ů„Ř·ŮŘ§Ů‹ Ř˘Ů† Ř±Ř§ ŮŰŚŘ±Ř§ŰŚŘ´ Ů†Ů…Ř§ŰŚŰŚŘŻ.``\else%
    ``The Abstract cannot contain more than 300 words."\fi}
    \centerline{\color{gray}\bfseries\if@RTL\zarfont ŘŻŘ± Ř­Ř§Ů„ Ř­Ř§Ř¶Ř± Ů…ŘŞŮ† Ú†Ú©ŰŚŘŻŮ‡Ů” Ř´Ů…Ř§ Ř­Ř§ŮŰŚ \the\WordCount{} Ú©Ů„Ů…Ů‡ Ř§ŘłŘŞ!\else%
    This one includes \the\WordCount{} words! Please modify it.\fi}%
    \fi
}% end of abstractcount environment
}
\AtEndDocument{%
    %%%%%%%%%%%%%%%%%%%%%% Bibliography  %%%%%%%%%%%%%%%%%%%%%%%%%
    \IfFileExists{references.bib}{%
    \begin{spacing}{1}
    \bibliographystyle{plain-fa}
    \small
    \bibliography{references}
    \end{spacing}
    }%
    {}
    %%%%%%%%%%%%%%%%%%%%%% Making Dictionary %%%%%%%%%%%%%%%%%%%%%%%%%
    \newif\if@qom@dicfatoen
    \newif\if@qom@dicentofa
    \def\qom@Aa{Ř§}\def\qom@He{Ů‡}%
    \newcommand\qom@makedic[1]{%
        \chapter*{#1}
        \markboth{#1}{#1}
        \addcontentsline{toc}{chapter}{#1}
        \parindent=\z@%
        \parskip\z@ \@plus .3\p@\relax
        \if@qom@dicentofa%
            \def\qom@dicrow##1##2{\bigskip##1\dotfill\rl{##2}\par}%% en2fa
        \fi%
        \if@qom@dicfatoen%
            \def\qom@dicrow##1##2{\medskip##1\dotfill\dotfill\hbox{\lr{##2}}\par}%% fa2en
        \fi%
        \def\qom@dic@letter@space{\def\qom@dic@letter@space{\bigskip}}%
        \def\qom@dic@letter@title##1{%
        \qom@dic@letter@space\centerline{\normalfont\textbf{##1}}\nobreak}%
        \expandafter\gdef\expandafter\qom@trimtok##1=##2;\relax{\qom@dicrow{##1}{##2}}%
        \gdef\qom@trimmer##1{\expandafter\qom@trimtok ##1;\relax}%
        \catcode\endlinechar=9 %
        \newread\qom@reader%
        \gdef\qom@letter{\relax}%
        \begingroup
        \if@qom@dicentofa\latin\fi
        \footnotesize%
        \if@qom@dicentofa\LTRmulticolcolumns\fi%
        \begin{multicols*}{2}%
            \if@qom@dicentofa%
                \openin\qom@reader=dicen2fa.tex\relax%
            \fi
            \if@qom@dicfatoen%
                \openin\qom@reader=dicfa2en.tex\relax%
            \fi%
            \loop%
                \read\qom@reader to \qom@data%
                \unless\ifeof\qom@reader%
                    \qom@IfSubString{\qom@data}{=}%
                    \if@qom@TestSubString%
                        \edef\qom@dic@letter{\qom@firstletter{\qom@data}}%
                        \uppercase\expandafter{\expandafter\edef\expandafter\qom@dic@letter\expandafter{\qom@dic@letter}} %https://tex.stackexchange.com/questions/404984
                        \ifx\qom@Aa\qom@dic@letter\def\qom@dic@letter{Ř˘}\fi
                        \ifx\qom@He\qom@dic@letter\def\qom@dic@letter{Ů‡â€Ť}\fi
                        \ifx\qom@letter\qom@dic@letter\else%
                            \edef\qom@letter{\qom@dic@letter}%
                            \qom@dic@letter@title{\qom@dic@letter}%
                        \fi%
                        \qom@trimmer{\qom@data}%
                    \fi%
            \repeat%
            \closein\qom@reader%
        \end{multicols*}%
        \if@qom@dicentofa\endlatin\fi
        \endgroup
    }%
    %%%%%%%%%%%%%%%%%%%%%% Persian to English Dictionary %%%%%%%%%%%%%%%%%%%%%%%%%
    \IfFileExists{dicfa2en.tex}{\@qom@dicfatoentrue\@qom@dicentofafalse}%
    {\typeout{======There is no persian to english dictionary file in the main folder, named dicfa2en.tex.======}}
    \if@qom@dicfatoen
        \qom@makedic{{ŮŘ§ÚŮ‡â€ŚŮ†Ř§Ů…Ů‡â€Ś ŮŘ§Ř±ŘłŰŚ Ř¨Ů‡ Ř§Ů†ÚŻŮ„ŰŚŘłŰŚ}}
    \fi
    %%%%%%%%%%%%%%%%%%%%%% English to Persian Dictionary %%%%%%%%%%%%%%%%%%%%%%%%%
    \IfFileExists{dicen2fa.tex}{\@qom@dicentofatrue\@qom@dicfatoenfalse}%
    {\typeout{======There is no english to persian dictionary file in the main folder, named dicfa2en.tex.======}}
    \if@qom@dicentofa
        \qom@makedic{ ŮŘ§ÚŮ‡â€ŚŮ†Ř§Ů…Ů‡â€Ś Ř§Ů†ÚŻŮ„ŰŚŘłŰŚ Ř¨Ů‡ ŮŘ§Ř±ŘłŰŚ}
    \fi
    %%%%%%%%%%%%%%%%%%%%%% Index %%%%%%%%%%%%%%%%%%%%%%%%%
    \if@qom@index
        \providecommand*\lettergroup[1]{%
            \par%
            \def\qom@lettergroup{#1}%
            \ifx\qom@lettergroup\qom@Aa%
                \textbf{Ř˘}%
            \else%
                \ifx\qom@lettergroup\qom@He%
                    \textbf{Ů‡â€Ť}%
                \else%
                    \textbf{#1}%
                \fi%
            \fi%
            \par%
            \nopagebreak%
        }%
        \printindex%
    \fi
    %%%%%%%%%%%%%%%%%%%%%% English Abstract %%%%%%%%%%%%%%%%%%%%%%%%%
    \begin{preamblepage}
    \begin{latin}
        \ifx\@abstract@english\undefined%
        \else
            \chapter*{Abstract}
            \begin{abstractcount}
                {\@abstract@english}%
            \end{abstractcount}
            \vspace*{1cm}\par
            {\noindent {\bfseries Keywords:}
            \ifx\@keywords@english\undefined\else\@keywords@english{}\fi}
        \fi
    \end{latin}
    \end{preamblepage}
    %%%%%%%%%%%%%%%%%%%%%% English Title %%%%%%%%%%%%%%%%%%%%%%%%%
    \begin{preamblepage}
        \begin{titlepage}
    \begin{latin}
        {\fontsize{12}{14}\selectfont\includegraphics[width=2cm, height=2cm]{logo.jpg}\\ The University of Qom}
        \\[5pt]
        {\fontsize{12}{14}\selectfont Faculty of
        \ifx\@faculty@english\undefined\qom@dotline{Mathematics}\else\@faculty@english\fi
        \\[5pt]
        Department of
        \ifx\@department@english\undefined\qom@dotline{Computer Science}\else\@department@english\fi}
        \\[10pt]
        %\par
        %\vspace{.3\baselineskip}
    %    {\vskip 4ex
    %    \fontsize{14}{16}\selectfont\bfseries
    %    \ifcase\qom@thesistype{Ř±ŘłŘ§Ů„Ů‡ ŘŻÚ©ŘŞŘ±ŰŚ}\or{ŮľŘ§ŰŚŘ§Ů†â€ŚŮ†Ř§Ů…Ů‡ Ú©Ř§Ř±Ř´Ů†Ř§ŘłŰŚâ€ŚŘ§Ř±Ř´ŘŻ}\or{ŮľŘ±ŮÚŮ‡ Ú©Ř§Ř±Ř´Ů†Ř§ŘłŰŚ}\fi
    %    }
        %\vskip 2ex
        \vskip 5pt
        \begin{center}
        {\fontsize{12}{14}\selectfont\bfseries
        A Thesis Submitted in Partial Fulfillment of the Requirements for\linebreak the Degree of
        \ifcase\qom@thesistype{Doctor of Philosophy}\or{Master of Science}\or{Bachelor of Science}\fi{} in
        {\ifx\@major@english\undefined\qom@dotline{Computer Science}\else\bfseries\@major@english\fi}{}
        }
        \end{center}
        \vskip 4ex
        {\fontsize{14}{16}\selectfont\textsf{Title:} \\
        \ifx\@title@english\undefined\qom@dotlined{9cm}\else\bfseries {\fontsize{22}{24}\selectfont\@title@english }\fi}
        \baselineskip=1.5cm\par
        \vskip 4ex
        \baselineskip=.5cm
        \large
        {\large\ifcase\qom@thesis@supervisor@english%0
            \textsf{Supervisor:} \\
            \qom@dotlined{5cm}
        \or%1
            \textsf{Supervisor:} \\
            \bfseries\fontsize{12}{14}\selectfont\@first@supervisor@name@english
        \or%2
            \textsf{Supervisors:} \\
            \bfseries\fontsize{12}{14}\selectfont\@first@supervisor@name@english{} and \@second@supervisor@name@english
        \fi
        }
        \par
        {\large\ifcase\qom@thesis@advisor@english\relax%0
        \ifnum\qom@thesistype=0 Advisor: \\ \qom@dotlined{5cm} \fi
        \or%1
            \textsf{Advisor:} \\
            \bfseries\fontsize{12}{14}\selectfont%
            \@first@advisor@name@english
        \or%2
            \textsf{Advisors:} \\
            \bfseries\fontsize{12}{14}\selectfont%
            \@first@advisor@name@english{} and \@second@advisor@name@english
        \fi
        }
        \par
        {\large%
        \textsf{By:} \\
        \ifx\@author@english\undefined\qom@dotlined{4cm}
        \else\fontsize{12}{14}\selectfont\bfseries\@author@english\fi}
        \par
        {\fontsize{12}{14}\selectfont
        \ifx\@submissiondate@english\undefined Season Year\else\@submissiondate@english\fi}
    \end{latin}
        \end{titlepage}
    \end{preamblepage}
    %%%%%%%%%%%%%%%%%%% Blank Page %%%%%%%%%%%%%%%%%%%%%%%%%
    \cleardoublepage
    \newpage\null
    \thispagestyle{empty}
}%End of \AtEndDocument
%%
%% Copyright Â© 2017-2022      by Seiied-Mohammad-Javad Razavian
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
%% this license is at: http://www.latex-project.org/lppl.txt
%%
%% This work is "maintained" (as per LPPL maintenance status)
%%  by Seiied-Mohammad-Javad Razavian
%%
%%  It is a based on Tabriz_thesis of Vahid Damanafshan,
%%    which was based on xepersian-thesis.cls by Vafa Khalighi
%%   ____________________________________________________________________
%% Special thanks to Vafa Khalighi for the XePersian Package.
%% This work is supported by University of Qom.
%% End of file `thesis-qom.cls'.</pre></body></html>