<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   https://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%% The Current Maintainer of this work is Amanullah Nabavi.
%%
%% Copyright (C) 2025 by Amanullah Nabavi nabave786@gmail.com
%%


\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{mohe-book}[2025/01/01 v1.0.0 Custom Latex Class]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax
\LoadClass[twoside,letterpaper,openright]{book}

\renewcommand{\normalsize}{\fontsize{12}{14.4}\selectfont}
\setlength{\textwidth}{13cm}
\setlength{\textheight}{20cm}
\setlength{\columnsep}{0.8cm}
\pagenumbering{arabic}

\RequirePackage{longfigure}
\RequirePackage{longtable}
\RequirePackage{float}
\RequirePackage{totcount}
\RequirePackage{etoolbox}
\RequirePackage{caption}
\captionsetup{width=0.8\linewidth,labelfont=bf,font=small}
\RequirePackage{enumitem}
\setlist[enumerate, 1]{itemsep=0pt,format=\bfseries,topsep=2pt,label=\arabic*.,ref={\arabic*},left=1pt}
\setlist[enumerate, 2]{itemsep=0pt,format=\bfseries,topsep=2pt,label=(\alph*)}
\RequirePackage{tasks}
\settasks{label=\arabic*.,label-format=\bfseries,style=enumerate,ref={\arabic*},item-indent=1.6em,label-width=1.1em,label-offset=0.5em}
%\RequirePackage{chapterbib}
\RequirePackage{tocloft}
\RequirePackage{lastpage}
\RequirePackage{emptypage}
\RequirePackage{amsmath}
\RequirePackage{amstext}
\RequirePackage{amsthm}
\RequirePackage{amssymb}
\RequirePackage{thmtools}
\RequirePackage{mathtools}
\RequirePackage[inner=4cm,outer=4cm,top=4.5cm,bottom=4.5cm]{geometry}
\RequirePackage{graphics}
\RequirePackage{graphicx}
\RequirePackage{makeidx}
\makeindex
\RequirePackage{fancyhdr}
\RequirePackage{fourier-orns}
\RequirePackage{multicol}
\RequirePackage{xcolor}
\RequirePackage{titlesec}
\RequirePackage{ptext}
\usepackage[xindy,acronym,symbols,esclocations=true,toc,nonumberlist,stylemods=mcols,entrycounter]{glossaries-extra}
\makeglossaries
\RequirePackage{varioref}
\RequirePackage{hyperref}
\RequirePackage{cleveref}
\hypersetup{colorlinks=true,linkcolor=black,urlcolor=cyan,citecolor=yellow,bookmarksopen=true,hypertexnames=true}
\RequirePackage{xpatch}
\newcounter{acronymcount}
\xpretocmd{\newacronym}{\stepcounter{acronymcount}}{}{}
\xpretocmd{\printindex}{\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{Ù†Ù…Ø§ÛŒÙ‡}}{}{}
\newcommand{\printmyglossary}{\cleardoublepage
\printglossary[style={myFaToEn},title={ÙˆØ§Ú˜Ù‡â€ŒÙ†Ø§Ù…Ù‡}]}
\newcommand{\printmyacronyms}{\cleardoublepage\printacronyms[style={myAbbr},title={ÙÙ‡Ø±Ø³Øª Ø§Ø®ØªØµØ§Ø±Ø§Øª}]}
\newcommand{\printmysymbols}{\cleardoublepage\printsymbols[style={mySymbols},title={ÙÙ‡Ø±Ø³Øª Ù†Ù…Ø§Ø¯Ù‡Ø§}]}



\AtEndPreamble{
\newtheoremstyle{mohestyle}{2pt plus 1pt minus 1pt}{3pt plus 1pt minus 1pt}{}{}{\bfseries}{:}{3pt}{}
	%%%% ØªÙ†Ø¸ÛŒÙ…Ø§Øª Ù…Ø±Ø¨ÙˆØ· Ø¨Ù‡ ÙˆØ§Ú˜Ù‡â€ŒÙ†Ø§Ù…Ù‡
\newglossarystyle{myFaToEn}{%
	\renewenvironment{theglossary}{}{}
		\renewcommand*{\glsgroupskip}{\vskip 10pt}	
		\renewcommand*{\glossentry}[2]{\vskip 5pt\noindent\textbf{\glsentryname{##1}}\hfill\space \lr{\glsentrydesc{##1}}}
		\twocolumn{}}
	%%%%%% ØªÙ†Ø¸ÛŒÙ…Ø§Øª ÙÙ‡Ø±Ø³Øª Ù†Ù…Ø§Ø¯Ù‡Ø§
	\newglossarystyle{mySymbols}{%
		\renewenvironment{theglossary}{}{}
		\renewcommand*{\glsgroupskip}{\vskip 10pt}	
		\renewcommand*{\glossentry}[2]{\vskip 5pt\noindent
			\begin{tabular}{p{2cm}p{10cm}}
				\textbf{\glsentryname{##1}}&amp;\glsentrydesc{##1}
		\end{tabular}}
		\onecolumn{}
	}
	%%%%%%%  ØªÙ†Ø¸ÛŒÙ…Ø§Øª ÙÙ‡Ø±Ø³Øª Ø§Ø®ØªØµØ§Ø±Ø§Øª
	\newglossarystyle{myAbbr}{%
		\renewenvironment{theglossary}{}{}
		\renewcommand*{\glsgroupskip}{\vskip 0pt}	
		\renewcommand*{\glossentry}[2]{\vskip 10pt\noindent	
			\begin{tabular}{p{2cm}p{10cm}}
				\textbf{\glsentryname{##1}}&amp;\glsentrydesc{##1}
		\end{tabular}}
		\onecolumn{}
	}

%%%%%%% Ø¨Ø±Ø§ÛŒ Ø´Ú©Ø³ØªÙ† Ù…Ø¹Ø§Ø¯Ù„Ø§Øª Ø¯Ø± Ø­Ø§Ù„Øª Ù†Ù…Ø§ÛŒØ´
\allowdisplaybreaks
%%%%%% section and subsection vertical spacing
\titlespacing{\section}{0pt}{15pt \@plus 5pt \@minus 5pt}{10pt \@plus 2pt \@minus 2pt}
\titlespacing*{\section}{0pt}{15pt plus 5pt minus 5pt}{10pt plus 2pt minus 2pt}
\titlespacing{\subsection}{0pt}{10pt plus 2pt minus 2pt}{5pt plus 2pt minus 2pt}
\titlespacing*{\subsection}{0pt}{10pt plus 2pt minus 2pt}{5pt plus 2pt minus 2pt}
%%%%%%% ØªÙ†Ø¸ÛŒÙ…Ø§Øª Ù…Ø±Ø¨ÙˆØ· Ø¨Ù‡ Ù…Ø±Ø§Ø¬Ø¹ Ù‡ÙˆØ´Ù…Ù†Ø¯
\crefname{equation}{Ù…Ø¹Ø§Ø¯Ù„Ù‡}{Ù…Ø¹Ø§Ø¯Ù„Ø§Øª}
\crefname{chapter}{ÙØµÙ„}{ÙØµÙ„â€ŒÙ‡Ø§ÛŒ}
\crefname{section}{Ø¨Ø®Ø´}{Ø¨Ø®Ø´â€ŒÙ‡Ø§ÛŒ}
\crefname{page}{ØµÙØ­Ù‡}{ØµÙØ­Ø§Øª}
\crefname{table}{Ø¬Ø¯ÙˆÙ„}{Ø¬Ø¯ÙˆØ§Ù„}
\crefname{figure}{Ø´Ú©Ù„}{Ø´Ú©Ù„â€ŒÙ‡Ø§ÛŒ}
\crefname{mesal}{Ù…Ø«Ø§Ù„}{Ù…Ø«Ø§Ù„â€ŒÙ‡Ø§ÛŒ}
\crefname{thm}{Ù‚Ø¶ÛŒÙ‡}{Ù‚Ø¶Ø§ÛŒØ§ÛŒ}
\crefname{lemm}{Ù„Ù…}{Ù„Ù…â€ŒÙ‡Ø§ÛŒ}
\crefname{natija}{Ù†ØªÛŒØ¬Ù‡}{Ù†ØªØ§ÛŒØ¬}
\newcommand{\crefpairconjunction}{ Ùˆ }
\newcommand{\crefrangeconjunction}{ Ø§Ù„ÛŒ }
}
%%%%% Ø¯Ø³ØªÙˆØ±Ø§Øª Ø³Ø§Ø®ØªÙ‡ Ø´Ø¯Ù‡ Ø¨Ø±Ø§ÛŒ Ø§ÛŒÙ† Ù‚Ø§Ù„Ø¨
\newcommand{\booktitle}[1]{\gdef\@booktitle{#1}}
\newcommand{\tauthors}[1]{\gdef\@tauthors{#1}}
\newcommand{\university}[1]{\gdef\@university{#1}}
\newcommand{\faculty}[1]{\gdef\@faculty{#1}}
\newcommand{\department}[1]{\gdef\@department{#1}}
\newcommand{\wyear}[1]{\gdef\@wyear{#1}}
\newcommand{\publisher}[1]{\gdef\@publisher{#1}}
\newcommand{\tfirstname}[1]{\gdef\@tfirstname{#1}}
\newcommand{\tlastname}[1]{\gdef\@tlastname{#1}}
\newcommand{\paddress}[1]{\gdef\@paddress{#1}}
\newcommand{\volumes}[1]{\gdef\@volumes{#1}}
\newcommand{\npages}[1]{\gdef\@npages{#1}}
\newcommand{\isbn}[1]{\gdef\@isbn{\ensuremath{#1}}}
\newcommand{\torank}[1]{\gdef\@torank{#1}}
\newcommand{\editor}[1]{\gdef\@editor{#1}}
\newcommand{\printnum}[1]{\gdef\@printnum{#1}}
\newcommand{\teraaz}[1]{\gdef\@teraaz{#1}}
\newcommand{\cutt}[1]{\gdef\@cutt{#1}}
\newcommand{\price}[1]{\gdef\@price{#1}}
\newcommand{\booktype}[1]{\gdef\@booktype{#1}}
\newcommand{\tbirthy}[1]{\gdef\@tbirthy{#1}}
\newcommand{\rank}[1]{\gdef\@rank{#1}}
\newcommand{\authorfname}[1]{\gdef\@authorfname{#1}}
\newcommand{\authorlname}[1]{\gdef\@authorlname{#1}}
\newcommand{\authorby}[1]{\gdef\@authorby{#1}}
\newcommand{\taqdimba}[1]{\gdef\@taqdimba{#1}}
\newcommand{\pishgoftartitle}[1]{\gdef\@pishgoftartitle{#1}}
\newcommand{\pishgoftarmatn}[1]{\gdef\@pishgoftarmatn{#1}}
\newcommand{\taqrizonetitle}[1]{\gdef\@taqrizonetitle{#1}}
\newcommand{\taqrizonematn}[1]{\gdef\@taqrizonematn{#1}}
\newcommand{\taqriztwotitle}[1]{\gdef\@taqriztwotitle{#1}}
\newcommand{\taqriztwomatn}[1]{\gdef\@taqriztwomatn{#1}}
\newcommand{\taqrizthreetitle}[1]{\gdef\@taqrizthreetitle{#1}}
\newcommand{\taqrizthreematn}[1]{\gdef\@taqrizthreematn{#1}}
\newcommand{\taqrizfourtitle}[1]{\gdef\@taqrizfourtitle{#1}}
\newcommand{\taqrizfourmatn}[1]{\gdef\@taqrizfourmatn{#1}}

%%%%%% begin Options
\newif\if@taalif
\newif\if@tarjoma
\newif\if@tahqiq
\newif\if@ihdaa
\newif\if@symbols
\newif\if@lofigures
\newif\if@lotables
\newif\if@pishgoftar
\newif\if@adadifront
\newif\if@taqrizone
\newif\if@taqriztwo
\newif\if@taqrizthree
\newif\if@taqrizfour
\newif\if@empty
\DeclareOption{taalif}{\@taaliftrue}   
\DeclareOption{tarjoma}{\@tarjomatrue}
\DeclareOption{tahqiq}{\@tahqiqtrue}
\DeclareOption{ihdaa}{\@ihdaatrue}
\DeclareOption{symbols}{\@symbolstrue}
\DeclareOption{lofigures}{\@lofigurestrue}
\DeclareOption{lotables}{\@lotablestrue}
\DeclareOption{pishgoftar}{\@pishgoftartrue}
\DeclareOption{adadifront}{\@adadifronttrue}
\DeclareOption{taqrizone}{\@taqrizonetrue}
\DeclareOption{taqriztwo}{\@taqriztwotrue}
\DeclareOption{taqrizthree}{\@taqrizthreetrue}
\DeclareOption{taqrizfour}{\@taqrizfourtrue}
\DeclareOption{empty}{\@emptytrue}
\ProcessOptions
%%%%%% end Options
%%%%%%% puts toctitle to center
\renewcommand{\cfttoctitlefont}{\hfill\bfseries\huge}
\renewcommand{\cftaftertoctitle}{\hfill}
%%%%%%% puts loftitle to center
\renewcommand{\cftloftitlefont}{\hfill\bfseries\huge}
\renewcommand{\cftafterloftitle}{\hfill}
%%%%%%% puts lottitle to center
\renewcommand{\cftlottitlefont}{\hfill\bfseries\huge}
\renewcommand{\cftafterlottitle}{\hfill}
%%%%%%% puts {Ø´Ú©Ù„} and then {:} in lof
\renewcommand{\cftfigpresnum}{Ø´Ú©Ù„\;}
\renewcommand{\cftfigaftersnum}{:}
\addtolength{\cftfignumwidth}{3.5em}
%%%%%%% puts {Ø­Ø¯ÙˆÙ„} and then {:} in lot
\renewcommand{\cfttabpresnum}{Ø¬Ø¯ÙˆÙ„\;}
\renewcommand{\cfttabaftersnum}{:}
\addtolength{\cfttabnumwidth}{3.5em}

\setlength{\cftchapindent}{-0.1em}
\setlength{\cftfigindent}{-0.1em}
\setlength{\cfttabindent}{-0.1em}
\renewcommand{\cftdotsep}{\cftnodots}


\AtBeginDocument{
\frontmatter
\if@adadifront\pagenumbering{adadi}\else\pagenumbering{harfi}\fi	
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\fancyhead{}
\abovedisplayskip=3pt
\belowdisplayskip=3pt	
\null
%%%%%%%% Ø´Ø±ÙˆØ¹ ØµÙØ­Ù‡ Ù‡Ø´Ø¯Ø§Ø±
{\ifx\@booktitle\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø¹Ù†ÙˆØ§Ù† Ú©ØªØ§Ø¨ Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
\lr{\texttt{\detokenize{\booktitle{arg1}}}}
Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
		 }}\newline\else\fi
%%%%%%%%%
\ifx\@authorfname\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ù†Ø§Ù… Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\authorfname{arg1}}}}
Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%
\ifx\@authorlname\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ ØªØ®Ù„Øµ Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\authorlname{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%%
\ifx\@authorby\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø³Ø§Ù„ ØªÙˆÙ„Ø¯ Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\authorby{arg1}}}}
Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%%%
\ifx\@university\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø¯Ø§Ù†Ø´Ú¯Ø§Ù‡ Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\university{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%%%%
\ifx\@department\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø¯ÛŒÙ¾Ø§Ø±ØªÙ…Ù†Øª Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\department{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%%%%%%
\ifx\@wyear\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø³Ø§Ù„ Ú†Ø§Ù¾ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\wyear{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%
\ifx\@publisher\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø§Ù†ØªØ´Ø§Ø±Ø§Øª Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\publisher{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯ ÛŒØ§ Ø®Ø§Ù„ÛŒ Ø¨Ú¯Ø°Ø§Ø±ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%
\if@tarjoma {\ifx\@tauthors\undefined {\Large\bfseries\textcolor{red}{
			Ù„Ø·ÙØ§ Ù…ÙˆÙ”Ù„Ù/Ù…ÙˆÙ”Ù„ÙØ§Ù† Ú©ØªØ§Ø¨ Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\tauthors{arg1}}}}
			Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%
\ifx\@paddress\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ù…Ú©Ø§Ù† Ù†Ø´Ø± Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\paddress{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯ ÛŒØ§ Ø®Ø§Ù„ÛŒ Ø¨Ú¯Ø°Ø§Ø±ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%%%%
\ifx\@volumes\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ ØªØ¹Ø¯Ø§Ø¯ Ø¬Ù„Ø¯ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\volumes{1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯ 
}}\newline\else\fi
%%%%%%%%%%%
\ifx\@isbn\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø´Ø§Ø¨Ú© Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\isbn{111-222-333}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯ ÛŒØ§ Ø®Ø§Ù„ÛŒ Ø¨Ú¯Ø°Ø§Ø±ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%
\ifx\@torank\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø±ØªØ¨Ù‡ Ø¹Ù„Ù…ÛŒ Ø±Ø§ Ú©Ù‡ Ù‚Ø±Ø§Ø± Ø§Ø³Øª Ø¨Ù‡ Ø¢Ù† Ù†Ø§ÛŒÙ„ Ø¢ÛŒÛŒØ¯ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\torank{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%%%%
\ifx\@editor\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ ÙˆÛŒØ±Ø§Ø³ØªØ§Ø± Ø§Ø«Ø± Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\editor{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯ 
}}\newline\else\fi
%%%%%%%%%%%%%%
\ifx\@printnum\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ù†ÙˆØ¨Øª Ú†Ø§Ù¾ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\printnum{1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%%%
\ifx\@teraaz\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ ØªÛŒØ±Ø§Ú˜ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\teraaz{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯ ÛŒØ§ Ø®Ø§Ù„ÛŒ Ø¨Ú¯Ø°Ø§Ø±ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%%
\ifx\@cutt\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ù†ÙˆØ¹ÛŒØª Ù‚Ø·Ø¹  Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\cutt{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%
\ifx\@price\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ù‚ÛŒÙ…Øª Ú©ØªØ§Ø¨ Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\price{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯ ÛŒØ§ Ø®Ø§Ù„ÛŒ Ø¨Ú¯Ø°Ø§Ø±ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%%%%%%%
\ifx\@booktype\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ù†ÙˆØ¹ÛŒØª Ø§Ø«Ø± Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\booktype{arg1}}}}
		Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯. Ø¯Ø± Ø§ÛŒÙ†Ø¬Ø§ Ø¨Ø§ Ø¬Ø²ÛŒÛŒØ§Øª Ø¨Ù†ÙˆÛŒØ³ÛŒØ¯: Ù…Ø«Ù„Ø§ Â«Ø§ÛŒÙ† Ú©ØªØ§Ø¨ Ø¨Ù‡ Ø¹Ù†ÙˆØ§Ù† Ù…ÙˆØ§Ø¯ Ø¯Ø±Ø³ÛŒ Ø¨Ø±Ø§ÛŒ Ø±Ø´ØªÙ‡â€ŒÙ‡Ø§ÛŒ Ø±ÛŒØ§Ø¶ÛŒØŒ ÙÛŒØ²ÛŒÚ©ØŒ Ùˆ Ø§Ù†Ø¬ÛŒÙ†ÛŒØ±ÛŒ ØªØ£Ù„ÛŒÙ Ø´Ø¯Ù‡ Ø§Ø³ØªÂ»
}}\newline\else\fi
%%%%%%%%%%%%%%%%%%
\if@ihdaa {\ifx\@taqdimba\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ ØªÙ‚Ø¯ÛŒÙ… Ø´ÙˆÙ†Ø¯Ú¯Ø§Ù† Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\taqdimba{arg1}}}}
			Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%%%
\ifx\@rank\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø±ØªØ¨Ù‡ Ø¹Ù„Ù…ÛŒ Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
		\lr{\texttt{\detokenize{\rank{arg1}}}}
Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
}}\newline\else\fi
%%%%%%%%%%%%
\if@pishgoftar {\ifx\@pishgoftartitle\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø¹Ù†ÙˆØ§Ù† Ù¾ÛŒØ´Ú¯ÙØªØ§Ø± Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\pishgoftartitle{arg1}}}}
			Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%
\if@pishgoftar {\ifx\@pishgoftarmatn\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ù…ØªÙ† Ù¾ÛŒØ´Ú¯ÙØªØ§Ø± Ø®ÙˆÛŒØ´ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\pishgoftarmatn{arg1}}}}
			Ø¯Ø±Ø¬ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%%%
\if@taqrizone {\ifx\@taqrizonetitle\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø¹Ù†ÙˆØ§Ù† ØªÙ‚Ø±ÛŒØ¸ Ø§ÙˆÙ„ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\taqrizonetitle{arg1}}}}
Ù…Ø´Ø®Øµ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%
\if@taqrizone {\ifx\@taqrizonematn\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ù…ØªÙ† ØªÙ‚Ø±ÛŒØ¸ Ø§ÙˆÙ„ Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\taqrizonematn{arg1}}}}
Ø¯Ø±Ø¬ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%
\if@taqriztwo {\ifx\@taqriztwotitle\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø¹Ù†ÙˆØ§Ù† ØªÙ‚Ø±ÛŒØ¸ Ø¯ÙˆÙ… Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\taqriztwotitle{arg1}}}}
			Ø¯Ø±Ø¬ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%%%
\if@taqriztwo {\ifx\@taqriztwomatn\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ù…ØªÙ† ØªÙ‚Ø±ÛŒØ¸ Ø¯ÙˆÙ… Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\taqriztwomatn{arg1}}}}
			Ø¯Ø±Ø¬ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%%%
\if@taqrizthree {\ifx\@taqrizthreetitle\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø¹Ù†ÙˆØ§Ù† ØªÙ‚Ø±ÛŒØ¸ Ø³ÙˆÙ… Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\taqrizthreetitle{arg1}}}}
			Ø¯Ø±Ø¬ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%%%
\if@taqrizthree {\ifx\@taqrizthreematn\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ù…ØªÙ† ØªÙ‚Ø±ÛŒØ¸ Ø³ÙˆÙ… Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\taqrizthreematn{arg1}}}}
			Ø¯Ø±Ø¬ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%%%
\if@taqrizfour {\ifx\@taqrizfourtitle\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ø¹Ù†ÙˆØ§Ù† ØªÙ‚Ø±ÛŒØ¸ Ú†Ù‡Ø§Ø±Ù… Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\taqrizfourtitle{arg1}}}}
			Ø¯Ø±Ø¬ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%%%
\if@taqrizfour {\ifx\@taqrizfourmatn\undefined {\Large\bfseries\textcolor{red}{
Ù„Ø·ÙØ§ Ù…ØªÙ† ØªÙ‚Ø±ÛŒØ¸ Ú†Ù‡Ø§Ø±Ù… Ø±Ø§ ØªÙˆØ³Ø· Ú©Ø¯
			\lr{\texttt{\detokenize{\taqrizfourmatn{arg1}}}}
			Ø¯Ø±Ø¬ Ú©Ù†ÛŒØ¯
	}}\newline\else\fi} \fi
%%%%%%%%%%%%%%%%%%%%%%%%%
}
%%%%%%%%%%%%% Ø®ØªÙ… ØµÙØ­Ù‡ Ù‡Ø´Ø¯Ø§Ø±Ø¯
%%%%%%%% Ø´Ø±ÙˆØ¹ ØµÙØ­Ù‡ Ø¨Ø³Ù… Ø§Ù„Ù„Ù‡ %%%%%%%%
\begin{center}
\vspace{2cm}
\thispagestyle{empty}
\IfFileExists{besmillah.jpg}{\includegraphics[width=13cm,height=12cm]{besmillah.jpg}}{\textcolor{red}{\\\Huge\bfseries\lr{besmillah.jpg Does not Exist!!!!!!}}}
\end{center}\null\vspace{1cm}
{\begin{center}
\Large 
Ø§Ù„Ø­Ù…Ø¯ Ù„Ù„Ù‡ Ø±Ø¨ Ø§Ù„Ø¹Ø§Ù„Ù…ÙŠÙ† ÙˆÙŽØ§Ù„ØµÙŽÙ‘Ù„Ø§ÙŽØ©Ù ÙˆØ§Ù„Ø³Ù„Ø§Ù… Ø¹Ù„Ù‰ Ø£Ø´Ø±Ù Ø§Ù„Ù…Ø±Ø³Ù„ÙŠÙ† Ø³ÙŠØ¯Ù†Ø§ Ù…Ø­Ù…Ø¯ ÙˆØ¹Ù„Ù‰ Ø¢Ù„Ù‡ ÙˆØµØ­Ø¨Ù‡ ÙˆÙ…Ù† ØªØ¨Ø¹Ù‡Ù… Ø¨Ø¥Ø­Ø³Ø§Ù† Ø¥Ù„Ù‰ ÙŠÙˆÙ… Ø§Ù„Ø¯ÙŠÙ†
\end{center}}
\vfill
\thispagestyle{empty}\cleardoublepage

%%%%%%%%%% ØµÙØ­Ù‡ Ø¹Ù†ÙˆØ§Ù† %%%%%%%%%
\cleardoublepage\thispagestyle{empty}\null\vspace{8cm}
\begin{center}
	\bfseries
	{\Huge{\ifx\@booktitle\undefined{\lr{undefined}}\else\@booktitle\fi}}\\ 
{\if@tarjoma{\null\vspace{10pt}\bfseries\large
Ù…ÙˆÙ”Ù„Ù/Ù…ÙˆÙ”Ù„ÙØ§Ù†: 
\space{\ifx\@tauthors\undefined{\textcolor{red}{\lr{undefined tauthors}}}\else\@tauthors\fi}	
}\\\fi}
	\null\vspace{10pt}
{
	\if@taalif Ù…ÙˆÙ”Ù„Ù: \else {\if@tahqiq Ù…Ø­Ù‚Ù‚: \else {\if@tarjoma Ù…ØªØ±Ø¬Ù…: \else {\lr{unspecified option}}\fi}\fi} \fi
}
\space {\ifx\@authorfname\undefined{\lr{undefined}}\else\@authorfname\fi}\space{\ifx\@authorlname\undefined{\lr{undefined}}\else\@authorlname\fi}\\
	\null \vspace{10pt}
	{Ø§Ø³ØªØ§Ø¯
		\space {\ifx\@university\undefined{\lr{undefined}}\else\@university\fi}} \\
	\null \vspace{10pt}
	{\ifx\@booktype\undefined{\lr{undefined}}\else\@booktype\fi}\\
	\null\vspace{10pt}
	{Ù†Ø§Ø´Ø±: 
		\space{\ifx\@publisher\undefined{\lr{undefined}}\else\@publisher\fi}}\\ 
	\null\vspace{10pt}
	{Ø³Ø§Ù„ Ú†Ø§Ù¾: 
		\space{\ifx\@wyear\undefined{\lr{undefined}}\else\@wyear\fi}}
\end{center}
\clearpage
%%%%%%%%%  Ù¾Ø´Øª ØµÙØ­Ù‡ Ø¹Ù†ÙˆØ§Ù† 
\thispagestyle{empty}
{ 
	\begin{center}\small
		\begin{tabular}{|p{3cm}p{0.5mm}p{7cm}|}
			\hline
			Ø³Ø± Ø´Ù†Ø§Ø³Ù‡: &amp; &amp; 
			{\ifx\@authorlname\undefined{\lr{undefined}}\else\@authorlname\fi}, \space {\ifx\@authorfname\undefined{\lr{undefined}}\else\@authorfname\fi},\space{\ifx\@authorby\undefined{\lr{undefined}}\else\@authorby\fi}\space\\
			Ø¹Ù†ÙˆØ§Ù† Ùˆ Ù†Ø§Ù… 
			{
				\if@taalif Ù…ÙˆÙ”Ù„Ù: \else {\if@tahqiq Ù…Ø­Ù‚Ù‚: \else {\if@tarjoma Ù…ØªØ±Ø¬Ù…: \else {\lr{unspecified option}}\fi}\fi} \fi
			} &amp; &amp;
			{\ifx\@booktitle\undefined{\lr{undefined}}\else\@booktitle\fi},\space{\ifx\@authorfname\undefined{\lr{undefined}}\else\@authorfname\fi}\space{\ifx\@authorlname\undefined{\lr{undefined}}\else\@authorlname\fi}\\
			Ù…Ø´Ø®ØµØ§Øª Ù†Ø´Ø±:&amp; &amp;
			{\ifx\@paddress\undefined{\lr{undefined}}\else\@paddress\fi}, {\ifx\@publisher\undefined{\lr{undefined}}\else\@publisher\fi}, {\ifx\@wyear\undefined{\lr{undefined}}\else\@wyear\fi}\\
			Ù…Ø´Ø®ØµØ§Øª Ø¸Ø§Ù‡Ø±ÛŒ:&amp; &amp;
			{{\ifx\@volumes\undefined{\lr{undefined}}\else\adadinumeral{\@volumes}\fi}} \text{Ø¬Ù„Ø¯}, \pageref{LastPage} \text{ØµÙØ­Ù‡}\\
			Ø´Ø§Ø¨Ú© :&amp; &amp;
			{\ifx\@isbn\undefined{\lr{undefined}}\else\@isbn\fi}\\
			ÛŒØ§Ø¯Ø¯Ø§Ø´Øª: &amp; &amp; Ø¨Ø±Ø§ÛŒ ØªØ±ÙÛŒØ¹ Ø¨Ù‡ Ø±ØªØ¨Ù‡ Ø¹Ù„Ù…ÛŒ 
			{\ifx\@torank\undefined{\lr{undefined}}\else\@torank\fi}\\
			Ù…ÙˆØ¶ÙˆØ¹:&amp; &amp; 
			{\ifx\@department\undefined{\lr{undefined}}\else\@department\fi}\\
			\hline	
		\end{tabular}\\
		\null
		\vspace{2cm}
\IfFileExists{logo.jpg}{\includegraphics[width=3cm,height=3cm]{logo.jpg}\\}{\textcolor{red}{\newline\Huge\bfseries\lr{logo.jpg Does not Exist!!!!!!}}\\}
		\null\vspace{20pt}
{	
	\if@taalif
{\large\bfseries\ifx\@rank\undefined{\lr{undefined rank}}\else\@rank\fi}\space {\Large\bfseries\ifx\@authorfname\undefined{\lr{undefined}}\else\@authorfname\fi}\space{\Large\bfseries\ifx\@authorlname\undefined{\lr{undefined}}\else\@authorlname\fi} \else {\if@tahqiq
{\large\bfseries\ifx\@rank\undefined{\lr{undefined rank}}\else\@rank\fi}\space
 {\Large\bfseries\ifx\@authorfname\undefined{\lr{undefined}}\else\@authorfname\fi}\space{\Large\bfseries\ifx\@authorlname\undefined{\lr{undefined}}\else\@authorlname\fi} \else {\if@tarjoma {\Large\bfseries\ifx\@tauthors\undefined{\lr{undefined tauthors}}\else\@tauthors\fi} \else {\lr{unspecified option}}\fi}\fi} \fi
}\\
		\null\vspace{15pt}
		{\Huge\bfseries{\ifx\@booktitle\undefined{\lr{undefined booktitle}}\else\@booktitle\fi}}\\
		%%%%%%%%%%%%%%%%%%%%%%%%%
		{\if@tarjoma
			\null\vspace{15pt}
			{\large \bfseries
				Ù…ØªØ±Ø¬Ù…: 
{\large\bfseries\ifx\@rank\undefined{\lr{undefined rank}}\else\@rank\fi}\space{\ifx\@authorfname\undefined{\lr{undefined}}\else\@authorfname\fi}\space{\ifx\@authorlname\undefined{\lr{undefined}}\else\@authorlname\fi}}\\
			\fi}
		%%%%%%%%%%%%%%%
		\null{
\if@taalif\vspace{15pt} \else {\if@tahqiq\vspace{15pt} \else {\if@tarjoma\vspace{1pt} \else\vspace{15pt} \fi} \fi} \fi	
	}
		{\large \bfseries
			ÙˆÛŒØ±Ø§Ø³ØªØ§Ø±: 
			{\ifx\@editor\undefined{\lr{undefined}}\else\@editor\fi}}\\
		\null\vspace{1pt}
		{\large\bfseries Ù†ÙˆØ¨Øª Ú†Ø§Ù¾: 
			\space{{\ifx\@printnum\undefined{\lr{undefined}}\else\tartibinumeral{\@printnum}\fi}}}\\
		\null\vspace{1pt}
		{\large\bfseries ØªÛŒØ±Ø§Ú˜: 
			\space{\ifx\@teraaz\undefined{\lr{undefined}}\else\@teraaz\fi} }\\
		\null\vspace{1pt}
		{\large\bfseries Ø³Ø§Ù„ Ú†Ø§Ù¾: 
			\space{\ifx\@wyear\undefined{\lr{undefined}}\else\@wyear\fi}}\\
		\null\vspace{1pt}
		{\large\bfseries Ù‚Ø·Ø¹: 
			\space{\ifx\@cutt\undefined{\lr{undefined}}\else\@cutt\fi}}\\
		\null\vspace{1pt}
		{\large\bfseries Ù‚ÛŒÙ…Øª Ú©ØªØ§Ø¨: 
			\space{\ifx\@price\undefined{\lr{undefined}}\else\@price\fi}}\\
		\null\vspace{1pt}
		{\large\bfseries Ø´Ø§Ø¨Ú©: 
			\space{\ifx\@isbn\undefined{\lr{undefined}}\else\@isbn\fi}}\\
		\null\vspace{1pt}
		{\large\bfseries
			Ø­Ù‚ Ú†Ø§Ù¾ Ø¨Ø±Ø§ÛŒ ÙˆØ²Ø§Ø±Øª ØªØ­ØµÛŒÙ„Ø§Øª Ø¹Ø§Ù„ÛŒ Ùˆ 
			\space{\ifx\@university\undefined{\lr{undefined}}\else\@university\fi}\space
			Ù…Ø­ÙÙˆØ¸ Ø§Ø³Øª}
	\end{center}
	\clearpage}
%%%%%% Ø´Ø±ÙˆØ¹ ØµÙØ­Ù‡ Ø§Ù‡Ø¯Ø§
{\if@ihdaa\thispagestyle{empty}\null\vfill\centering\bfseries\huge
ØªÙ‚Ø¯ÛŒÙ… Ø¨Ù‡ 
\space{\ifx\@taqdimba\undefined{\lr{undefined taqdimba}}\else\@taqdimba\fi}
\vfill\cleardoublepage
\fi}
%%%%%%%%%% Ø®ØªÙ… ØµÙØ­Ù‡ Ø§Ù‡Ø¯Ø§
%%%%%%%%%%%%%% Ø´Ø±ÙˆØ¹ ØµÙØ­Ù‡ Ù¾ÛŒØ´Ú¯ÙØªØ§Ø±
{\if@pishgoftar{\cleardoublepage{\begin{center}
\large\bfseries{\ifx\@pishgoftartitle\undefined{\lr{undefined pishgoftartitle}}\else\@pishgoftartitle\fi}\end{center}}{{\ifx\@pishgoftarmatn\undefined{\lr{undefined pishgoftarmatn}}\else\noindent\@pishgoftarmatn\fi}}}\fi}
%%%%%%%% Ø®ØªÙ… ØµÙØ­Ù‡ Ù¾ÛŒØ´Ú¯ÙØªØ§Ø±
%%%%%%%%%%%%% Ø´Ø±ÙˆØ¹ ØªÙ‚Ø±ÛŒØ¸ ÛŒÚ©
{\if@taqrizone\cleardoublepage
\begin{center}
\large\bfseries 
\ifx\@taqrizonetitle\undefined {\lr{undefined title}}\else \@taqrizonetitle\fi
\end{center}\noindent
\ifx\@taqrizonematn\undefined{\lr{undefined matn}}\else\@taqrizonematn\fi
\fi}
%%%%%%%%%%%%%%% Ø®ØªÙ… ØªÙ‚Ø±ÛŒØ¸ ÛŒÚ©
%%%%%%%%%%%%% Ø´Ø±ÙˆØ¹ ØªÙ‚Ø±ÛŒØ¸ Ø¯ÙˆÙ…
{\if@taqriztwo\cleardoublepage
	\begin{center}
		\large\bfseries 
		\ifx\@taqriztwotitle\undefined {\lr{undefined title}}\else \@taqriztwotitle\fi
	\end{center}\noindent
	\ifx\@taqriztwomatn\undefined{\lr{undefined matn}}\else\@taqriztwomatn\fi
	\fi}
%%%%%%%%%%%%%%% Ø®ØªÙ… ØªÙ‚Ø±ÛŒØ¸ Ø¯ÙˆÙ…
%%%%%%%%%%%%% Ø´Ø±ÙˆØ¹ ØªÙ‚Ø±ÛŒØ¸ Ø³ÙˆÙ…
{\if@taqrizthree\cleardoublepage
	\begin{center}
		\large\bfseries 
		\ifx\@taqrizthreetitle\undefined {\lr{undefined title}}\else \@taqrizthreetitle\fi
	\end{center}\noindent
	\ifx\@taqrizthreematn\undefined{\lr{undefined matn}}\else\@taqrizthreematn\fi
	\fi}
%%%%%%%%%%%%%%% Ø®ØªÙ… ØªÙ‚Ø±ÛŒØ¸ Ø³ÙˆÙ…
%%%%%%%%%%%%% Ø´Ø±ÙˆØ¹ ØªÙ‚Ø±ÛŒØ¸ Ú†Ù‡Ø§Ø±Ù…
{\if@taqrizfour\cleardoublepage
	\begin{center}
		\large\bfseries 
		\ifx\@taqrizfourtitle\undefined {\lr{undefined title}}\else \@taqrizfourtitle\fi
	\end{center}\noindent
	\ifx\@taqrizfourmatn\undefined{\lr{undefined matn}}\else\@taqrizfourmatn\fi
	\fi}
%%%%%%%%%%%%%%% Ø®ØªÙ… ØªÙ‚Ø±ÛŒØ¸ Ø¯ÙˆÙ…
%%%%% ØªÙ†Ø¸ÛŒÙ…Ø§Øª Ø¹Ù†Ø§ÙˆÛŒÙ† ÙØµÙ„â€ŒÙ‡Ø§
\cleardoublepage 
\titleformat{\chapter}[display]{\bfseries\Huge\centering}{ {ÙØµÙ„} \tartibinumeral{\thechapter} }{10pt}{}[]
\linespread{1.15}
% removing fasl 1 from header
\setlength{\headheight}{15pt}\renewcommand{\chaptermark}[1]{\markboth{\space#1}{}}
% setting header according to mohe
\pagestyle{fancy}\renewcommand\headrule{\hrulefill\raisebox{-2.1pt}[0pt]{\quad\decofourleft\decotwo\decofourright\quad}\hrulefill}\fancyhead[LO]{\leftmark\hspace{5pt}|\hspace{-5pt}|\hspace{5pt}\thepage}\fancyhead[RE]{\thepage\hspace{5pt}|\hspace{-5pt}|\hspace{5pt}{{\ifx\@booktitle\undefined{\lr{undefined}}\else\@booktitle\fi}}}\fancyhead[RO]{ }\fancyhead[LE]{}\fancyfoot{}\cfoot{}
\cleardoublepage
}
\AtEndDocument{\glsaddall}
</pre></body></html>