<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%%%  Version 0.42
%%%  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-2018 Seiied-Mohammad-Javad Razavian
%%%  
%%%   http://www.parsilatex.com  
%%%   __________________________________
%%%   
%%%  Change Log:
%%%  ver 0.42,  Nov 10th, 2018
%%%  logo is replaced by logo.jpg because of a conflict with ls-R databese.
%%%  ver 0.41,  Oct 15th, 2018
%%%  thesis-qom.pdf is now attached to the class documentation. 
%%%  ver 0.4,  Oct 12th, 2018
%%%  The new version is adapted with bidi ver 34.5 and bidi ver 21.6; in this new version extrafootnotefeatures have many extra features than to past, as a result there is no need to patch footnotes. 
%%%  ver 0.33,  Feb 4th, 2018
%%%  The style is called thesis-qom by know. 
%%%  ver 0.32,  Jan 2nd, 2018
%%%  After bidi ver 30.2 and xepersian ver 20.1 ther is no need so adjust text digit font in the style, 
%%%  because those packages do it as desirable. These updates happened in  January 1st, 2018. 
%%%  ver 0.31, Dec 17th, 2017 
%%%  some little change in toc style
%%%  ver 0.3, Dec 12th, 2017 
%%%  \listofsymbols macro is defined with the aid of Vahid Damanafshan. 
%%%  ver 0.29, Dec 11th, 2017 
%%%  scratch option replaced by final 
%%%  ver 0.28, Dec 11th, 2017  
%%%  Final improvement in setting digits' font to Yas font; it'll be done with the aid of some xetex interal macros. 
%%%  Thanks to Vafa Khalighi for his draft in doing such an action automatically. 
%%%  ver 0.27, Dec 10th, 2017  
%%%  Another improvement in sophisticated main matter page numbering.
%%%  ver 0.26, Dec 9th, 2017  
%%%  There is no neeed to \mainmatter macro, it'll be set automatically by some hacks. 
%%%  ver 0.25, Dec 6th, 2017  
%%%  some other improvement in en2fa dictionary. https://tex.stackexchange.com/questions/404984
%%%  ver 0.24, Dec 6th, 2017  
%%% definition of \lettergroup macro changed in coordination with style of fa2en dictionary . 
%%%  ver 0.23, Dec 5th, 2017  
%%%  scratch option causes the preamble pages not to show. Some improvement in dictionaries. 
%%%  ver 0.22, Dec 4th, 2017
%%%  some improvement in TOC. 
%%%  ver 0.21, Dec 3rd, 2017
%%%  adding \strut to \RTL and \LTR command, for solving http://qa.parsilatex.com/28105 by vafa khalighi. 
%%% Some improvement in dictionaries code. 
%%%  ver 0.2, Dec 3rd, 2017
%%%  Dictionary files are automatically read from the dicfa2en.tex and dicen2fa.tex. 
%%%  ver 0.1, Nov 12th, 2017
%%%  First Release

\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\def\qom@thesis@date{2018/11/10}
\def\qom@thesis@version{0.42}
\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
    \sbox{\qom@thesis@proof@box}{\textcolor{gray}{\hboxR{\tiny Ø¢Ù…Ø§Ø¯Ù‡â€Œ Ø´Ø¯Ù‡ ØªÙˆØ³Ø· Ú©Ù„Ø§Ø³ \texttt{thesis-qom}ØŒ Ù†Ø³Ø®Ù‡Ù” \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}
    \textcolor{gray}{\hfill\tiny Ø¢Ù…Ø§Ø¯Ù‡â€Œ Ø´Ø¯Ù‡ ØªÙˆØ³Ø· Ú©Ù„Ø§Ø³ \texttt{thesis-qom}ØŒ Ù†Ø³Ø®Ù‡Ù” \lr{\qom@thesis@version}}
\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{-}
% Ø¯Ø³ØªÙˆØ±ÛŒ Ø¨Ø±Ø§ÛŒ Ø­Ø°Ù Ú©Ù„Ù…Ù‡ Â«Ú†Ú©ÛŒØ¯Ù‡Â»
\renewcommand{\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
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\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}
}

\endinput


%% 
%% Copyright Â© 2017-2018      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>