texlive[63524] Master/texmf-dist: thesis-qom (9jun22)

commits+karl at tug.org commits+karl at tug.org
Thu Jun 9 22:34:33 CEST 2022


Revision: 63524
          http://tug.org/svn/texlive?view=revision&revision=63524
Author:   karl
Date:     2022-06-09 22:34:33 +0200 (Thu, 09 Jun 2022)
Log Message:
-----------
thesis-qom (9jun22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/xelatex/thesis-qom/README
    trunk/Master/texmf-dist/doc/xelatex/thesis-qom/thesis-qom.pdf
    trunk/Master/texmf-dist/doc/xelatex/thesis-qom/thesis-qom.tex
    trunk/Master/texmf-dist/tex/xelatex/thesis-qom/thesis-qom.cls

Modified: trunk/Master/texmf-dist/doc/xelatex/thesis-qom/README
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/thesis-qom/README	2022-06-09 20:33:39 UTC (rev 63523)
+++ trunk/Master/texmf-dist/doc/xelatex/thesis-qom/README	2022-06-09 20:34:33 UTC (rev 63524)
@@ -1,22 +1,22 @@
-these-qom; Thesis style of the University of Qom, Iran. 
-ver 0.42
+these-qom; Thesis style of the University of Qom, Iran.
+ver 0.5
 _____________________
 
-The class has been written for the University of Qom students 
+The class has been written for the University of Qom students
 who want to write their projects, theses, and dissertations.
 For more information, please see the documentation.
 
-Current version release date: 2018/11/10
+Current version release date: 2022/06/09
 
 The style assumes that the user has the following fonts installed on its system:
-XB Niloofar, IranNastaliq, IRlotus, XB Zar, XB Titre, Yas. 
-The final file must be run with XeLaTeX. 
+XB Niloofar, IranNastaliq, IRlotus, XB Zar, XB Titre, Yas.
+The final file must be run with XeLaTeX.
 _____________________
 
 Seiied-Mohammad-Javad Razvian
 javadr at gmail.com
 
-Copyright © 2017-2018
+Copyright © 2017-2022
 It may be distributed and/or modified 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

Modified: trunk/Master/texmf-dist/doc/xelatex/thesis-qom/thesis-qom.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/xelatex/thesis-qom/thesis-qom.tex
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/thesis-qom/thesis-qom.tex	2022-06-09 20:33:39 UTC (rev 63523)
+++ trunk/Master/texmf-dist/doc/xelatex/thesis-qom/thesis-qom.tex	2022-06-09 20:34:33 UTC (rev 63524)
@@ -32,8 +32,8 @@
 \include{chapters/qomthesis-guide} % chapter 2
 \include{chapters/latexCommands} % chapter 3
 \include{chapters/bib-index} % chapter 4
-%\include{chapters/correctWriting}  % chapter 5
-%\include{chapters/realSample} % chapter 6
+\include{chapters/correctWriting}  % chapter 5
+\include{chapters/realSample} % chapter 6
 
 \appendix
 \include{chapters/installation} % appendix 1

Modified: trunk/Master/texmf-dist/tex/xelatex/thesis-qom/thesis-qom.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/thesis-qom/thesis-qom.cls	2022-06-09 20:33:39 UTC (rev 63523)
+++ trunk/Master/texmf-dist/tex/xelatex/thesis-qom/thesis-qom.cls	2022-06-09 20:34:33 UTC (rev 63524)
@@ -1,61 +1,20 @@
-%%%  Version 0.42
+%%%  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. 
+%%%  `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  
+%%%   Copyright © 2017-2022 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 at thesis@date{2018/11/10}
-\def\qom at thesis@version{0.42}
+\def\qom at thesis@date{2022/06/09}
+\def\qom at thesis@version{0.5}
 \ProvidesClass{thesis-qom}[%
     \qom at thesis@date\space version\qom at thesis@version\space
-  University of  Qom thesis class%
+    University of  Qom thesis class%
 ]
 \newif\if at qom@print
 \newif\if at qom@index
@@ -73,7 +32,7 @@
 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{xepersian}}
 \DeclareOption{final}{\@qom at draftfalse\@qom at printfalse}
 \DeclareOption{print}{\@qom at printtrue}
-\DeclareOption{phd}{\qom at thesistype=\z@\relax} %default option 
+\DeclareOption{phd}{\qom at thesistype=\z@\relax} %default option
 \DeclareOption{ms}{\qom at thesistype=\@ne\relax}
 \DeclareOption{bs}{\qom at thesistype=\tw@\relax}
 \DeclareOption{index}{\@qom at indextrue}%
@@ -213,11 +172,11 @@
 \def\@striprank#1({\def\@@striprank##1){##1}%
 \edef\@rank{\@@striprank#1}}%
 \def\@get at name@rank#1{%
-  \@get#1(\relax);%
-  \edef\@tmpa{\@rank}%
-  \edef\@relax{\relax}%
-  \ifx\@tmpa\@relax%
-  \else\expandafter\@striprank\@rank\fi%
+    \@get#1(\relax);%
+    \edef\@tmpa{\@rank}%
+    \edef\@relax{\relax}%
+    \ifx\@tmpa\@relax%
+    \else\expandafter\@striprank\@rank\fi%
 }%
 \def\cleardoublepage{\clearpage\if at twoside \ifodd\c at page\else
 \hbox{}
@@ -279,11 +238,11 @@
 %\WarningFilter{latex}{Underfull}
 %\WarningFilter{latex}{Overfull}
 %\WarningFilter{latex}{LaTeX}
-%\WarningsOff[Fancyhdr,fancyhdr, hyperref] 
+%\WarningsOff[Fancyhdr,fancyhdr, hyperref]
 %\ActivateWarningFilters
 %\SafeMode
 %-------------------------------------------------------------------------------------------------------------------
-% در ورژن جدید زی‌پرشین برای تایپ متن‌های ریاضی، این سه بسته، حتماً باید فراخوانی شود؛‌ این بسته‌ها در صورت نیاز کاربر به متن افزوده خواهد شد. 
+% در ورژن جدید زی‌پرشین برای تایپ متن‌های ریاضی، این سه بسته، حتماً باید فراخوانی شود؛‌ این بسته‌ها در صورت نیاز کاربر به متن افزوده خواهد شد.
 \RequirePackage{amsmath}
 \RequirePackage{amsthm}
 \RequirePackage{amssymb}
@@ -290,7 +249,7 @@
 \RequirePackage{biditools}
 \RequirePackage{multicol}
 % بسته‌ای برای تنطیم حاشیه‌های بالا، پایین، چپ و راست صفحه
-\RequirePackage[top=40mm, bottom=30mm, left=30mm, right=40mm, 
+\RequirePackage[top=40mm, bottom=30mm, left=30mm, right=40mm,
         bindingoffset=0mm, headsep=15mm]{geometry}
 %
 \RequirePackage{graphicx}
@@ -318,9 +277,9 @@
 \RequirePackage[titles, subfigure]{tocloft}
 \addtolength{\cftchapnumwidth}{10pt}
 \addtolength{\cftsecnumwidth}{12pt}
-\addtolength{\cftsubsecnumwidth}{14pt}      
+\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.
@@ -330,11 +289,11 @@
     \PassOptionsToPackage{quickindex-variant1}{xepersian}%
     \RequirePackage{makeidx}%
     \makeindex%
-\fi    
+\fi
 \RequirePackage{tikz}
 \global\let\tikz at ensure@dollar at catcode=\relax
 \RequirePackage{apptools}
-%%%%% The hyperref package should be the last package before xepersian package. 
+%%%%% The hyperref package should be the last package before xepersian package.
 \if at qom@print
     \PassOptionsToPackage{monocolor, hyperref}{xcolor}
     \RequirePackage[hidelinks=true]{hyperref}
@@ -343,14 +302,14 @@
     \RequirePackage[
     pagebackref,
     colorlinks=true, %% به جای استفاده از مربع قرمز دور موارد ارجاعی از لینک های رنگی استفاده کند.
-    linkcolor=red, anchorcolor=green, citecolor=magenta, urlcolor=cyan, filecolor=magenta, %% رنگ برخی از لینک ها . 
+    linkcolor=red, anchorcolor=green, citecolor=magenta, urlcolor=cyan, filecolor=magenta, %% رنگ برخی از لینک ها .
     ]{hyperref}
-\fi    
+\fi
 %% در این قسمت تنظیمات بسته hyperref را قرار می دهیم.
 %% این تنظیمات شامل موارد زیر است.
 \hypersetup{
 %% موقعی که فایل پی دی اف خروجی را باز می کنید صفحه به صورت عریض و بزرگ باز می شود.
-pdfmenubar=false, pdfstartview=FitH, 
+pdfmenubar=false, pdfstartview=FitH,
 %% در قسمت مراجع شماره صفحه ای که به آن مرجع ارجاع داده است را وارد می کند،
 %% مواردی که برای فعال سازی این که شماره اشکال را به صورت ارجاعی نشان دهد
 pagebackref =true,hyperfigures=true,
@@ -367,17 +326,17 @@
 %    \usepackage[para*]{manyfoot}
 %    \SetFootnoteHook{\setLTR}
 %    \DeclareNewFootnote[para]{A}
-    \RequirePackage[extrafootnotefeatures, computeautoilg]{xepersian}[2018/10/06] %ver 21.6 and upper 
+    \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 
+    \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. 
+    % in case of Kashida=off option, because nastaliq font has no support for kashida and the code needs to know about that.
     \if at bidi@csundef{if at Kashida@on}{\newif\if at Kashida@on}{}
     % See http://qa.parsilatex.com/7884 for details
     \if at bidi@csundef{@bidi at removefromreset}{}{%
@@ -384,12 +343,12 @@
         \@bidi at 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.  
+    \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{ 
+        \lstset{
             basicstyle=\setLTR\@nonlatinfalse\footnotesize\ttfamily, % from xepersian ver. 16.8
             captiondirection=RTL, captionscript=nonlatin,
         }
@@ -406,18 +365,24 @@
 %   \DefaultMathsDigits
     %
     %\DeclareMathSizes{textsize}{mathsize}{scriptsize}{scriptscriptsize}
-    % گزینه اول: این برای چه دسته فونتی است. پیش فرض استایل ما فونت 10pt است. 
+    % گزینه اول: این برای چه دسته فونتی است. پیش فرض استایل ما فونت 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 at thesis@proof at box
-    \sbox{\qom at thesis@proof at box}{\textcolor{gray}{\hboxR{\tiny آماده‌ شده توسط کلاس \texttt{thesis-qom}، نسخهٔ \lr{\qom at thesis@version}}}}
+    \def\@getcl at ss#1.cls#2\relax{\def\@currentclass{#1}}
+    \def\@getclass{\expandafter\@getcl at ss\@filelist\relax}
+    \@getclass
+    \sbox{\qom at thesis@proof at 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 at thesis@version}}}}
     \newdimen\qom at thesis@proof at box@dim at ht
     \newdimen\qom at thesis@proof at box@dim at wd
     \qom at thesis@proof at box@dim at wd=\wd\qom at thesis@proof at box
@@ -425,10 +390,10 @@
     \AtBeginDocument{\AtBeginShipoutInit}%
     \AtBeginShipout{\AtBeginShipoutLowerRight{%
     % \put doesn't work properly in index pages!
-    %\put(0,\LengthToUnit{\ht\qom at thesis@proof at box}){\rotatebox{90}{\usebox\qom at thesis@proof at box}}% 
+    %\put(0,\LengthToUnit{\ht\qom at thesis@proof at box}){\rotatebox{90}{\usebox\qom at thesis@proof at box}}%
     \begin{tikzpicture}[color=black,remember picture, overlay, every node/.style={inner sep=0pt},]
-        \node at (current page.south east) 
-        [anchor=north, xshift=-\qom at thesis@proof at box@dim at ht,yshift=\qom at thesis@proof at box@dim at wd+2] 
+        \node at (current page.south east)
+        [anchor=north, xshift=-\qom at thesis@proof at box@dim at ht,yshift=\qom at thesis@proof at box@dim at wd+2]
         {\rotatebox{90}{\usebox\qom at thesis@proof at box}};
     \end{tikzpicture}
     }}
@@ -445,7 +410,7 @@
     {\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. 
+%%% 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 at qom@debug
@@ -474,9 +439,9 @@
 \def\Thesis{\ifcase\qom at 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}
+    \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}{%
@@ -497,7 +462,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %\renewenvironment{abstract}{
 %\section*{چکیده}
-%\settextfont[Scale=1.2]{Adobe Arabic} 
+%\settextfont[Scale=1.2]{Adobe Arabic}
 %\setlatintextfont[Scale=1]{Times New Roman}
 %}{\\*[8pt]}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -515,57 +480,57 @@
     \rule{\textwidth}{1mm}\vspace{-\baselineskip}\\[2pt]
     \rule{\textwidth}{1pt}
 
-    
 
-    \noindent 
-    اینجانب آقای/خانم: 
+
+    \noindent
+    اینجانب آقای/خانم:
     {\ifx\@author at persian\undefined\qom at dotline{سیدمحمدجواد رضویان}\else\bfseries\@author at persian\fi{} }
-    دانشجوی مقطع 
+    دانشجوی مقطع
     {کارشناسی ارشد}\ifnum\qom at thesistype=1\rlap{\checkmark}\fi$\bigcirc$ %\hskip 10pt
-    {دکتری}\ifnum\qom at thesistype=0\rlap{\checkmark}\fi$\bigcirc$ %\hskip 10pt 
-    به شماره دانشجویی 
+    {دکتری}\ifnum\qom at thesistype=0\rlap{\checkmark}\fi$\bigcirc$ %\hskip 10pt
+    به شماره دانشجویی
     {\ifx\@student at id\undefined\qom at dotline{۹۶ ۱۲۱۴۱۰۱۸}\else\bfseries\@student at id\fi{} }
     رشته
     {\ifx\@major\undefined\qom at dotline{مهندسی کامپیوتر}\else\bfseries\@major\fi{} }
     {\ifx\@field\undefined\else گرایش \bfseries\@field\fi }
-    که در تاریخ 
+    که در تاریخ
     {\ifx\@defensedate\undefined\qom at dotline{۱۳۹۶/۰۷/۱۴}\else\bfseries\LR{\@defensedate}\fi{} }
     از \Thesis{}  خود تحت عنوان:\\
     \centerline{\ifx\@title at persian\undefined\qom at dotlined{7cm}\else\bfseries«\@title at persian»\fi}
-    با کسب نمره  با عدد: 
+    با کسب نمره  با عدد:
     {\ifx\@grade\undefined\qom at dotline{۱۹/۲۵}\else\bfseries\LR{$\mathbf{\@grade}$}\fi{} }
-    با حروف: 
+    با حروف:
     {\ifx\@grade at letters\undefined\qom at dotline{نوزده و بیست و پنج صدم تمام}\else\bfseries\@grade at letters\fi}
-     و با درجه 
+     و با درجه
      {\ifx\@degree\undefined\qom at dotline{عالی}\else\bfseries\@degree\fi{} }\linebreak
      دفاع نموده‌ام، بدین وسیله متعهد می‌شوم که:
-     \begin{enumerate}[label=\arabic*-]
-        \item 
-        این \Thesis{} حاصل تحقیق و پژوهش انجام شده توسط اینجانب بوده و در مواردی که از دستاوردهای 
-        علمی و پژوهشی دیگران اعم از پایان‌نامه، کتاب، مقاله، \ldots استفاده نموده‌ام،   مطابق ضوابط و رویه  موجود، نام منبع مورد استفاده و سایر مشخصات 
-        آن را در فهرست مربوطه ذکر و درج کرده‌ام. 
-        \item 
-        این \Thesis{} قبلاً برای هیچ مدرک تحصیلی هم سطح، پایین‌تر یا بالاتر در سایر \linebreak 
-        دانشگاه‌ها و مؤسسات آموزش عالی ارائه نشده است. 
-        \item 
-        چنانچه بعد از فراغت از تحصیل،‌ قصد استفاده و هرگونه بهره‌برداری اعم از چاپ کتاب، ثبت اختراع و \ldots 
-        از این \Thesis{} را داشته باشم، از حوزه معاونت پژوهشی واحد مجوزهای مربوطه را اخذ نمایم. 
-        \item 
-        چنانچه در هر مقطع زمانی خلاف موارد فوق ثابت شود، عواقب ناشی از آن را می‌پذیرم  و واحد دانشگاه قم مجاز است با اینجانب مطابق ضوابط و مقررات 
-        رفتار نموده و در صورت ابطال مدرک تحصیلی‌ام هیچگونه ادعایی نخواهم داشت. 
-     \end{enumerate}
+    \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}
-     صحت امضای دانشجو مورد تایید است. & نام و نام‌خانوادگی متعهد: \\ 
-     نماینده تحصیلات تکمیلی & {\scriptsize تاریخ و امضاء} \\
-     نام و نام‌خانوادگی: \ldots\ldots\ldots  & \\
-     {\scriptsize تاریخ و امضاء} & \\
-     \end{tabularx}
-     \end{footnotesize}
-     \vfill\null
+    \begin{tabularx}{\textwidth}{@{\hskip 1cm}c@{\hskip 2.5cm}c}
+        صحت امضای دانشجو مورد تایید است. & نام و نام‌خانوادگی متعهد: \\
+        نماینده تحصیلات تکمیلی & {\scriptsize تاریخ و امضاء} \\
+        نام و نام‌خانوادگی: \ldots\ldots\ldots  & \\
+        {\scriptsize تاریخ و امضاء} & \\
+    \end{tabularx}
+    \end{footnotesize}
+    \vfill\null
 \end{preamblepage}
 }
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -592,32 +557,32 @@
 %    \end{center}
 
     {\bfseries با تأييدات خداوند متعال و با استعانت از حضرت ولی عصر}
-     {\footnotesize (عجل الله تعالی فرجه الشريف)}
-     
-     
-     جلسه دفاعیه \ifcase\qom at thesistype{رساله دکتری}\or{پایان‌نامه کارشناسی ارشد}\fi{} خانم/آقای{}
-         {\ifx\@author at persian\undefined\qom at dotlined{4cm}\else\bfseries\@author at persian\fi} 
-     رشته 
+    {\footnotesize (عجل الله تعالی فرجه الشريف)}
+
+
+    جلسه دفاعیه \ifcase\qom at thesistype{رساله دکتری}\or{پایان‌نامه کارشناسی ارشد}\fi{} خانم/آقای{}
+        {\ifx\@author at persian\undefined\qom at dotlined{4cm}\else\bfseries\@author at persian\fi}
+    رشته
         {\ifx\@major\undefined\qom at dotline{مهندسی کامپیوتر}\else\bfseries\@major\fi}
-     تحت عنوان 
-     {\ifx\@title at persian\undefined\qom at dotlined{9cm}\else\bfseries\@title at persian\fi}
-     با حضور هیأت داوران در محل دانشگاه قم در تاریخ 
+    تحت عنوان
+    {\ifx\@title at persian\undefined\qom at dotlined{9cm}\else\bfseries\@title at persian\fi}
+    با حضور هیأت داوران در محل دانشگاه قم در تاریخ
     {\ifx\@defensedate\undefined\qom at dotline{۱۳۹۶/۰۷/۱۴}\else\bfseries\LR{\@defensedate}\fi{} }
-     تشکیل گردید. 
-     
-     در این جلسه، \Thesis{} با نمره (به عدد  
-     {\bfseries\ifx\@grade\undefined\ldots\ldots\ldots\else\LR{$\mathbf{\@grade}$}\fi}{،}
-      به حروف
-      {\bfseries\ifx\@grade at letters\undefined\ldots\ldots\ldots\ldots\ldots\ldots\ldots\ldots\else\@grade at letters\fi})    و \linebreak
+    تشکیل گردید.
+
+    در این جلسه، \Thesis{} با نمره (به عدد
+    {\bfseries\ifx\@grade\undefined\ldots\ldots\ldots\else\LR{$\mathbf{\@grade}$}\fi}{،}
+    به حروف
+    {\bfseries\ifx\@grade at letters\undefined\ldots\ldots\ldots\ldots\ldots\ldots\ldots\ldots\else\@grade at letters\fi})    و \linebreak
         با درجه عالی ~%
-        \ifx\@degree\@excellent\rlap{\checkmark}\fi$\bigcirc$ \hskip 10pt 
+        \ifx\@degree\@excellent\rlap{\checkmark}\fi$\bigcirc$ \hskip 10pt
         بسیار~خوب~%
-        \ifx\@degree\@verygood\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\@good\rlap{\checkmark}\fi$\bigcirc$\hskip 10pt
         قابل~قبول~%
-        \ifx\@degree\@acceptable\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@{}|}
@@ -626,73 +591,73 @@
     \multicolumn{1}{c|}{\titrfont\small سمت} &
     \multicolumn{1}{c|}{\titrfont\small مرتبه علمی}  &
     \multicolumn{1}{c|}{\titrfont\small امضاء}
-     \\[5pt]
+    \\[5pt]
     \toprule\toprule
 %    &&&\\
-    \ifnum\qom at thesis@supervisor>\z@ 
-    \@first at supervisor@name at persian & 
-    \ifcase\qom at thesis@supervisor\or استاد راهنما\or استاد راهنمای اوّل\fi  & 
-     \@first at supervisor@rank at persian & \@nextrow
-    \ifnum\qom at thesis@supervisor=\tw@ 
-    \@second at supervisor@name at persian & 
-    \@too{استاد} \@too{راهنمای}  
-     دوّم  & 
-     \@second at supervisor@rank at persian & \@nextrow\fi
+    \ifnum\qom at thesis@supervisor>\z@
+    \@first at supervisor@name at persian &
+    \ifcase\qom at thesis@supervisor\or استاد راهنما\or استاد راهنمای اوّل\fi  &
+    \@first at supervisor@rank at persian & \@nextrow
+    \ifnum\qom at thesis@supervisor=\tw@
+    \@second at supervisor@name at persian &
+    \@too{استاد} \@too{راهنمای}
+    دوّم  &
+    \@second at supervisor@rank at persian & \@nextrow\fi
     \fi
 
     \ifnum\qom at thesis@advisor>\z@
-    \@first at advisor@name at persian & 
-    \ifcase\qom at thesis@advisor\or{ استاد مشاور}\or{استاد مشاور اوّل}\fi  & 
+    \@first at advisor@name at persian &
+    \ifcase\qom at thesis@advisor\or{ استاد مشاور}\or{استاد مشاور اوّل}\fi  &
     \@first at advisor@rank at persian & \@nextrow
-    \ifnum\qom at thesis@advisor=\tw@ 
+    \ifnum\qom at thesis@advisor=\tw@
     \@second at advisor@name at persian &
-    \@too{استاد} \@too{مشاور}  
-    دوّم &  
+    \@too{استاد} \@too{مشاور}
+    دوّم &
     \@second at advisor@rank at persian &\@nextrow\fi\fi
 
     \ifnum\qom at thesis@referee at enternal>\z@
-    \@first at referee@name  & 
-    \ifcase\qom at thesis@referee at enternal\or{داور داخلی}\or{داور داخلی اوّل}\fi & 
+    \@first at referee@name  &
+    \ifcase\qom at thesis@referee at enternal\or{داور داخلی}\or{داور داخلی اوّل}\fi &
     \@first at referee@rank  &  \@nextrow
-    \ifnum\qom at thesis@referee at enternal=\tw@ 
-    \@second at referee@name & \@too{داور} \@too{داخلی}  
+    \ifnum\qom at thesis@referee at enternal=\tw@
+    \@second at referee@name & \@too{داور} \@too{داخلی}
     دوّم
     &  \@second at referee@rank  & \@nextrow\fi\fi
 
     \ifnum\qom at thesis@referee at external>\z@
     \@first at referee@external at name &
-    \ifcase\qom at thesis@referee at external\or{داور خارجی}\or{داور خارجی اوّل}\fi & 
-     \@first at referee@external at rank &\@nextrow
+    \ifcase\qom at thesis@referee at external\or{داور خارجی}\or{داور خارجی اوّل}\fi &
+    \@first at referee@external at rank &\@nextrow
     \ifnum\qom at thesis@referee at external=\tw@
-     \@second at referee@external at name & \@too{داور} \@too{خارجی}  
-     دوّم 
-     &  \@second at referee@external at rank & \@nextrow\fi\fi
+    \@second at referee@external at name & \@too{داور} \@too{خارجی}
+    دوّم
+    &  \@second at referee@external at rank & \@nextrow\fi\fi
 
-    \ifx\qom at graduate@repsentative at name\undefined\else\qom at graduate@repsentative at name\fi &  
-     \parbox[t]{4.1cm}{\centering استاد ناظر و \par نماینده تحصیلات تکمیلی}
-     & \ifx\qom at graduate@repsentative at rank\undefined\else\qom at graduate@repsentative at rank\fi &
+    \ifx\qom at graduate@repsentative at name\undefined\else\qom at graduate@repsentative at name\fi &
+    \parbox[t]{4.1cm}{\centering استاد ناظر و \par نماینده تحصیلات تکمیلی}
+    & \ifx\qom at graduate@repsentative at rank\undefined\else\qom at graduate@repsentative at rank\fi &
     \\
 %    & نماینده تحصیلات تکمیلی & & \\[5pt]
     \bottomrule
     \end{tabularx}
 
-    \bigskip       
+    \bigskip
 %        \vfill
         \begin{tabularx}{\textwidth}{XX}
             \begin{minipage}{.4\textwidth}
                 \centering
                 معاون آموزشی و پژوهشی دانشکده\\[5pt]
-                نام و امضاء 
+                نام و امضاء
             \end{minipage} &
             \begin{minipage}{.4\textwidth}
                 \centering
                 مدیر آموزش و  تحصیلات تکمیلی \\[5pt]
-                نام و امضاء 
+                نام و امضاء
             \end{minipage}\\
         \end{tabularx}
-        \vfill    
- \thispagestyle{empty}
- }
+        \vfill
+\thispagestyle{empty}
+}
 \end{preamblepage}}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \newcommand{\qomtitle}{%
@@ -700,7 +665,7 @@
 \if at qom@draft\else
 \begin{preamblepage}
     \vspace*{\fill}
-    \textcolor{gray}{\hfill\tiny آماده‌ شده توسط کلاس \texttt{thesis-qom}، نسخهٔ \lr{\qom at thesis@version}}
+    \hfill\usebox\qom at thesis@proof at box
 \end{preamblepage}
 \fi
 
@@ -724,12 +689,12 @@
     \begin{titlepage}
     {\zarfont\fontsize{12}{14}\selectfont\includegraphics[width=2cm, height=2cm]{logo.jpg}\\[-7pt] \bfseries دانشگاه قم}
     \\[-5pt]
-    {\zarfont\fontsize{12}{14}\selectfont\bfseries دانشکده 
+    {\zarfont\fontsize{12}{14}\selectfont\bfseries دانشکده
     \ifx\@faculty\undefined\qom at dotline{علوم ریاضی}\else\@faculty\fi
-    \\[-7pt] 
-    گروه 
+    \\[-7pt]
+    گروه
     \ifx\@department\undefined\qom at dotline{علوم کامپیوتر}\else\@department\fi}
-    \\%[5pt] 
+    \\%[5pt]
     %\par
     %\vspace{.3\baselineskip}
     {\vskip 2ex
@@ -738,7 +703,7 @@
     }
     %\vskip 2ex
 %    \vskip 5pt
-    \centerline{\zarfont\fontsize{12}{14}\selectfont\bfseries  رشته 
+    \centerline{\zarfont\fontsize{12}{14}\selectfont\bfseries  رشته
     {\ifx\@major\undefined\qom at dotline{مهندسی کامپیوتر}\else\bfseries\@major\fi}{}
     \ifx\@field\undefined\else گرایش \@field\fi}
     \vskip 4ex
@@ -746,7 +711,7 @@
     \ifx\@title at persian\undefined\qom at dotlined{9cm}\else\bfseries {\fontsize{22}{24}\selectfont\@title at persian }\fi}
     \baselineskip=1.5cm\par
     \vskip 4ex
-     \baselineskip=1cm
+    \baselineskip=1cm
 
 %    \large
     {\bfseries\ifcase\qom at thesis@supervisor%0
@@ -760,7 +725,7 @@
     \fontsize{12}{14}\selectfont\@first at supervisor@name at persian{} و \@second at supervisor@name at persian
     \fi
     }
-    \par 
+    \par
     {\bfseries\ifcase\qom at thesis@advisor\relax%0
     \ifnum\qom at thesistype=0\titrfont استاد مشاور: \\ \qom at dotlined{5cm} \fi
     \or%1
@@ -779,12 +744,12 @@
     \ifx\@author at persian\undefined\qom at dotlined{4cm}
     \else\fontsize{12}{14}\selectfont\bfseries\@author at persian\fi}
     \par
-    {\bfseries\fontsize{12}{14}\selectfont\zarfont 
+    {\bfseries\fontsize{12}{14}\selectfont\zarfont
     \ifx\@submissiondate\undefined ماه سال\else\@submissiondate\fi}
     \end{titlepage}
-\end{preamblepage}    
+\end{preamblepage}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% برای پروژه کارشناسی نیازی به صفحات زیر نیست. 
+% برای پروژه کارشناسی نیازی به صفحات زیر نیست.
 \if at qom@draft\else
 \ifnum\qom at thesistype<\tw@
 %%%%%%%%%%%%%%% صفحه تأییده داوران
@@ -792,28 +757,28 @@
 %%%%%%%%%%%%%%% صفحه تعهدنامه اصالت پایان‌نامه/رساله
 \oathpage%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%
-\fi    
 \fi
+\fi
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%%%%%%%%%%%%%% صفحه تقدیم 
+%%%%%%%%%%%%%%% صفحه تقدیم
 \if at qom@draft\else
 \begin{preamblepage}
     \ifx\@dedicatedto\undefined%
     \else
-        \pagetitle{تقدیم}    
+        \pagetitle{تقدیم}
         {\@dedicatedto}
     \fi
-\end{preamblepage}    
+\end{preamblepage}
 \fi
-%%%%%%%%%%%%%%% صفحه نیایش 
+%%%%%%%%%%%%%%% صفحه نیایش
 \if at qom@draft\else
 \begin{preamblepage}
     \ifx\@praise\undefined%
     \else
-    \pagetitle{نیایش}    
+    \pagetitle{نیایش}
     {\@praise}
     \fi
-\end{preamblepage}    
+\end{preamblepage}
 \fi
 %%%%%%%%%%%%%%% صفحه سپاسگزاری
 \if at qom@draft\else
@@ -843,14 +808,14 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % دستورهایی برای سفارشی کردن صفحات اول فصل‌ها
 \newcommand\mycustomraggedright{%
- \if at RTL\raggedleft%
- \else\raggedright%
- \fi}
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\if at RTL\raggedleft%
+\else\raggedright%
+\fi}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \bidi at AfterPackage{xepersian}{%
 \SepMark{-}
 % دستوری برای حذف کلمه «چکیده»
-\renewcommand{\abstractname}{}
+\def\abstractname{}
 % دستوری برای حذف کلمه «abstract»
 %\renewcommand{\latinabstract}{}
 % دستوری برای تغییر نام کلمه «اثبات» به «برهان»
@@ -859,7 +824,7 @@
 \renewcommand{\bibname}{منابع و مآخذ}
 % دستوری برای تعریف واژه‌نامه انگلیسی به فارسی
 \newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\}
-% دستوری برای تعریف واژه‌نامه فارسی به انگلیسی 
+% دستوری برای تعریف واژه‌نامه فارسی به انگلیسی
 \newcommand\englishgloss[2]{#2\dotfill\lr{#1}\\}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% با دستور newtheoremstyle شما می توانید یک استایل جدید برای محیط هایی چون plain، definition‌ و ... تعریف کنید. شکل کلی این دستور به صورت زیر است.
@@ -873,9 +838,9 @@
 %%  {headpunctuation}% punctuation between head and body
 %%  {headspace}% space after theorem head; " " = normal interword space
 %%  {headspec}% Manually specify head
-% % تعریف محیط‌های گوناگون مانند محیط برای قضیه و ... 
-%% theoremstyle = > plain, definition, remark 
-%% با دستور newtheorem یک نوع از استایلی که در بالای آن تعریف شده است ایجاد می کنیم. 
+% % تعریف محیط‌های گوناگون مانند محیط برای قضیه و ...
+%% theoremstyle = > plain, definition, remark
+%% با دستور newtheorem یک نوع از استایلی که در بالای آن تعریف شده است ایجاد می کنیم.
 % تعریف و نحوه ظاهر شدن عنوان قضیه‌ها، تعریف‌ها، مثال‌ها و ...
 \theoremstyle{definition}
 \newtheorem{definition}{تعریف}[chapter]
@@ -903,15 +868,15 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \AtBeginDocument{%
     \def\@makechapterhead#1{%
-      \vspace*{50\p@}%
-      {\parindent \z@ \if at RTL\raggedleft\else\raggedright\fi \normalfont
+        \vspace*{50\p@}%
+        {\parindent \z@ \if at RTL\raggedleft\else\raggedright\fi \normalfont
         \ifnum \c at secnumdepth >\m at ne
-          \if at mainmatter
-            \huge\bfseries \@chapapp\space 
+            \if at mainmatter
+            \huge\bfseries \@chapapp\space
             \ifappendix \harfi{chapter}\else \expandafter\tartibinumeral\c at chapter\fi
             \par\nobreak
             \vskip 20\p@
-          \fi
+            \fi
         \fi
         \interlinepenalty\@M
         \Huge \bfseries #1\par\nobreak
@@ -918,31 +883,31 @@
         \vskip 40\p@
         \nobreak
         \thispagestyle{empty}
-      }}
+        }}
     \def\@makeschapterhead#1{%
-      \vspace*{50\p@}%
-      {\parindent \z@ \if at RTL\raggedleft\else\raggedright\fi
+        \vspace*{50\p@}%
+        {\parindent \z@ \if at RTL\raggedleft\else\raggedright\fi
         \normalfont
         \interlinepenalty\@M
         \Huge \bfseries  #1\par\nobreak
         \vskip 40\p@
         \thispagestyle{empty}
-      }}  
-     \bidi at appto{\appendix}{%\addcontentsline{toc}{chapter}{پیوست‌ها}%\appendices
-     \appendixtrue}
-     %% The followings are hacks for not using \mainmatter macro by users. 
-     %% Sophisticated front matter page-numbering
+    }}
+    \bidi at appto{\appendix}{%\addcontentsline{toc}{chapter}{پیوست‌ها}%\appendices
+    \appendixtrue}
+    %% The followings are hacks for not using \mainmatter macro by users.
+    %% Sophisticated front matter page-numbering
 %      \bidi at preto{\chapter}{\if at qom@preamble\else\ifappendix\else\ifnum\c at chapter=0\mainmatter\fi\fi\fi}
 %      \bidi at patchcmd{\@chapter}{\if at mainmatter}{\if at qom@preamble\else\ifappendix\else\ifnum\c at chapter=0\global\mainmatter\fi\fi\fi\if at mainmatter}{}{}
-      \bidi at patchcmd{\secdef}{\@dblarg}{\if at qom@preamble\else\ifappendix\else\ifnum\c at chapter=0\mainmatter\fi\fi\fi\@dblarg}{}{}
-      \bidi at appto{\tableofcontents}{\@qom at preamblefalse}
-      \bidi at appto{\listoffigures}{\@qom at preamblefalse}
-      \bidi at appto{\listoftables}{\@qom at preamblefalse}
-      \bidi at appto{\lstlistoflistings}{\@qom at preamblefalse}
-      \bidi at appto{\listofsymbols}{\@qom at preamblefalse}
-      \bidi at appto{\endacronym}{\@qom at preamblefalse}
-        \setlength{\parindent}{1cm}
-        \setlength{\parskip}{0pt}
+    \bidi at patchcmd{\secdef}{\@dblarg}{\if at qom@preamble\else\ifappendix\else\ifnum\c at chapter=0\mainmatter\fi\fi\fi\@dblarg}{}{}
+    \bidi at appto{\tableofcontents}{\@qom at preamblefalse}
+    \bidi at appto{\listoffigures}{\@qom at preamblefalse}
+    \bidi at appto{\listoftables}{\@qom at preamblefalse}
+    \bidi at appto{\lstlistoflistings}{\@qom at preamblefalse}
+    \bidi at appto{\listofsymbols}{\@qom at preamblefalse}
+    \bidi at appto{\endacronym}{\@qom at preamblefalse}
+    \setlength{\parindent}{1cm}
+    \setlength{\parskip}{0pt}
     %
     %\setlength{\footskip}{
     %\paperheight   -(1in+\voffset+\topmargin+\headheight+\headsep+\textheight)  -1cm
@@ -950,7 +915,7 @@
     \pagenumbering{roman}
     \qomtitle
     \frontmatter
-}
+}%End of AtBeginDocument
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \def\@part[#1]#2{%
 \ifnum\c at secnumdepth >-2\relax
@@ -962,10 +927,9 @@
 \markboth{}{}%
 {\centering
 \interlinepenalty \@M
-\ifnum \c at secnumdepth >-2\relax
- \huge\bfseries \partname\nobreakspace\thepart
-\par
-\vskip 20\p@
+\ifnum \c at secnumdepth >-2\relax%
+    \huge\bfseries \partname\nobreakspace\thepart
+    \par\vskip 20\p@
 \fi
 \Huge\bfseries #2\par}%
 \@endpart}
@@ -979,7 +943,7 @@
 %\vskip 20\p@
 %\fi
 %\fi
-%\interlinepenalty\@M 
+%\interlinepenalty\@M
 %\Huge \bfseries #1\par\nobreak
 %\vskip 120\p@
 %}}
@@ -1052,13 +1016,13 @@
         \parskip\z@ \@plus .3\p@\relax
         \if at qom@dicentofa%
             \def\qom at dicrow##1##2{\bigskip##1\dotfill\rl{##2}\par}%% en2fa
-        \fi%    
+        \fi%
         \if at qom@dicfatoen%
             \def\qom at dicrow##1##2{\medskip##1\dotfill\dotfill\hbox{\lr{##2}}\par}%% fa2en
         \fi%
         \def\qom at dic@letter at space{\def\qom at dic@letter at space{\bigskip}}%
         \def\qom at dic@letter at title##1{%
-        \qom at dic@letter at space\centerline{\normalfont\textbf{##1}}\nobreak}%   
+        \qom at dic@letter at space\centerline{\normalfont\textbf{##1}}\nobreak}%
         \expandafter\gdef\expandafter\qom at trimtok##1=##2;\relax{\qom at dicrow{##1}{##2}}%
         \gdef\qom at trimmer##1{\expandafter\qom at trimtok ##1;\relax}%
         \catcode\endlinechar=9 %
@@ -1110,23 +1074,23 @@
     \fi
     %%%%%%%%%%%%%%%%%%%%%% Index %%%%%%%%%%%%%%%%%%%%%%%%%
     \if at qom@index
-      \providecommand*\lettergroup[1]{%
-          \par%
+        \providecommand*\lettergroup[1]{%
+            \par%
             \def\qom at lettergroup{#1}%
-             \ifx\qom at lettergroup\qom at Aa%
+            \ifx\qom at lettergroup\qom at Aa%
                 \textbf{آ}%
-             \else%
+            \else%
                 \ifx\qom at lettergroup\qom at He%
                     \textbf{ه‍}%
-                 \else%
+                \else%
                     \textbf{#1}%
                 \fi%
             \fi%
-          \par%
-          \nopagebreak%
-      }%
+            \par%
+            \nopagebreak%
+        }%
         \printindex%
-    \fi    
+    \fi
     %%%%%%%%%%%%%%%%%%%%%% English Abstract %%%%%%%%%%%%%%%%%%%%%%%%%
     \begin{preamblepage}
     \begin{latin}
@@ -1138,9 +1102,9 @@
             \end{abstractcount}
             \vspace*{1cm}\par
             {\noindent {\bfseries Keywords:}
-             \ifx\@keywords at english\undefined\else\@keywords at english{}\fi}
+            \ifx\@keywords at english\undefined\else\@keywords at english{}\fi}
         \fi
-    \end{latin}    
+    \end{latin}
     \end{preamblepage}
     %%%%%%%%%%%%%%%%%%%%%% English Title %%%%%%%%%%%%%%%%%%%%%%%%%
     \begin{preamblepage}
@@ -1148,12 +1112,12 @@
     \begin{latin}
         {\fontsize{12}{14}\selectfont\includegraphics[width=2cm, height=2cm]{logo.jpg}\\ The University of Qom}
         \\[5pt]
-        {\fontsize{12}{14}\selectfont Faculty of 
+        {\fontsize{12}{14}\selectfont Faculty of
         \ifx\@faculty at english\undefined\qom at dotline{Mathematics}\else\@faculty at english\fi
-        \\[5pt] 
-        Department of  
+        \\[5pt]
+        Department of
         \ifx\@department at english\undefined\qom at dotline{Computer Science}\else\@department at english\fi}
-        \\[10pt] 
+        \\[10pt]
         %\par
         %\vspace{.3\baselineskip}
     %    {\vskip 4ex
@@ -1163,8 +1127,8 @@
         %\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 
+        {\fontsize{12}{14}\selectfont\bfseries
+        A Thesis Submitted in Partial Fulfillment of the Requirements for\linebreak the Degree of
         \ifcase\qom at thesistype{Doctor of Philosophy}\or{Master of Science}\or{Bachelor of Science}\fi{} in
         {\ifx\@major at english\undefined\qom at dotline{Computer Science}\else\bfseries\@major at english\fi}{}
         }
@@ -1174,30 +1138,30 @@
         \ifx\@title at english\undefined\qom at dotlined{9cm}\else\bfseries {\fontsize{22}{24}\selectfont\@title at english }\fi}
         \baselineskip=1.5cm\par
         \vskip 4ex
-         \baselineskip=.5cm
+        \baselineskip=.5cm
         \large
         {\large\ifcase\qom at thesis@supervisor at english%0
-         \textsf{Supervisor:} \\
-        \qom at dotlined{5cm}
+            \textsf{Supervisor:} \\
+            \qom at dotlined{5cm}
         \or%1
-         \textsf{Supervisor:} \\
-        \bfseries\fontsize{12}{14}\selectfont\@first at supervisor@name at english
+            \textsf{Supervisor:} \\
+            \bfseries\fontsize{12}{14}\selectfont\@first at supervisor@name at english
         \or%2
-         \textsf{Supervisors:} \\
-        \bfseries\fontsize{12}{14}\selectfont\@first at supervisor@name at english{} and \@second at supervisor@name at english
+            \textsf{Supervisors:} \\
+            \bfseries\fontsize{12}{14}\selectfont\@first at supervisor@name at english{} and \@second at supervisor@name at english
         \fi
         }
-        \par 
+        \par
         {\large\ifcase\qom at thesis@advisor at english\relax%0
         \ifnum\qom at thesistype=0 Advisor: \\ \qom at dotlined{5cm} \fi
         \or%1
-        \textsf{Advisor:} \\
-        \bfseries\fontsize{12}{14}\selectfont%
-        \@first at advisor@name at english
+            \textsf{Advisor:} \\
+            \bfseries\fontsize{12}{14}\selectfont%
+            \@first at advisor@name at english
         \or%2
-         \textsf{Advisors:} \\
-        \bfseries\fontsize{12}{14}\selectfont%
-        \@first at advisor@name at english{} and \@second at advisor@name at english
+            \textsf{Advisors:} \\
+            \bfseries\fontsize{12}{14}\selectfont%
+            \@first at advisor@name at english{} and \@second at advisor@name at english
         \fi
         }
         \par
@@ -1206,33 +1170,29 @@
         \ifx\@author at english\undefined\qom at dotlined{4cm}
         \else\fontsize{12}{14}\selectfont\bfseries\@author at english\fi}
         \par
-        {\fontsize{12}{14}\selectfont 
+        {\fontsize{12}{14}\selectfont
         \ifx\@submissiondate at english\undefined Season Year\else\@submissiondate at english\fi}
-    \end{latin}    
+    \end{latin}
         \end{titlepage}
-    \end{preamblepage}    
+    \end{preamblepage}
     %%%%%%%%%%%%%%%%%%% Blank Page %%%%%%%%%%%%%%%%%%%%%%%%%
     \cleardoublepage
     \newpage\null
     \thispagestyle{empty}
-}
-
-\endinput
-
-
-%% 
-%% Copyright © 2017-2018      by Seiied-Mohammad-Javad Razavian
-%% 
+}%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'.	
+%% End of file `thesis-qom.cls'.
\ No newline at end of file



More information about the tex-live-commits mailing list.