summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/lualatex/luapersian/README25
-rw-r--r--Master/texmf-dist/doc/lualatex/luapersian/luapersian.ltx76
-rw-r--r--Master/texmf-dist/doc/lualatex/luapersian/luapersian.pdfbin0 -> 44881 bytes
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/algorithm-luapersian.def27
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/algorithmic-luapersian.def26
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/amsart-luapersian.def90
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/amsbook-luapersian.def92
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/amsmath-luapersian.def28
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/amstext-luapersian.def37
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/array-luapersian.def82
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/article-luapersian.def155
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/artikel1-luapersian.def181
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/artikel2-luapersian.def179
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/artikel3-luapersian.def191
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/arydshln-luapersian.def111
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/backref-luapersian.def43
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/boek-luapersian.def120
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/boek3-luapersian.def120
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/book-luapersian.def162
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/bookest-luapersian.def63
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/breqn-luapersian.def78
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/color-localise-luapersian.def32
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/commands-ltx-luapersian.def967
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/commands-luapersian.def79
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/enumerate-luapersian.def40
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/environments-ltx-luapersian.def69
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/environments-luapersian.def34
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/extarticle-luapersian.def144
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/extbook-luapersian.def151
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/extletter-luapersian.def47
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/extreport-luapersian.def145
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/fancyhdr-luapersian.def35
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/fleqn-luapersian.def53
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/flowfram-luapersian.def100
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/hvfloat-luapersian.def401
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/hyperref-luapersian.def233
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/leqno-luapersian.def27
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/letter-luapersian.def47
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/listings-luapersian.def26
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/loadingorder-luapersian.sty249
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/localise-luapersian.def37
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/luapersian-footnote.sty260
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/luapersian-mathsdigitspec.sty177
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/luapersian-multiplechoice.sty160
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/luapersian-persiancal.sty191
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/luapersian.sty781
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/luapersianftnxtra.sty169
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/memoir-luapersian.def86
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/messages-localise-luapersian.def24
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/minitoc-luapersian.def33
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/misc-localise-luapersian.def344
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/natbib-luapersian.def284
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/packages-localise-luapersian.def25
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/pgf-luapersian.def32
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/ragged2e-luapersian.def38
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/rapport1-luapersian.def182
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/rapport3-luapersian.def200
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/refrep-luapersian.def170
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/report-luapersian.def157
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/scrartcl-luapersian.def295
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/scrbook-luapersian.def301
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/scrreprt-luapersian.def296
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/sidecap-luapersian.def49
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/stabular-luapersian.def50
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/tabls-luapersian.def58
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/tabulary-luapersian.def53
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/tikz-luapersian.def28
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/tocbibind-luapersian.def54
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/tocloft-luapersian.def34
-rw-r--r--Master/texmf-dist/tex/lualatex/luapersian/wrapfig-luapersian.def99
70 files changed, 9432 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/lualatex/luapersian/README b/Master/texmf-dist/doc/lualatex/luapersian/README
new file mode 100644
index 00000000000..652ee8d3fd7
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/luapersian/README
@@ -0,0 +1,25 @@
+_________________
+The LuaPersian package
+v0.1
+
+LuaPersian package is the successor to XePersian package.
+XePersian package is frozen, obselete and no more development
+will be done, thus users of XePersian package are encouraged
+to use LuaPersian package instead.
+
+
+
+To get help, please explore http://forum.parsilatex.com
+
+______________
+Vafa Khalighi
+vafakhlgh@gmail.com
+
+Copyright © 2011
+Distributed under the LaTeX Project Public License
+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
+
+This work is “author-maintained” (as per LPPL maintenance status)
+by Vafa Khalighi.
diff --git a/Master/texmf-dist/doc/lualatex/luapersian/luapersian.ltx b/Master/texmf-dist/doc/lualatex/luapersian/luapersian.ltx
new file mode 100644
index 00000000000..e29453e6dc4
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/luapersian/luapersian.ltx
@@ -0,0 +1,76 @@
+\documentclass{ltxdoc}
+\usepackage{fontspec}
+\usepackage{bidicode}
+\usepackage{url}
+\usepackage{multicol}
+\usepackage{hyperref}
+\usepackage{calc}
+\usepackage{pifont}
+\usepackage{bbding}
+\setlength\columnseprule{.4pt}
+\definecolor{myred}{rgb}{0.65,0.04,0.07}
+\hypersetup{pdftitle={The LuaPersian Package (Persian for \LaTeXe{} over LuaTeX)},pdfauthor={Vafa Khalighi <vafa018@gmail.com>},colorlinks=true}
+\newcommand\XeTeX{Xe\TeX}
+\newcommand\XeLaTeX{Xe\LaTeX}
+\newcommand\XePersian{\textsf{XePersian}}
+\newcommand\LuaTeX{Lua\TeX}
+\newcommand\LuaLaTeX{Lua\LaTeX}
+\newcommand\LuaPersian{\textsf{LuaPersian}}
+\newcommand\bidi{\textsf{bidi}}
+\newcounter{local}
+\renewcommand\theenumi{\protect\setcounter{local}%
+ {201+\the\value{enumi}}\protect\ding{\value{local}}}
+\renewcommand\labelenumi{\theenumi}
+\renewcommand\labelitemi{\HandRight}
+\renewcommand\labelitemii{\HandRightUp}
+\renewcommand\labelitemiii{\HandCuffRight}
+\renewcommand\labelitemiv{\HandPencilLeft}
+\makeatletter
+\renewcommand\tableofcontents{\relax
+ \begin{multicols}{2}[\section*{\contentsname}]\small
+ \@starttoc{toc}\relax
+ \end{multicols}}
+\pdfstringdefDisableCommands{%
+\renewcommand\Lcs[1]{\textbackslash#1}
+}
+\makeatother
+ \title{The \LuaPersian\ Package\\ \url{http://bitbucket.org/vafa/luapersian}\\[5pt]
+ Persian for \LaTeXe{} over \LuaTeX}
+ \author{Vafa Khalighi\\
+ \url{vafa018@gmail.com}}
+ \date{\today\qquad Version 0.1}
+\begin{document}
+\maketitle
+\section{Introduction}
+\LuaPersian\ package is the successor to \XePersian\ package. Most of the things that used to work in \XePersian\ and \bidi\ also work in \LuaPersian\ but with few exceptions mentioned later in this document. This does not mean that those features of \XePersian\ package will not be supported by \LuaPersian\ package; but because \LuaPersian\ is under rapid development, those features have not been implemented yet, but they will be implemented in future versions of \LuaPersian\ package. This means that your \XePersian\ documents with very minor changes will work in \LuaPersian\ as well.
+
+\XePersian\ package is frozen, obselete and no more development will be done, thus users of \XePersian\ package are encouraged to use \LuaPersian\ package instead.
+\section{Things that used to work with \XePersian\, but not supported by the current version of \LuaPersian}
+\begin{itemize}
+\item There is no \texttt{Kashida} option.
+\item There is no implementation of \textsf{xepersian-magazine} class.
+\item There are no \Lcs{setLTR}, \Lcs{setLR}, \Lcs{setRTL}, \Lcs{setRL}, \Lcs{unsetRL}, \Lcs{unsetRTL}, \Lcs{unsetLTR}, \Lcs{LR}, and \Lcs{RL} commands.
+\item There is no \texttt{extrafootnotefeatures} option.
+\item There is no \Lcs{SepMark} and \Lcs{@SepMark} commands. (not essential at all)
+\item There is no \Lcs{rcases} command. (not essential at all)
+\item There is no implementation of \textsf{bidimoderncv} class.
+\end{itemize}
+\section{What has changed?}
+\begin{itemize}
+\item \Lcs{xepersianversion} and \Lcs{xepersianversion} commands are changed to \Lcs{luapersianversion} and \Lcs{luapersiandate} commands respectively.
+\item The name of \textsf{xepersian-multiplechoice} is changed to \textsf{luapersian-multiplechoice}.
+\item We decided to not change \Lcs{raggedright} and \Lcs{raggedleft} commands since they are used in many packages and classes. Instead we created \Lcs{bidiraggedleft} and \Lcs{bidiraggedright} which give logical results both in RTL and LTR. However the \textsf{flushright} and \textsf{flushleft} environment give logical result. The same is true for \textsf{ragged2e} package.
+\item The name of \textsf{bidiftnxtra} package is changed to \textsf{luapersianftnxtra} package.
+\end{itemize}
+
+
+
+
+
+
+
+
+
+
+
+\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/luapersian/luapersian.pdf b/Master/texmf-dist/doc/lualatex/luapersian/luapersian.pdf
new file mode 100644
index 00000000000..adcafabbbd4
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/luapersian/luapersian.pdf
Binary files differ
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/algorithm-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/algorithm-luapersian.def
new file mode 100644
index 00000000000..599cc064b09
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/algorithm-luapersian.def
@@ -0,0 +1,27 @@
+%%
+%% This is file `algorithm-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{algorithm-luapersian.def}[2011/08/01 v0.1 adaptations for algorithm package]
+\def\ALG@name{\if@RTL الگوریتم\else Algorithm\fi}
+\def\ALGS@name{الگوریتم‌ها}
+\def\listalgorithmname{\if@RTL لیست \ALGS@name\else List of \ALG@name s\fi}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `algorithm-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/algorithmic-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/algorithmic-luapersian.def
new file mode 100644
index 00000000000..6ff0aabeb0f
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/algorithmic-luapersian.def
@@ -0,0 +1,26 @@
+%%
+%% This is file `algorithmic-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{algorithmic-luapersian.def}[2011/08/01 v0.1 adaptations for algorithmic package]
+\def\algorithmicrequire{\if@RTL\textbf{ورودی:}\else\textbf{Require:}\fi}
+\def\algorithmicensure{\if@RTL\textbf{خروجی:}\else\textbf{Ensure:}\fi}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `algorithmic-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/amsart-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/amsart-luapersian.def
new file mode 100644
index 00000000000..6b70d194145
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/amsart-luapersian.def
@@ -0,0 +1,90 @@
+%%
+%% This is file `amsart-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{amsart-luapersian.def}[2010/07/25 v0.2 adaptations for amsart class]
+\def\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{\kern-.4\p@
+ \hrule\@width 5pc\kern11\p@\kern-\footnotesep}\hfil}}
+\def\right@footnote{\kern-.4\p@
+ \hrule\@width 5pc\kern11\p@\kern-\footnotesep}
+\long\def\@footnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces#1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@RTLfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox dir TRT{\@RTLtrue\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces\persianfont #1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@LTRfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox dir TLT{\@RTLfalse\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces\latinfont #1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\renewenvironment{thebibliography}[1]{%
+ \@bibtitlestyle
+ \normalfont\bibliofont\labelsep .5em\relax
+ \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth \advance\leftmargin\labelsep
+ \usecounter{enumiv}}%
+ \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
+ \sfcode`\.=\@m
+}{%
+ \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist
+}
+\renewcommand \thepart {\@tartibi\c@part}
+\def\appendix{\par\c@section\z@ \c@subsection\z@
+ \let\sectionname\appendixname
+ \def\thesection{\@harfi\c@section}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `amsart-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/amsbook-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/amsbook-luapersian.def
new file mode 100644
index 00000000000..c28962ff6a4
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/amsbook-luapersian.def
@@ -0,0 +1,92 @@
+%%
+%% This is file `amsbook-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{amsbook-luapersian.def}[2011/08/01 v0.1 adaptations for amsbook class]
+\def\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{\kern-.4\p@
+ \hrule\@width 5pc\kern11\p@\kern-\footnotesep}\hfil}}
+\def\right@footnote{\kern-.4\p@
+ \hrule\@width 5pc\kern11\p@\kern-\footnotesep}
+\long\def\@footnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces#1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@RTLfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox dir TRT{\@RTLtrue\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces\persianfont #1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@LTRfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox dir TLT{\@RTLfalse\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces\latinfont #1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\renewenvironment{thebibliography}[1]{%
+ \@bibtitlestyle
+ \normalfont\bibliofont\labelsep .5em\relax
+ \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth \advance\leftmargin\labelsep
+ \usecounter{enumiv}}%
+ \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
+ \sfcode`\.=\@m
+}{%
+ \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist
+}
+\def\frontmatter{\cleardoublepage\pagenumbering{harfi}}
+\renewcommand \thepart {\@tartibi\c@part}
+\def\appendix{\par
+ \c@chapter\z@ \c@section\z@
+ \let\chaptername\appendixname
+ \def\thechapter{\@harfi\c@chapter}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `amsbook-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/amsmath-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/amsmath-luapersian.def
new file mode 100644
index 00000000000..d198a0919cf
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/amsmath-luapersian.def
@@ -0,0 +1,28 @@
+%%
+%% This is file `amsmath-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{amsmath-luapersian.def}[2011/08/01 v0.1 adaptations for amsmath package]
+\def\tagform@#1{\maketag@@@{(\if@RTL\bgroup\textdir TRT\fi\ignorespaces#1\unskip\@@italiccorr\if@RTL\egroup\fi)}}
+\renewcommand{\eqref}[1]{\bgroup\textdir TLT\textup{\tagform@{\ref{#1}}}\egroup}
+\DeclareRobustCommand{\[}{\begin{equation*}}
+\DeclareRobustCommand{\]}{\end{equation*}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `amsmath-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/amstext-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/amstext-luapersian.def
new file mode 100644
index 00000000000..bd938bd35e2
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/amstext-luapersian.def
@@ -0,0 +1,37 @@
+%%
+%% This is file `amstext-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{amstext-luapersian.def}[2011/08/01 v0.1 adaptations for amstext package]
+\def\textdef@#1#2#3{%
+ \if@RTL%
+ \hbox dir TRT{{%
+ \everymath{#1}%
+ \let\f@size#2\selectfont
+ #3}}%
+ \else%
+ \hbox{{%
+ \everymath{#1}%
+ \let\f@size#2\selectfont
+ #3}}%
+ \fi%
+}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `amstext-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/array-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/array-luapersian.def
new file mode 100644
index 00000000000..b08b0a7f549
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/array-luapersian.def
@@ -0,0 +1,82 @@
+%%
+%% This is file `array-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{array-luapersian.def}[2011/08/01 v0.1 adaptations for array package]
+\def\@testpach{\@chclass
+ \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
+ \ifnum \@lastchclass=7 5 \else
+ \ifnum \@lastchclass=8 \tw@ \else
+ \ifnum \@lastchclass=9 \thr@@
+ \else \z@
+ \ifnum \@lastchclass = 10 \else
+ \edef\@nextchar{\expandafter\string\@nextchar}%
+ \@chnum
+ \if \@nextchar c\z@ \else
+ \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
+ \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
+ \z@ \@chclass
+ \if\@nextchar |\@ne \else
+ \if \@nextchar !6 \else
+ \if \@nextchar @7 \else
+ \if \@nextchar <8 \else
+ \if \@nextchar >9 \else
+ 10
+ \@chnum
+ \if \@nextchar m\thr@@\else
+ \if \@nextchar p4 \else
+ \if \@nextchar b5 \else
+ \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
+\def\@tabular{\if@RTL\@RTLtabtrue\fi%
+ \leavevmode
+ \hbox \bgroup $\col@sep\tabcolsep \let\d@llarbegin\begingroup
+ \let\d@llarend\endgroup
+ \@tabarray}
+\def\endtabular{\endarray $\egroup\@RTLtabfalse}
+\expandafter\let\csname endtabular*\endcsname=\endtabular
+\def\@array[#1]#2{%
+ \@tempdima \ht \strutbox
+ \advance \@tempdima by\extrarowheight
+ \setbox \@arstrutbox \hbox{\vrule
+ \@height \arraystretch \@tempdima
+ \@depth \arraystretch \dp \strutbox
+ \@width \z@}%
+ \begingroup
+ \@mkpream{#2}%
+ \xdef\@preamble{\noexpand \ialign \@halignto
+ \bgroup \@arstrut \@preamble
+ \tabskip \z@ \cr}%
+ \endgroup
+ \@arrayleft
+ \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi \fi
+ \bgroup
+ \let \@sharp ##\let \protect \relax
+ \lineskip \z@
+ \baselineskip \z@
+ \m@th
+ \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if@RTLtab\textdir TRT\fi\@preamble}
+\def\@tabarray{\@ifnextchar[{\@array}{\@array[c]}}
+\def\endarray{\crcr \egroup\egroup \@arrayright \gdef\@preamble{}}
+\def\array{\col@sep\arraycolsep
+ \def\d@llarbegin{$}\let\d@llarend\d@llarbegin\gdef\@halignto{}%
+ \@RTLtabfalse\@tabarray}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `array-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/article-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/article-luapersian.def
new file mode 100644
index 00000000000..6b37483da52
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/article-luapersian.def
@@ -0,0 +1,155 @@
+%%
+%% This is file `article-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{article-luapersian.def}[2011/08/01 v0.1 adaptations for standard article class]
+\if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand\right@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}
+\renewcommand\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil}}
+\renewenvironment{thebibliography}[1]
+ {\section*{\refname}%
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand \thepart {\@tartibi\c@part}
+\renewcommand\appendix{\par
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \gdef\thesection{\@harfi\c@section}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `article-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/artikel1-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/artikel1-luapersian.def
new file mode 100644
index 00000000000..256e4d4a513
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/artikel1-luapersian.def
@@ -0,0 +1,181 @@
+%%
+%% This is file `artikel1-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{artikel1-luapersian.def}[2011/08/01 v0.1 adaptations for artikel1 class]
+\renewenvironment{thebibliography}[1]
+ {\section*{\refname}%
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand*\right@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil}
+}
+\if@titlepage
+\renewcommand*\TitleFont{\rmfamily}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
+\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
+ \futurelet\@tempa\uc@ax}
+\def\uc@ax{%
+ \ifx\@tempa\relax
+ \else
+ \\ \andname \\ \expandafter\uc@authornothanks
+ \fi}
+\def\uc@tx{\ifx\@tempa\relax
+ \else \expandafter\uc@ty \fi}
+\def\uc@ty#1{\thanks{#1}\uc@nothanks}
+\else
+\renewcommand*\maketitle{\par
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext{\@xmakefntext{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \TitleFont \@title \par}%
+ \vskip 1.5em%
+ {\large \TitleFont
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \TitleFont \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand*\thepart{\@tartibi\c@part}
+\renewcommand*\appendix{\par
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \gdef\thesection{\@harfi\c@section}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `artikel1-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/artikel2-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/artikel2-luapersian.def
new file mode 100644
index 00000000000..aae78178082
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/artikel2-luapersian.def
@@ -0,0 +1,179 @@
+%%
+%% This is file `artikel2-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{artikel2-luapersian.def}[2011/08/01 v0.1 adaptations for artikel2 class]
+\renewcommand*\right@footnote{%
+ \kern-3\p@
+ \hrule\@width 3\unitindent
+ \kern 2.6\p@
+}
+\renewcommand*\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width 3\unitindent
+ \kern 2.6\p@}\hfil}
+}
+\renewenvironment{thebibliography}[1]
+ {\section*{\refname}%
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\if@titlepage
+\renewcommand*\TitleFont{\rmfamily}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
+\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
+ \futurelet\@tempa\uc@ax}
+\def\uc@ax{%
+ \ifx\@tempa\relax
+ \else
+ \\ \andname \\ \expandafter\uc@authornothanks
+ \fi}
+\def\uc@tx{\ifx\@tempa\relax
+ \else \expandafter\uc@ty \fi}
+\def\uc@ty#1{\thanks{#1}\uc@nothanks}
+\else
+\renewcommand*\maketitle{\par
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}%
+ \leavevmode\hb@xt@.5\unitindent{%
+ \@textsuperscript{\normalfont\@thefnmark}\hfil}##1}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \TitleFont \@title \par}%
+ \vskip 1.5em%
+ {\large \TitleFont
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \TitleFont \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand*\thepart{\@tartibi\c@part}
+\renewcommand*\appendix{\par
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \gdef\thesection{\@harfi\c@section}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `artikel2-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/artikel3-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/artikel3-luapersian.def
new file mode 100644
index 00000000000..2d1df19e64d
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/artikel3-luapersian.def
@@ -0,0 +1,191 @@
+%%
+%% This is file `artikel3-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{artikel3-luapersian.def}[2011/08/01 v0.1 adaptations for artikel3 class]
+\renewcommand*\right@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil}
+}
+\renewenvironment{thebibliography}[1]
+ {\section*{\refname}%
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\if@titlepage
+\renewcommand*\TitleFont{\rmfamily}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
+\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
+ \futurelet\@tempa\uc@ax}
+\def\uc@ax{%
+ \ifx\@tempa\relax
+ \else
+ \\ \andname \\ \expandafter\uc@authornothanks
+ \fi}
+\def\uc@tx{\ifx\@tempa\relax
+ \else \expandafter\uc@ty \fi}
+\def\uc@ty#1{\thanks{#1}\uc@nothanks}
+\else
+\renewcommand*\maketitle{\par
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext{\@xmakefntext{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+\if@titlecentered
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \TitleFont \@title \par}%
+ \vskip 1.5em%
+ {\large \TitleFont
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \TitleFont \@date}%
+ \end{center}%
+ \else
+ {\LARGE \TitleFont \head@style \@title \par} \vskip 1.5em
+ {\large \TitleFont \lineskip .5em \tabcolsep\z@
+ \def\and{%%% \begin{tabular} has already started
+ \end{tabular}\hskip 1em plus .17fil
+ \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi}%% \end{tabular} will come
+ \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi\@author\end{tabular}\par}
+ \vskip 1em {\large \TitleFont \@date}
+ \fi
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand*\thepart{\@tartibi\c@part}
+\renewcommand*\appendix{\par
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \gdef\thesection{\@harfi\c@section}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `artikel3-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/arydshln-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/arydshln-luapersian.def
new file mode 100644
index 00000000000..03808352326
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/arydshln-luapersian.def
@@ -0,0 +1,111 @@
+%%
+%% This is file `arydshln-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{arydshln-luapersian.def}[2011/08/01 v0.1 adaptations for arydshln package]
+\def\endarray{\adl@endarray \egroup \adl@arrayrestore \egroup}
+\def\endtabular{\endarray $\egroup\@RTLtabfalse}
+\expandafter\let\csname endtabular*\endcsname\endtabular
+\let\adl@array\@array
+\def\@array{\adl@everyvbox\everyvbox
+ \everyvbox{\adl@arrayinit \the\adl@everyvbox \everyvbox\adl@everyvbox}%
+ \ifadl@inactive \adl@inactivate \else \adl@activate \fi
+ \let\adl@noalign\noalign
+ \adl@array}
+\ifadl@usingarypkg
+\def\@testpach{\@chclass
+ \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
+ \ifnum \@lastchclass=7 5 \else
+ \ifnum \@lastchclass=8 \tw@ \else
+ \ifnum \@lastchclass=9 \thr@@
+ \else \z@
+ \ifnum \@lastchclass = 10 \else
+ \edef\@nextchar{\expandafter\string\@nextchar}%
+ \@chnum
+ \if \@nextchar c\z@ \else
+ \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
+ \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
+ \z@ \@chclass
+ \if\@nextchar |\@ne \let\@arrayrule\adl@arrayrule \else
+ \if\@nextchar :\@ne \let\@arrayrule\adl@arraydashrule \else
+ \if\@nextchar ;\@ne \let\@arrayrule\adl@argarraydashrule \else
+ \if \@nextchar !6 \else
+ \if \@nextchar @7 \else
+ \if \@nextchar <8 \else
+ \if \@nextchar >9 \else
+ 10
+ \@chnum
+ \if \@nextchar m\thr@@\else
+ \if \@nextchar p4 \else
+ \if \@nextchar b5 \else
+ \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi \fi \fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
+
+\def\@classz{\@classx
+ \@tempcnta \count@
+ \prepnext@tok
+ \@addtopreamble{\ifcase \@chnum
+ \hfil
+ \adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or
+ \hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or
+ \hfil\hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\or
+ \setbox\adl@box\hbox \adl@startmbox{\@nextchar}\insert@column
+ \adl@endmbox\or
+ \setbox\adl@box\vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or
+ \setbox\adl@box\vbox \@startpbox{\@nextchar}\insert@column \@endpbox
+ \fi}\prepnext@tok}
+\def\adl@class@start{4}
+\def\adl@class@iiiorvii{7}
+
+\else
+\def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4\relax \else
+ \ifnum \@lastchclass=\thr@@ 5\relax \else
+ \z@ \if #1c\@chnum \z@ \else
+ \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else
+ \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else
+ \@chclass
+ \if #1|\@ne \let\@arrayrule\adl@arrayrule \else
+ \if #1:\@ne \let\@arrayrule\adl@arraydashrule \else
+ \if #1;\@ne \let\@arrayrule\adl@argarraydashrule \else
+ \if #1@\tw@ \else
+ \if #1p\thr@@ \else \z@ \@preamerr 0\fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi}
+
+\def\@arrayclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or
+ \or \or \@addamp \or
+ \@acolampacol \or \@firstampfalse \@acol \fi
+ \edef\@preamble{\@preamble
+ \ifcase \@chnum
+ \hfil\adl@putlrc{$\relax\@sharp$}\hfil
+ \or \adl@putlrc{$\relax\@sharp$}\hfil
+ \or \hfil\adl@putlrc{$\relax\@sharp$}\fi}}
+\def\@tabclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or
+ \or \or \@addamp \or
+ \@acolampacol \or \@firstampfalse \@acol \fi
+ \edef\@preamble{\@preamble
+ \ifcase \@chnum
+ \hfil\adl@putlrc{\@sharp\unskip}\hfil
+ \or \adl@putlrc{\@sharp\unskip}\hfil
+ \or \hfil\hskip\z@ \adl@putlrc{\@sharp\unskip}\fi}}
+\def\adl@class@start{6}
+\def\adl@class@iiiorvii{3}
+\fi
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `arydshln-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/backref-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/backref-luapersian.def
new file mode 100644
index 00000000000..1055918f59e
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/backref-luapersian.def
@@ -0,0 +1,43 @@
+%%
+%% This is file `backref-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{backref-luapersian.def}[2011/08/01 v0.1 adaptations for backref package]
+\def\backrefpagesname{\if@RTL صفحات\else pages\fi}
+\def\BR@Latincitex[#1]#2{%
+ \BRorg@Latincitex[{#1}]{#2}%
+ \ifBR@verbose
+ \PackageInfo{backref}{back Latin cite \string`#2\string'}%
+ \fi
+ \Hy@backout{#2}%
+}
+\AtBeginDocument{%
+ \@ifundefined{NAT@parse}{%
+ \global\let\BRorg@Latincitex\@Latincitex
+ \global\let\@Latincitex\BR@Latincitex
+ }{%
+ \@ifpackageloaded{hyperref}{}{%
+ \def\hyper@natlinkstart#1{\Hy@backout{#1}}%
+ }%
+ \PackageInfo{backref}{** backref set up for natbib **}%
+ }%
+}%
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `backref-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/boek-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/boek-luapersian.def
new file mode 100644
index 00000000000..aa272262bd9
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/boek-luapersian.def
@@ -0,0 +1,120 @@
+%%
+%% This is file `boek-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{boek-luapersian.def}[2011/08/01 v0.1 adaptations for boek class]
+\renewcommand*\right@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil}
+}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\renewcommand*\thepart{\@tartibi\c@part}
+\renewcommand*\frontmatter{%
+ \cleardoublepage
+ \@mainmatterfalse
+ \pagenumbering{harfi}}
+\renewcommand*\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `boek-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/boek3-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/boek3-luapersian.def
new file mode 100644
index 00000000000..56ea8186a69
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/boek3-luapersian.def
@@ -0,0 +1,120 @@
+%%
+%% This is file `boek3-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{boek3-luapersian.def}[2011/08/01 v0.1 adaptations for boek3 class]
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand*\right@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil}
+}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\renewcommand*\thepart{\@tartibi\c@part}
+\renewcommand*\frontmatter{%
+ \cleardoublepage
+ \@mainmatterfalse
+ \pagenumbering{harfi}}
+\renewcommand*\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `boek3-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/book-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/book-luapersian.def
new file mode 100644
index 00000000000..cc3682dca18
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/book-luapersian.def
@@ -0,0 +1,162 @@
+%%
+%% This is file `book-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{book-luapersian.def}[2011/08/01 v0.1 adaptations for standard book class]
+\@ifclassloaded{bookest}{}{%
+ \if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi}
+\renewcommand\right@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}
+\renewcommand\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil}}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand\frontmatter{%
+ \cleardoublepage
+ \@mainmatterfalse
+ \pagenumbering{harfi}}
+\renewcommand \thepart {\@tartibi\c@part}
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}
+}%end appendix
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `book-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/bookest-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/bookest-luapersian.def
new file mode 100644
index 00000000000..217cdf9c519
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/bookest-luapersian.def
@@ -0,0 +1,63 @@
+%%
+%% This is file `bookest-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{bookest-luapersian.def}[2011/08/01 v0.1 adaptations for bookest class]
+\def\@makechapterhead#1{%
+ \vspace*{20\p@}
+ {\parindent \z@ \raggedright \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \if@mainmatter
+ {\colorA\huge\scshape \@chapapp\space \thechapter}
+ \par\nobreak
+ \vskip 10\p@
+ \fi
+ \fi
+ \interlinepenalty\@M
+ {\colorB\hrule}
+ \vskip 15\p@
+ \if@RTL\begin{flushleft}\else\begin{flushright}\fi
+ {\colorA\Huge \bfseries #1}\par\nobreak
+ \if@RTL\end{flushleft}\else\end{flushright}\fi
+ \vskip 5\p@
+ {\colorB\hrule}
+ \vskip 30\p@
+ }}
+\def\@makeschapterhead#1{%
+ \vspace*{20\p@}
+ {\parindent \z@ \raggedright \normalfont
+ {\colorB\hrule}
+ \vskip 15\p@
+ \begin{center}
+ {\colorA\Huge \bfseries #1}\par\nobreak
+ \end{center}
+ \vskip 5\p@
+ {\colorB\hrule}
+ \vskip 30\p@
+ }}
+\renewcommand \thepart {\@tartibi\c@part}
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}
+}%end appendix
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `bookest-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/breqn-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/breqn-luapersian.def
new file mode 100644
index 00000000000..77e1c979704
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/breqn-luapersian.def
@@ -0,0 +1,78 @@
+%%
+%% This is file `breqn-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{breqn-luapersian.def}[2011/08/01 v0.1 adaptations for breqn package]
+\def\eqnumform#1{(\if@RTL\bgroup\textdir TRT\fi#1\@@italiccorr\if@RTL\egroup\fi)}
+\def\@dmath[#1]{\bodydir TLT\textdir TLT%
+ \everydisplay\expandafter{\the\everydisplay \display@setup}%
+ \if@noskipsec \leavevmode \fi
+ \if@inlabel \leavevmode \global\@inlabelfalse \fi
+ \if\eq@group\else\eq@prelim\fi
+ \setkeys{breqn}{#1}%
+ \the\eqstyle
+ \eq@setnumber
+ \begingroup
+ \eq@setup@a
+ \eq@startup
+}
+\def\@dgroup[#1]{\bodydir TLT\textdir TLT%
+ \let\eq@group\@True \global\let\eq@GRP@first@dmath\@True
+ \global\GRP@queue\@emptytoks \global\setbox\GRP@box\box\voidb@x
+ \global\let\GRP@label\@empty
+ \global\grp@wdL\z@\global\grp@wdR\z@\global\grp@wdT\z@
+ \global\grp@linewidth\z@\global\grp@wdNum\z@
+ \global\let\grp@eqs@numbered\@False
+ \global\let\grp@aligned\@True
+ \global\let\grp@shiftnumber\@False
+ \eq@prelim
+ \setkeys{breqn}{#1}%
+ \if\grp@hasNumber \grp@setnumber \fi
+}
+\def\@dseries[#1]{\bodydir TLT\textdir TLT%
+ \let\display@setup\dseries@display@setup
+ % Question: should this be the default for dseries???
+ \global\eq@wdCond\z@
+ \@dmath[layout={M},#1]%
+ \mathsurround\z@\@@math \penalty\@Mi
+ \let\endmath\ends@math
+ \def\premath{%
+ \ifdim\lastskip<.3em \unskip
+ \else\ifnum\lastpenalty<\@M \dquad\fi\fi
+}%
+ \def\postmath{\unpenalty\eq@addpunct \penalty\intermath@penalty \dquad \@ignoretrue}%
+\ignorespaces
+}
+\renewenvironment{dsuspend}{%
+ \global\setbox\EQ@box\vbox\bgroup\if@RTL\pardir TRT\textdir TRT\fi \@parboxrestore
+ \parshape 1 \displayindent \displaywidth\relax
+ \hsize=\columnwidth \noindent\ignorespaces
+}{%
+ \par\egroup
+ \global\setbox\GRP@box\vbox{%
+ \hbox{\copy\EQ@box\vtop{\unvbox\EQ@box}}%
+ \unvbox\GRP@box
+ }%
+ \global\GRP@queue\@xp{\the\GRP@queue
+ \@elt{\let\eq@isIntertext\@True}%
+ }%
+}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `breqn-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/color-localise-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/color-localise-luapersian.def
new file mode 100644
index 00000000000..305b4eee45b
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/color-localise-luapersian.def
@@ -0,0 +1,32 @@
+%%
+%% This is file `color-localise-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\آماده‌سازی‌پرونده{color-localise-luapersian.def}[2011/08/01 v0.1 localising color package]
+\تعریف‌رنگ{سیاه}{rgb}{0,0,0}
+\تعریف‌رنگ{سفید}{rgb}{1,1,1}
+\تعریف‌رنگ{قرمز}{rgb}{1,0,0}
+\تعریف‌رنگ{سبز}{rgb}{0,1,0}
+\تعریف‌رنگ{آبی}{rgb}{0,0,1}
+\تعریف‌رنگ{آسمانی}{cmyk}{1,0,0,0}
+\تعریف‌رنگ{بنفش}{cmyk}{0,1,0,0}
+\تعریف‌رنگ{زرد}{cmyk}{0,0,1,0}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `color-localise-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/commands-ltx-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/commands-ltx-luapersian.def
new file mode 100644
index 00000000000..a40d87508d9
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/commands-ltx-luapersian.def
@@ -0,0 +1,967 @@
+%%
+%% This is file `commands-ltx-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{commands-ltx-luapersian.def}[2011/08/01 v0.1 Persian localisation of LaTeX2e commands]
+\eqcommand{شمع‌جدول}{@arstrut}
+\eqcommand{فوق}{above}
+\eqcommand{فاصله‌کوتاه‌بالای‌نمایش}{abovedisplayshortskip}
+\eqcommand{فاصله‌بالای‌نمایش}{abovedisplayskip}
+\eqcommand{عنوان‌چکیده}{abstractname}
+\eqcommand{اکسنت}{accent}
+\eqcommand{فعال}{active}
+\eqcommand{بیفزاسطرفهرست}{addcontentsline}
+\eqcommand{اضافه‌برجریمه}{addpenalty}
+\eqcommand{نشانی}{address}
+\eqcommand{بیفزابه‌فهرست}{addtocontents}
+\eqcommand{اضافه‌برشمارنده}{addtocounter}
+\eqcommand{اضافه‌بربعد}{addtolength}
+\eqcommand{بیفزافضای‌و}{addvspace}
+\eqcommand{تنظیم‌بدنمایی}{adjdemerits}
+\eqcommand{بیفزابر}{advance}
+\eqcommand{بعدازانتساب}{afterassignment}
+\eqcommand{بعدازگروه}{aftergroup}
+\eqcommand{الف}{aleph}
+\eqcommand{خصیصه‌مستعارقلم}{aliasfontfeature}
+\eqcommand{انتخاب‌خصیصه‌مستعارقلم}{aliasfontfeatureoption}
+\eqcommand{شکستنی}{allowbreak}
+\eqcommand{تخصی@}{alloc@}
+\eqcommand{تخصیص‌یافته}{allocationnumber}
+\eqcommand{شکست‌نمایش‌مجاز}{allowdisplaybreaks}
+\eqcommand{حروف‌بزرگ}{Alph}
+\eqcommand{حروف‌کوچک}{alph}
+\eqcommand{نام‌همچنین}{alsoname}
+\eqcommand{و}{and}
+\eqcommand{زاویه}{angle}
+\eqcommand{عنوان‌پیوست}{appendixname}
+\eqcommand{تقریب}{approx}
+\eqcommand{عربی}{arabic}
+\eqcommand{آرگ}{arg}
+\eqcommand{رنگ‌خط‌جدول}{arrayrulecolor}
+\eqcommand{فاصله‌ستونهای‌آرایه}{arraycolsep}
+\eqcommand{ضخامت‌خط‌جدول}{arrayrulewidth}
+\eqcommand{کشیدگی‌آرایه}{arraystretch}
+\eqcommand{درآغازنوشتار}{AtBeginDocument}
+\eqcommand{درپایان‌نوشتار}{AtEndDocument}
+\eqcommand{درانتهای‌طبقه}{AtEndOfClass}
+\eqcommand{درانتهای‌سبک}{AtEndOfPackage}
+\eqcommand{نویسنده}{author}
+\eqcommand{مطلب‌پشت}{backmatter}
+\eqcommand{شکاف‌پشت}{backslash}
+\eqcommand{بدنمایی}{badness}
+\eqcommand{میله}{bar}
+\eqcommand{فاصله‌کرسی}{baselineskip}
+\eqcommand{کشش‌فاصله‌کرسی}{baselinestretch}
+\eqcommand{پردازش‌دسته‌ای}{batchmode}
+\eqcommand{شروع}{begin}
+\eqcommand{شروع‌چپ}{beginL}
+\eqcommand{شروع‌راست}{beginR}
+\eqcommand{شروع‌گروه}{begingroup}
+\eqcommand{فاصله‌کوتاه‌پایین‌نمایش}{belowdisplayshortskip}
+\eqcommand{فاصله‌پایین‌نمایش}{belowdisplayskip}
+\eqcommand{سیاه}{bf}
+\eqcommand{پیش‌فرض‌سیاه}{bfdefault}
+\eqcommand{شمایل‌سیاه}{bfseries}
+\eqcommand{شرگروه}{bgroup}
+\eqcommand{مرجوع}{bibitem}
+\eqcommand{کتاب‌نامه}{bibliography}
+\eqcommand{سبک‌کتاب‌نامه}{bibliographystyle}
+\eqcommand{عنوان‌کتاب‌نامه}{bibname}
+\eqcommand{پرش‌بلند}{bigskip}
+\eqcommand{مقدارپرش‌بلند}{bigskipamount}
+\eqcommand{خط‌پایین‌شناور}{botfigrule}
+\eqcommand{علامت‌پایین}{botmark}
+\eqcommand{کادرتاپایین}{bottompageskip}
+\eqcommand{نسبت‌پایین}{bottomfraction}
+\eqcommand{کادر}{box}
+\eqcommand{حداکثرعمق‌کادر}{boxmaxdepth}
+\eqcommand{بشکن}{break}
+\eqcommand{گلوله}{bullet}
+\eqcommand{دوپن@پنج}{@cclv}
+\eqcommand{دوپن@شش}{@cclvi}
+\eqcommand{شرح}{caption}
+\eqcommand{کدرده}{catcode}
+\eqcommand{رونوشت}{cc}
+\eqcommand{نام‌رونوشت}{ccname}
+\eqcommand{نقطه‌وسط}{cdot}
+\eqcommand{نقاط‌وسط}{cdots}
+\eqcommand{تنظیم‌ازوسط}{centering}
+\eqcommand{خط‌وسط}{centerline}
+\eqcommand{چک@ن}{ch@ck}
+\eqcommand{فصل}{chapter}
+\eqcommand{عنوان‌فصل}{chaptername}
+\eqcommand{نویسه}{char}
+\eqcommand{تعریف‌نویسه}{chardef}
+\eqcommand{برسی‌فرمان}{CheckCommand}
+\eqcommand{مرجع}{cite}
+\eqcommand{خطای‌طبقه}{ClassError}
+\eqcommand{اطلاع‌طبقه}{ClassInfo}
+\eqcommand{هشدارطبقه}{ClassWarning}
+\eqcommand{هشدارطبقه‌بی‌سطر}{ClassWarningNoLine}
+\eqcommand{نشانگرمرکزی}{cleaders}
+\eqcommand{دوصفحه‌پاک}{cleardoublepage}
+\eqcommand{صفحه‌پاک}{clearpage}
+\eqcommand{خط‌ناپر}{cline}
+\eqcommand{ببندورودی}{closein}
+\eqcommand{ببندخروجی}{closeout}
+\eqcommand{بستن}{closing}
+\eqcommand{جریمه‌سربند}{clubpenalty}
+\eqcommand{خاج}{clubsuit}
+\eqcommand{علامت‌پایین‌ستون‌اول}{colbotmark}
+\eqcommand{علامت‌اول‌ستون‌اول}{colfirstmark}
+\eqcommand{رنگ}{color}
+\eqcommand{کادررنگ}{colorbox}
+\eqcommand{علامت‌بالای‌ستون‌اول}{coltopmark}
+\eqcommand{رنگ‌ستون}{columncolor}
+\eqcommand{بین‌ستون}{columnsep}
+\eqcommand{پهنای‌ستون}{columnwidth}
+\eqcommand{خط‌بین‌ستون}{columnseprule}
+\eqcommand{سطرفهرست}{contentsline}
+\eqcommand{عنوان‌فهرست‌مطالب}{contentsname}
+\eqcommand{کپی}{copy}
+\eqcommand{حق‌تالیف}{copyright}
+\eqcommand{شمار}{count}
+\eqcommand{شمار@}{count@}
+\eqcommand{تعریف‌شمار}{countdef}
+\eqcommand{سخ}{cr}
+\eqcommand{سخ‌سخ}{crcr}
+\eqcommand{نام‌فرمان}{csname}
+\eqcommand{گزینه‌جاری}{CurrentOption}
+\eqcommand{کادربینابین}{dashbox}
+\eqcommand{بینابین‌ع}{dashv}
+\eqcommand{@تاریخ}{@date}
+\eqcommand{تاریخ}{date}
+\eqcommand{روز}{day}
+\eqcommand{خط‌پایین‌شناورپهن}{dblbotfigrule}
+\eqcommand{نسبت‌پهن‌پایین}{dblbottomfraction}
+\eqcommand{خط‌بالای‌شناورپهن}{dblfigrule}
+\eqcommand{نسبت‌صفحه‌شناورپهن}{dblfloatpagefraction}
+\eqcommand{فاصله‌بین‌شناورپهن}{dblfloatsep}
+\eqcommand{کدمکان‌غیرهمانطور}{dblfntlocatecode}
+\eqcommand{فاصله‌متن‌وشناورپهن}{dbltextfloatsep}
+\eqcommand{نسبت‌پهن‌بالا}{dbltopfraction}
+\eqcommand{اعلان‌قلم‌ثابت}{DeclareFixedFont}
+\eqcommand{اعلان‌پسوندگرافیک}{DeclareGraphicsExtensions}
+\eqcommand{اعلان‌دستورگرافیک}{DeclareGraphicsRule}
+\eqcommand{اعلان‌فرمان‌قلم‌قدیمی}{DeclareOldFontCommand}
+\eqcommand{اعلان‌گزینه}{DeclareOption}
+\eqcommand{اعلان‌فرمان‌قوی}{DeclareRobustCommand}
+\eqcommand{اعلان‌قلم‌علائم}{DeclareSymbolFont}
+\eqcommand{دوربسته}{deadcycles}
+\eqcommand{تر}{def}
+\eqcommand{تعریف‌رنگ}{definecolor}
+\eqcommand{درجه}{deg}
+\eqcommand{کدجداساز}{delcode}
+\eqcommand{جداساز}{delimiter}
+\eqcommand{ضریب‌جداساز}{delimiterfactor}
+\eqcommand{گودی}{depth}
+\eqcommand{خشت}{diamondsuit}
+\eqcommand{ابعاد}{dim}
+\eqcommand{بعد}{dimen}
+\eqcommand{بعد@}{dimen@}
+\eqcommand{بعد@یک}{dimen@i}
+\eqcommand{بعد@دو}{dimen@ii}
+\eqcommand{تعریف‌بعد}{dimendef}
+\eqcommand{تیره‌گذاری}{discretionary}
+\eqcommand{شکست‌نمایش}{displaybreak}
+\eqcommand{تورفتگی‌نمایش}{displayindent}
+\eqcommand{سبک‌نمایش}{displaystyle}
+\eqcommand{عرض‌نمایش}{displaywidth}
+\eqcommand{تقسیم}{divide}
+\eqcommand{طبقه‌نوشتار}{documentclass}
+\eqcommand{کن}{do}
+\eqcommand{تعویض‌کدها}{dospecials}
+\eqcommand{نقطه}{dot}
+\eqcommand{نقطه‌مساوی}{doteq}
+\eqcommand{پرنقطه‌ا}{dotfill}
+\eqcommand{نقاط}{dots}
+\eqcommand{کادردولا}{doublebox}
+\eqcommand{رنگ‌فاصله‌دوخط‌جدول}{doublerulesepcolor}
+\eqcommand{فاصله‌بین‌دوخط}{doublerulesep}
+\eqcommand{فلش‌پایین}{downarrow}
+\eqcommand{عمق}{dp}
+\eqcommand{تخلیه}{dump}
+\eqcommand{ترگ}{edef}
+\eqcommand{پاگروه}{egroup}
+\eqcommand{انتهای‌فاصله}{eject}
+\eqcommand{گرنه}{else}
+\eqcommand{تاکید}{em}
+\eqcommand{کشش‌لاجرم}{emergencystretch}
+\eqcommand{موکد}{emph}
+\eqcommand{@پوچ}{@empty}
+\eqcommand{پوچ}{empty}
+\eqcommand{مجموعه‌پوچ}{emptyset}
+\eqcommand{پایان}{end}
+\eqcommand{پایان‌چپ}{endL}
+\eqcommand{پایان‌راست}{endR}
+\eqcommand{پایان‌نام‌فرمان}{endcsname}
+\eqcommand{پایان‌اولین‌سر}{endfirsthead}
+\eqcommand{پایان‌پا}{endfoot}
+\eqcommand{ته‌بند}{endgraf}
+\eqcommand{پایان‌گروه}{endgroup}
+\eqcommand{پایان‌سر}{endhead}
+\eqcommand{پایان‌ورودی}{endinput}
+\eqcommand{پایان‌آخرین‌پا}{endlastfoot}
+\eqcommand{گسترش‌این‌صفحه}{enlargethispage}
+\eqcommand{ته‌سطر}{endline}
+\eqcommand{نویسه‌ته‌سطر}{endlinechar}
+\eqcommand{ان‌دوری}{enspace}
+\eqcommand{ان‌فاصله}{enskip}
+\eqcommand{فرمان‌جانشین}{eqcommand}
+\eqcommand{محیط‌جانشین}{eqenvironment}
+\eqcommand{ارجاع‌فر}{eqref}
+\eqcommand{کمک‌خطا}{errhelp}
+\eqcommand{پیام‌خطا}{errmessage}
+\eqcommand{سطرمتن‌خطا}{errorcontextlines}
+\eqcommand{پردازش‌توقف‌خطا}{errorstopmode}
+\eqcommand{نویسه‌ویژه}{escapechar}
+\eqcommand{یورو}{euro}
+\eqcommand{حاشیه‌زوج}{evensidemargin}
+\eqcommand{هرسخ}{everycr}
+\eqcommand{هرنمایش}{everydisplay}
+\eqcommand{هرکادرا}{everyhbox}
+\eqcommand{هرکار}{everyjob}
+\eqcommand{هرریاضی}{everymath}
+\eqcommand{هربند}{everypar}
+\eqcommand{هرکادرو}{everyvbox}
+\eqcommand{اجرای‌گزینه‌ها}{ExecuteOptions}
+\eqcommand{جریمه‌اضافی‌تیره‌بندی}{exhyphenpenalty}
+\eqcommand{بگسترپس‌از}{expandafter}
+\eqcommand{فاصله‌اضافی‌بین‌ستونها}{extracolsep}
+\eqcommand{@اولی‌ازیک}{@firstofone}
+\eqcommand{@اولی‌ازدو}{@firstoftwo}
+\eqcommand{چ@ار}{f@ur}
+\eqcommand{خانواده}{fam}
+\eqcommand{صفحه‌تجملی}{fancypage}
+\eqcommand{کادربا}{fbox}
+\eqcommand{ضخامت‌کادربا}{fboxrule}
+\eqcommand{حاشیه‌کادربا}{fboxsep}
+\eqcommand{کادربارنگ}{fcolorbox}
+\eqcommand{رگ}{fi}
+\eqcommand{عنوان‌شکل}{figurename}
+\eqcommand{پرشکن}{filbreak}
+\eqcommand{پر}{fill}
+\eqcommand{علامت‌اول}{firstmark}
+\eqcommand{پهن}{flat}
+\eqcommand{نسبت‌صفحه‌شناور}{floatpagefraction}
+\eqcommand{جریمه‌شناور}{floatingpenalty}
+\eqcommand{فاصله‌بین‌شناور}{floatsep}
+\eqcommand{تنظیم‌ازپایین}{flushbottom}
+\eqcommand{شکلبندی}{fmtname}
+\eqcommand{رده‌شکلبندی}{fmtversion}
+\eqcommand{نشانه}{fnsymbol}
+\eqcommand{قلم}{font}
+\eqcommand{بعدقلم}{fontdimen}
+\eqcommand{رمزینه‌قلم}{fontencoding}
+\eqcommand{فامیل‌قلم}{fontfamily}
+\eqcommand{نام‌قلم}{fontname}
+\eqcommand{شمایل‌قلم}{fontseries}
+\eqcommand{شکل‌قلم}{fontshape}
+\eqcommand{اندازه‌قلم}{fontsize}
+\eqcommand{بلندای‌پایین‌صفحه}{footheight}
+\eqcommand{درج‌زیرنویس}{footins}
+\eqcommand{زیرنویس}{footnote}
+\eqcommand{علامت‌زیرنویس}{footnotemark}
+\eqcommand{خط‌زیرنویس}{footnoterule}
+\eqcommand{فاصله‌تازیرنویس}{footnotesep}
+\eqcommand{اندازه‌زیرنویس}{footnotesize}
+\eqcommand{متن‌زیرنویس}{footnotetext}
+\eqcommand{فاصله‌تاپایین‌صفحه}{footskip}
+\eqcommand{فریم}{frame}
+\eqcommand{کادرباخط}{framebox}
+\eqcommand{فواصل‌یکنواخت‌لاتین}{frenchspacing}
+\eqcommand{مطلب‌پیش}{frontmatter}
+\eqcommand{بعدبگذار}{futurelet}
+\eqcommand{@خورحریصانه}{@gobble}
+\eqcommand{@خورحریصانه‌دو}{@gobbletwo}
+\eqcommand{@خورحریصانه‌چهار}{@gobblefour}
+\eqcommand{@عاقت‌آ}{@gtempa}
+\eqcommand{@عاقت‌ب}{@gtempb}
+\eqcommand{ترع}{gdef}
+\eqcommand{الگوی‌اطلاع}{GenericInfo}
+\eqcommand{الگوی‌هشدار}{GenericWarning}
+\eqcommand{الگوی‌خطا}{GenericError}
+\eqcommand{عام}{global}
+\eqcommand{تعاریف‌عام}{globaldefs}
+\eqcommand{لغت‌نامه}{glossary}
+\eqcommand{فقره‌فرهنگ}{glossaryentry}
+\eqcommand{خوش‌شکن}{goodbreak}
+\eqcommand{کاغذگراف}{graphpaper}
+\eqcommand{گیومه‌چپ}{guillemotleft}
+\eqcommand{گیومه‌راست}{guillemotright}
+\eqcommand{گیومه‌تکی‌چپ}{guilsinglleft}
+\eqcommand{گیومه‌تکی‌راست}{guilsinglright}
+\eqcommand{ردیف‌ا}{halign}
+\eqcommand{بروتو}{hang}
+\eqcommand{بعدازسطر}{hangafter}
+\eqcommand{تورفتگی‌ثابت}{hangindent}
+\eqcommand{بدنمایی‌ا}{hbadness}
+\eqcommand{کادرا}{hbox}
+\eqcommand{بلندای‌سرصفحه}{headheight}
+\eqcommand{فاصله‌ازسرصفحه}{headsep}
+\eqcommand{سربه‌نام}{headtoname}
+\eqcommand{دل}{heartsuit}
+\eqcommand{بلندا}{height}
+\eqcommand{پرا}{hfil}
+\eqcommand{پررا}{hfill}
+\eqcommand{رفع‌پرا}{hfilneg}
+\eqcommand{پرزافقی}{hfuzz}
+\eqcommand{فاصله‌مخفی}{hideskip}
+\eqcommand{عرض‌پنهان}{hidewidth}
+\eqcommand{خط‌پر}{hline}
+\eqcommand{حاشیه‌ا}{hoffset}
+\eqcommand{حفظ‌درج}{holdinginserts}
+\eqcommand{فاصله‌اگرد}{hrboxsep}
+\eqcommand{خط‌ا}{hrule}
+\eqcommand{پرخط‌ا}{hrulefill}
+\eqcommand{طول‌سطر}{hsize}
+\eqcommand{فاصله‌ا}{hskip}
+\eqcommand{فضای‌ا}{hspace}
+\eqcommand{هردوا}{hss}
+\eqcommand{ارتفاع}{ht}
+\eqcommand{بزرگ}{huge}
+\eqcommand{بزرگ‌تر}{Huge}
+\eqcommand{ابرپیوند}{hyperlink}
+\eqcommand{بارگذاری‌ابر}{hypersetup}
+\eqcommand{هدف‌ابر}{hypertarget}
+\eqcommand{تیره‌بندی}{hyphenation}
+\eqcommand{نویسه‌تیره}{hyphenchar}
+\eqcommand{جریمه‌تیره‌بندی}{hyphenpenalty}
+\eqcommand{@گرکلاس‌فراخوانی‌شده}{@ifclassloaded}
+\eqcommand{@گرترشدنی}{@ifdefinable}
+\eqcommand{@گرنویسه‌بعدی}{@ifnextchar}
+\eqcommand{@گرسبک‌فراخوانی‌شده}{@ifpackageloaded}
+\eqcommand{@گرستاره}{@ifstar}
+\eqcommand{@گرتعریف‌نشده}{@ifundefined}
+\eqcommand{گر}{if}
+\eqcommand{گر@سواقت‌آ}{if@tempswa}
+\eqcommand{گرانواع}{ifcase}
+\eqcommand{گررده}{ifcat}
+\eqcommand{گرتعریف‌شده}{ifdefined}
+\eqcommand{گربعد}{ifdim}
+\eqcommand{گرته‌پرونده}{ifeof}
+\eqcommand{گرر}{iff}
+\eqcommand{گرنادرست}{iffalse}
+\eqcommand{گرپرونده‌موجود}{IfFileExists}
+\eqcommand{گرکادرا}{ifhbox}
+\eqcommand{گرحالت‌ا}{ifhmode}
+\eqcommand{گردرونی}{ifinner}
+\eqcommand{گرحالت‌ریاضی}{ifmmode}
+\eqcommand{گرعدد}{ifnum}
+\eqcommand{گرفرد}{ifodd}
+\eqcommand{گرآنگاه‌دیگر}{ifthenelse}
+\eqcommand{گردرست}{iftrue}
+\eqcommand{گرکادرو}{ifvbox}
+\eqcommand{گرحالت‌و}{ifvmode}
+\eqcommand{گرتهی}{ifvoid}
+\eqcommand{گرتام}{ifx}
+\eqcommand{فاصله‌خالی‌راندیده‌بگیر}{ignorespaces}
+\eqcommand{فوری}{immediate}
+\eqcommand{شامل}{include}
+\eqcommand{درج‌تصویر}{includegraphics}
+\eqcommand{مشمولین}{includeonly}
+\eqcommand{تورفتگی}{indent}
+\eqcommand{درنمایه}{index}
+\eqcommand{استعلام}{indexentry}
+\eqcommand{عنوان‌نمایه}{indexname}
+\eqcommand{فاصله‌رهنما}{indexspace}
+\eqcommand{ورودی}{input}
+\eqcommand{ورودپرونده‌گرموجود}{InputIfFileExists}
+\eqcommand{شماره‌سطرورودی}{inputlineno}
+\eqcommand{درج}{insert}
+\eqcommand{جریمه‌درج}{insertpenalties}
+\eqcommand{جریمه‌بین‌سطرهای‌زیرنویس}{interfootnotelinepenalty}
+\eqcommand{جریمه‌بین‌سطرهای‌نمایش}{interdisplaylinepenalty}
+\eqcommand{جریمه‌بین‌سطرها}{interlinepenalty}
+\eqcommand{متن‌داخلی}{intertext}
+\eqcommand{فاصله‌شناوردرمتن}{intertextsep}
+\eqcommand{مخفی}{invisible}
+\eqcommand{پیش‌فرض‌ای}{itdefault}
+\eqcommand{شکل‌ایتالیک}{itshape}
+\eqcommand{فقره}{item}
+\eqcommand{تورفتگی‌فقره}{itemindent}
+\eqcommand{فاصله‌فقره}{itemsep}
+\eqcommand{تکرارکن}{iterate}
+\eqcommand{شکل‌ای}{itshape}
+\eqcommand{نام‌کار}{jobname}
+\eqcommand{قلپ}{jot}
+\eqcommand{دوری}{kern}
+\eqcommand{الگو}{kill}
+\eqcommand{برچسب}{label}
+\eqcommand{برچسب‌شمارش‌یک}{labelenumi}
+\eqcommand{برچسب‌شمارش‌دو}{labelenumii}
+\eqcommand{برچسب‌شمارش‌سه}{labelenumiii}
+\eqcommand{برچسب‌شمارش‌چهار}{labelenumiv}
+\eqcommand{برچسب‌فقره‌یک}{labelitemi}
+\eqcommand{برچسب‌فقره‌دو}{labelitemii}
+\eqcommand{برچسب‌فقره‌سه}{labelitemiii}
+\eqcommand{برچسب‌فقره‌چهار}{labelitemiv}
+\eqcommand{فاصله‌ازبرچسب}{labelsep}
+\eqcommand{پهنای‌برچسب}{labelwidth}
+\eqcommand{زبان}{language}
+\eqcommand{درشت}{large}
+\eqcommand{درشت‌تر}{Large}
+\eqcommand{درشت‌درشت}{LARGE}
+\eqcommand{آخرین‌کادر}{lastbox}
+\eqcommand{آخرین‌دوری}{lastkern}
+\eqcommand{آخرین‌جریمه}{lastpenalty}
+\eqcommand{آخرین‌فاصله}{lastskip}
+\eqcommand{لاتک}{LaTeX}
+\eqcommand{لاتک‌ای}{LaTeXe}
+\eqcommand{کدکوچک}{lccode}
+\eqcommand{نقاط‌خ}{ldots}
+\eqcommand{نشانگر}{leaders}
+\eqcommand{ترک‌و}{leavevmode}
+\eqcommand{چپ}{left}
+\eqcommand{حاشیه‌چپ}{leftmargin}
+\eqcommand{حاشیه‌چپ‌یک}{leftmargini}
+\eqcommand{حاشیه‌چپ‌دو}{leftmarginii}
+\eqcommand{حاشیه‌چپ‌سه}{leftmarginiii}
+\eqcommand{حاشیه‌چپ‌چهار}{leftmarginiv}
+\eqcommand{حاشیه‌چپ‌پنج}{leftmarginv}
+\eqcommand{حاشیه‌چپ‌شش}{leftmarginvi}
+\eqcommand{علامت‌چپ}{leftmark}
+\eqcommand{کادرتاچپ}{leftpageskip}
+\eqcommand{فاصله‌ابتدای‌سطر}{leftskip}
+\eqcommand{بگذار}{let}
+\eqcommand{سطر}{line}
+\eqcommand{سطرشکن}{linebreak}
+\eqcommand{جریمه‌سطر}{linepenalty}
+\eqcommand{فاصله‌سطرها}{lineskip}
+\eqcommand{حدفاصله‌سطر}{lineskiplimit}
+\eqcommand{کشش‌فاصله‌سطر}{linespread}
+\eqcommand{ضخامت‌خط}{linethickness}
+\eqcommand{پهنای‌سطر}{linewidth}
+\eqcommand{عنوان‌فهرست‌اشکال}{listfigurename}
+\eqcommand{لیست‌پرونده‌ها}{listfiles}
+\eqcommand{فهرست‌اشکال}{listoffigures}
+\eqcommand{فهرست‌جداول}{listoftables}
+\eqcommand{تورفتگی‌بندلیست}{listparindent}
+\eqcommand{عنوان‌فهرست‌جداول}{listtablename}
+\eqcommand{بارکن‌طبقه}{LoadClass}
+\eqcommand{بارکن‌طبقه‌باگزینه}{LoadClassWithOptions}
+\eqcommand{مکان}{location}
+\eqcommand{بلند}{long}
+\eqcommand{حلقه}{loop}
+\eqcommand{گسیختگی}{looseness}
+\eqcommand{انتقال‌بپایین}{lower}
+\eqcommand{@دیگر}{@makeother}
+\eqcommand{@زار}{@m}
+\eqcommand{ده@زار}{@M}
+\eqcommand{ده@زاریک}{@Mi}
+\eqcommand{ده@زاردو}{@Mii}
+\eqcommand{ده@زارسه}{@Miii}
+\eqcommand{ده@زارچهار}{@Miv}
+\eqcommand{بیس@زار}{@MM}
+\eqcommand{من@ا}{m@ne}
+\eqcommand{بزرگ‌نمایی}{mag}
+\eqcommand{گام}{magstep}
+\eqcommand{نیم‌گام}{magstephalf}
+\eqcommand{مطلب‌اصلی}{mainmatter}
+\eqcommand{ات‌حرف}{makeatletter}
+\eqcommand{ات‌دیگر}{makeatother}
+\eqcommand{کادربی‌خط}{makebox}
+\eqcommand{ساخت‌فرهنگ}{makeglossary}
+\eqcommand{تهیه‌نمایه}{makeindex}
+\eqcommand{ساخت‌برچسب}{makelabel}
+\eqcommand{ساخت‌برچسب‌ها}{makelabels}
+\eqcommand{ساخت‌حروف‌کوچک}{MakeLowercase}
+\eqcommand{عنوان‌ساز}{maketitle}
+\eqcommand{ساخت‌حروف‌بزرگ}{MakeUppercase}
+\eqcommand{درحاشیه}{marginpar}
+\eqcommand{فاصله‌دوحاشیه}{marginparpush}
+\eqcommand{فاصله‌تاحاشیه}{marginparsep}
+\eqcommand{پهنای‌حاشیه}{marginparwidth}
+\eqcommand{علامت}{mark}
+\eqcommand{علامت‌دردوطرف}{markboth}
+\eqcommand{علامت‌درراست}{markright}
+\eqcommand{اعراب‌ریاضی}{mathaccent}
+\eqcommand{نویسه‌ریاضی}{mathchar}
+\eqcommand{تعریف‌نویسه‌ریاضی}{mathchardef}
+\eqcommand{کدریاضی}{mathcode}
+\eqcommand{ریاضی‌رومن}{mathrm}
+\eqcommand{حداکثرتکرار}{maxdeadcycles}
+\eqcommand{حداکثرعمق‌صفحه}{maxdepth}
+\eqcommand{بعدبیشین}{maxdimen}
+\eqcommand{کادربی}{mbox}
+\eqcommand{شمایل‌نازک}{mdseries}
+\eqcommand{معنا}{meaning}
+\eqcommand{نازک}{mediumseries}
+\eqcommand{فاصله‌متوسط‌ریاضی}{medmuskip}
+\eqcommand{پرش‌متوسط}{medskip}
+\eqcommand{مقدارپرش‌متوسط}{medskipamount}
+\eqcommand{فضای‌متوسط}{medspace}
+\eqcommand{پیام}{message}
+\eqcommand{پیام‌شکن}{MessageBreak}
+\eqcommand{حداقل‌فاصله‌ردیف}{minrowclearance}
+\eqcommand{دوری‌ریاضی}{mkern}
+\eqcommand{ماه}{month}
+\eqcommand{انتقال‌بچپ}{moveleft}
+\eqcommand{انتقال‌براست}{moveright}
+\eqcommand{فاصله‌ریاضی}{mskip}
+\eqcommand{ری@ضی}{m@th}
+\eqcommand{چندستونی}{multicolumn}
+\eqcommand{ضرب}{multiply}
+\eqcommand{چندادغام}{multispan}
+\eqcommand{میوفاصله}{muskip}
+\eqcommand{تعریف‌میوفاصله}{muskipdef}
+\eqcommand{@ترنام}{@namedef}
+\eqcommand{@کاربردنام}{@nameuse}
+\eqcommand{یک@}{@ne}
+\eqcommand{نام}{name}
+\eqcommand{طبیعی}{natural}
+\eqcommand{باریک}{nearrow}
+\eqcommand{باریکتر}{nearrower}
+\eqcommand{شکلبندی‌موردنیاز}{NeedsTeXFormat}
+\eqcommand{منفی}{neg}
+\eqcommand{فضای‌متوسط‌منفی}{negmedspace}
+\eqcommand{فضای‌ضخیم‌منفی}{negthickspace}
+\eqcommand{دوری‌کوچک‌منفی}{negthinspace}
+\eqcommand{بولی‌نو}{newboolean}
+\eqcommand{کادرجدید}{newbox}
+\eqcommand{فرمان‌نو}{newcommand}
+\eqcommand{شمارجدید}{newcount}
+\eqcommand{شمارنده‌جدید}{newcounter}
+\eqcommand{بعدجدید}{newdimen}
+\eqcommand{محیط‌نو}{newenvironment}
+\eqcommand{خانواده‌جدید}{newfam}
+\eqcommand{قلم‌نو}{newfont}
+\eqcommand{کمک‌جدید}{newhelp}
+\eqcommand{درج‌جدید}{newinsert}
+\eqcommand{برچسب‌جدید}{newlabel}
+\eqcommand{تعریف‌بعدجدید}{newlength}
+\eqcommand{سطرجدید}{newline}
+\eqcommand{نویسه‌سطرجدید}{newlinechar}
+\eqcommand{میوفاصله‌جدید}{newmuskip}
+\eqcommand{صفحه‌جدید}{newpage}
+\eqcommand{بخوان‌جدید}{newread}
+\eqcommand{تعریف‌کادرجدید}{newsavebox}
+\eqcommand{فاصله‌جدید}{newskip}
+\eqcommand{قضیه‌جدید}{newtheorem}
+\eqcommand{جزءجدید}{newtoks}
+\eqcommand{بنویس‌جدید}{newwrite}
+\eqcommand{بی‌ردیف}{noalign}
+\eqcommand{نشکن}{nobreak}
+\eqcommand{فاصله‌نشکستنی}{nobreakspace}
+\eqcommand{بدون‌سند}{nocite}
+\eqcommand{نگستر}{noexpand}
+\eqcommand{بدون‌پرونده}{nofiles}
+\eqcommand{بدون‌تورفتگی}{noindent}
+\eqcommand{بی‌فاصله‌سطر}{nointerlineskip}
+\eqcommand{بدون‌حد}{nolimits}
+\eqcommand{سطرنشکن}{nolinebreak}
+\eqcommand{پردازش‌بدون‌توقف}{nonstopmode}
+\eqcommand{فواصل‌متعارف‌لاتین}{nonfrenchspacing}
+\eqcommand{بدون‌شماره}{nonumber}
+\eqcommand{صفحه‌نشکن}{nopagebreak}
+\eqcommand{کرسیهای‌متعارف}{normalbaselines}
+\eqcommand{فاصله‌کرسی‌متعارف}{normalbaselineskip}
+\eqcommand{رنگ‌عادی}{normalcolor}
+\eqcommand{قلم‌عادی}{normalfont}
+\eqcommand{فاصله‌سطرمتعارف}{normallineskip}
+\eqcommand{حدفاصله‌سطرمتعارف}{normallineskiplimit}
+\eqcommand{درحاشیه‌عادی}{normalmarginpar}
+\eqcommand{اندازه‌عادی}{normalsize}
+\eqcommand{بدون‌اتیکت}{notag}
+\eqcommand{نول}{null}
+\eqcommand{قلم‌تهی}{nullfont}
+\eqcommand{عدد}{number}
+\eqcommand{سطرعددی}{numberline}
+\eqcommand{شماره‌مطابق}{numberwithin}
+\eqcommand{پایین‌صفحه‌زوج}{@evenfoot}
+\eqcommand{بالای‌صفحه‌زوج}{@evenhead}
+\eqcommand{پایین‌صفحه‌فرد}{@oddfoot}
+\eqcommand{بالای‌صفحه‌فرد}{@oddhead}
+\eqcommand{شماره‌بیرون‌درست}{@outeqntrue}
+\eqcommand{شماره‌بیرون‌نادرست}{@outeqnfalse}
+\eqcommand{سطربه‌سطر}{obeylines}
+\eqcommand{فضافعال}{obeyspaces}
+\eqcommand{حاشیه‌فرد}{oddsidemargin}
+\eqcommand{سطوربی‌فاصله}{offinterlineskip}
+\eqcommand{حذف}{omit}
+\eqcommand{@تنهادرپیش‌درآمد}{@onlypreamble}
+\eqcommand{یک‌ستون}{onecolumn}
+\eqcommand{تنها‌یادداشت‌ها}{onlynotes}
+\eqcommand{تنهااسلایدها}{onlyslides}
+\eqcommand{بازکن‌ورودی}{openin}
+\eqcommand{بازکن‌خروجی}{openout}
+\eqcommand{گزینه‌مصرف‌نشده}{OptionNotUsed}
+\eqcommand{یا}{or}
+\eqcommand{برونی}{outer}
+\eqcommand{صفحه‌بندی}{output}
+\eqcommand{جریمه‌صفحه‌بندی}{outputpenalty}
+\eqcommand{علامت‌سرریز}{overfullrule}
+\eqcommand{@فرمان‌های‌پیش‌درآمد}{@preamblecmds}
+\eqcommand{@پو}{p@}
+\eqcommand{خطای‌سبک}{PackageError}
+\eqcommand{اطلاع‌سبک}{PackageInfo}
+\eqcommand{هشدارسبک}{PackageWarning}
+\eqcommand{هشدارسبک‌بی‌سطر}{PackageWarningNoLine}
+\eqcommand{صفحه‌شکن}{pagebreak}
+\eqcommand{رنگ‌صفحه}{pagecolor}
+\eqcommand{عمق‌صفحه}{pagedepth}
+\eqcommand{کشش‌پرررصفحه}{pagefilllstretch}
+\eqcommand{کشش‌پررصفحه}{pagefillstretch}
+\eqcommand{کشش‌پرصفحه}{pagefilstretch}
+\eqcommand{غایت‌صفحه}{pagegoal}
+\eqcommand{نام‌صفحه}{pagename}
+\eqcommand{شماره‌گذاری‌صفحه}{pagenumbering}
+\eqcommand{رجوع‌صفحه}{pageref}
+\eqcommand{ضخامت‌خط‌صفحه}{pagerulewidth}
+\eqcommand{فشردگی‌صفحه}{pageshrink}
+\eqcommand{کشش‌صفحه}{pagestretch}
+\eqcommand{سبک‌صفحه}{pagestyle}
+\eqcommand{جمع‌صفحه}{pagetotal}
+\eqcommand{بلندای‌کاغذ}{paperheight}
+\eqcommand{پهنای‌کاغذ}{paperwidth}
+\eqcommand{بند}{par}
+\eqcommand{پاراگراف}{paragraph}
+\eqcommand{موازی}{parallel}
+\eqcommand{کادرپار}{parbox}
+\eqcommand{فاصله‌ته‌بند}{parfillskip}
+\eqcommand{تورفتگی‌سربند}{parindent}
+\eqcommand{فاصله‌بندلیست}{parsep}
+\eqcommand{شکل‌بند}{parshape}
+\eqcommand{فاصله‌بند}{parskip}
+\eqcommand{بخش}{part}
+\eqcommand{عنوان‌بخش}{partname}
+\eqcommand{فاصله‌بالای‌لیست‌بند}{partopsep}
+\eqcommand{ارسال‌گزینه‌به‌کلاس}{PassOptionToClass}
+\eqcommand{ارسال‌گزینه‌به‌پکیج}{PassOptionToPackage}
+\eqcommand{مسیر}{path}
+\eqcommand{الگوها}{patterns}
+\eqcommand{مکث}{pausing}
+\eqcommand{جریمه}{penalty}
+\eqcommand{غیب}{phantom}
+\eqcommand{الگوی‌قبلی}{poptabs}
+\eqcommand{جریمه‌پس‌نمایش}{postdisplaypenalty}
+\eqcommand{جهت‌پیش‌نمایش}{predisplaydirection}
+\eqcommand{جریمه‌پیش‌نمایش}{predisplaypenalty}
+\eqcommand{اندازه‌پیش‌نمایش}{predisplaysize}
+\eqcommand{پیش‌حدبدنمایی}{pretolerance}
+\eqcommand{عمق‌قبلی}{prevdepth}
+\eqcommand{بندقبلی}{prevgraf}
+\eqcommand{نمایه‌دراینجا}{printindex}
+\eqcommand{پردازش‌گزینه‌ها}{ProcessOptions}
+\eqcommand{تامین}{protect}
+\eqcommand{تهیه‌فرمان}{providecommand}
+\eqcommand{آماده‌سازی‌طبقه}{ProvidesClass}
+\eqcommand{آماده‌سازی‌پرونده}{ProvidesFile}
+\eqcommand{آماده‌سازی‌سبک}{ProvidesPackage}
+\eqcommand{ثبت‌الگو}{pushtabs}
+\eqcommand{کواد}{quad}
+\eqcommand{کوکواد}{qquad}
+\eqcommand{@بازآیی‌خروج‌صفحه}{@outputpagerestore}
+\eqcommand{رادیکال}{radical}
+\eqcommand{پایین‌بی‌تنظیم}{raggedbottom}
+\eqcommand{تنظیم‌ازراست}{raggedleft}
+\eqcommand{تنظیم‌ازچپ}{raggedright}
+\eqcommand{انتقال‌ببالا}{raise}
+\eqcommand{بالابر}{raisebox}
+\eqcommand{ترفیع‌اتیکت}{raisetag}
+\eqcommand{زاویه‌ر}{rangle}
+\eqcommand{سقف‌ر}{rceil}
+\eqcommand{بخوان}{read}
+\eqcommand{رجوع}{ref}
+\eqcommand{کادرقرینه}{reflectbox}
+\eqcommand{عنوان‌مراجع}{refname}
+\eqcommand{گام‌شمارنده‌مرجع}{refstepcounter}
+\eqcommand{راحت}{relax}
+\eqcommand{رفع‌آخرین‌فاصله}{removelastskip}
+\eqcommand{فرمان‌ازنو}{renewcommand}
+\eqcommand{محیط‌ازنو}{renewenvironment}
+\eqcommand{ازنو}{repeat}
+\eqcommand{سبک‌موردنیاز}{RequirePackage}
+\eqcommand{سبک‌موردنیازباگزینه}{RequirePackageWithOptions}
+\eqcommand{کادرکشیده}{resizebox}
+\eqcommand{درحاشیه‌معکوس}{reversemarginpar}
+\eqcommand{کف‌ر}{rfloor}
+\eqcommand{راست}{right}
+\eqcommand{حاشیه‌راست}{rightmargin}
+\eqcommand{علامت‌راست}{rightmark}
+\eqcommand{کادرتاراست}{rightpageskip}
+\eqcommand{فاصله‌انتهای‌سطر}{rightskip}
+\eqcommand{رومن‌عادی}{rmdefault}
+\eqcommand{فامیل‌رومن}{rmfamily}
+\eqcommand{رومن‌بزرگ}{Roman}
+\eqcommand{رومن‌کوچک}{roman}
+\eqcommand{عددرومی}{romannumeral}
+\eqcommand{کادرچرخان}{rotatebox}
+\eqcommand{رنگ‌ردیف}{rowcolor}
+\eqcommand{خط}{rule}
+\eqcommand{@دومی‌ازدو}{@secondoftwo}
+\eqcommand{@فضاها}{@spaces}
+\eqcommand{همین‌صفحه}{samepage}
+\eqcommand{مقدارکادر}{savebox}
+\eqcommand{مقکادر}{sbox}
+\eqcommand{کادراندازه}{scalebox}
+\eqcommand{پیش‌فرض‌تمام‌بزرگ}{scdefault}
+\eqcommand{شکل‌تمام‌بزرگ}{scshape}
+\eqcommand{قلم‌توان}{scriptfont}
+\eqcommand{قلم‌توان‌توان}{scriptscriptfont}
+\eqcommand{سبک‌ته‌نوشت‌ته‌نوشت}{scriptscriptstyle}
+\eqcommand{اندازه‌پانویس}{scriptsize}
+\eqcommand{سبک‌ته‌نوشت}{scripstyle}
+\eqcommand{پردازش‌گذری}{scrollmode}
+\eqcommand{قسمت}{section}
+\eqcommand{تعریف‌قسمت}{secdef}
+\eqcommand{ببینید}{see}
+\eqcommand{نیزببینید}{seealso}
+\eqcommand{نام‌ببینید}{seename}
+\eqcommand{قلم‌بردار}{selectfont}
+\eqcommand{تنظیم‌بولی}{setboolean}
+\eqcommand{درکادر}{setbox}
+\eqcommand{مقدارشمارنده}{setcounter}
+\eqcommand{مقداربعد}{setlength}
+\eqcommand{تنظیم‌منها}{setminus}
+\eqcommand{تعریف‌قلم‌علائم}{SetSymbolFont}
+\eqcommand{تنظیم‌به‌عمق}{settodepth}
+\eqcommand{تنظیم‌به‌ارتفاع}{settoheight}
+\eqcommand{مقداربعدبه‌اندازه}{settowidth}
+\eqcommand{کدضریب‌فاصله}{sfcode}
+\eqcommand{پیش‌فرض‌س‌ف}{sfdefault}
+\eqcommand{فامیل‌سن‌سریف}{sffamily}
+\eqcommand{کادرسایه‌دار}{shadowbox}
+\eqcommand{تیز}{sharp}
+\eqcommand{بفرست}{shipout}
+\eqcommand{پشته‌کوتاه}{shortstack}
+\eqcommand{نمایش‌بده}{show}
+\eqcommand{نمایش‌بده‌کادر}{showbox}
+\eqcommand{میزان‌نمایش‌کادر}{showboxbreadth}
+\eqcommand{عمق‌نمایش‌کادر}{showboxdepth}
+\eqcommand{نمایش‌بده‌لیستها}{showlists}
+\eqcommand{نمایش‌بده‌محتوای}{showthe}
+\eqcommand{حالت‌ساده‌قلم}{simplefontmode}
+\eqcommand{شانزد@}{sixt@@n}
+\eqcommand{نویسه‌اریب}{skewchar}
+\eqcommand{فاصله}{skip}
+\eqcommand{فاصل@}{skip@}
+\eqcommand{تعریف‌فاصله}{skipdef}
+\eqcommand{خوابیده}{sl}
+\eqcommand{پیش‌فرض‌خو}{sldefault}
+\eqcommand{شکل‌خوابیده}{slshape}
+\eqcommand{راحت‌چین}{sloppy}
+\eqcommand{شمایل‌خو}{slshape}
+\eqcommand{کوچک}{small}
+\eqcommand{پرش‌کوتاه}{smallskip}
+\eqcommand{مقدارپرش‌کوتاه}{smallskipamount}
+\eqcommand{کوب}{smash}
+\eqcommand{لبخند}{smile}
+\eqcommand{کدمکان‌همانطور}{snglfntlocatecode}
+\eqcommand{فضا}{space}
+\eqcommand{ضریب‌فاصله}{spacefactor}
+\eqcommand{فاصله‌کلمات}{spaceskip}
+\eqcommand{پیک}{spadesuit}
+\eqcommand{ادغام}{span}
+\eqcommand{ویژه}{special}
+\eqcommand{حداکثرعمق‌ستون}{splitmaxdepth}
+\eqcommand{فاصله‌بالای‌ستون}{splittopskip}
+\eqcommand{ستاره}{star}
+\eqcommand{گام‌شمارنده}{stepcounter}
+\eqcommand{کشی}{stretch}
+\eqcommand{رشته}{string}
+\eqcommand{شمع}{strut}
+\eqcommand{کادرشمع}{strutbox}
+\eqcommand{زیربند}{subitem}
+\eqcommand{زیرپاراگراف}{subparagraph}
+\eqcommand{زیرقسمت}{subsection}
+\eqcommand{زیرپشته}{substack}
+\eqcommand{زیرزیربند}{subsubitem}
+\eqcommand{زیرزیرقسمت}{subsubsection}
+\eqcommand{زیرمجموعه}{subset}
+\eqcommand{زیرمجموعه‌مس}{subseteq}
+\eqcommand{منتهای‌صفحه}{supereject}
+\eqcommand{حذف‌مکان‌شناور}{suppressfloats}
+\eqcommand{@موقت‌آ}{@tempa}
+\eqcommand{@موقت‌ب}{@tempb}
+\eqcommand{@موقت‌پ}{@tempc}
+\eqcommand{@موقت‌ت}{@tempd}
+\eqcommand{@موقت‌ث}{@tempe}
+\eqcommand{@کادرقت‌آ}{@tempboxa}
+\eqcommand{@شماقت‌آ}{@tempcnta}
+\eqcommand{@شماقت‌ب}{@tempcntb}
+\eqcommand{@بعدقت‌آ}{@tempdima}
+\eqcommand{@بعدقت‌ب}{@tempdimb}
+\eqcommand{@بعدقت‌پ}{@tempdimc}
+\eqcommand{@فاقت‌آ}{@tempskipa}
+\eqcommand{@فاقت‌ب}{@tempskipb}
+\eqcommand{@سواقت‌آنادرست}{@tempswafalse}
+\eqcommand{@سواقت‌آدرست}{@tempswatrue}
+\eqcommand{@جزقت‌آ}{@temptokena}
+\eqcommand{انگ‌زیرنویس}{@thefnmark}
+\eqcommand{@سومی‌ازسه}{@thirdofthree}
+\eqcommand{فاصله‌جاگذاری}{tabbingsep}
+\eqcommand{فاصله‌بین‌ستونها}{tabcolsep}
+\eqcommand{فهرست‌مطالب}{tableofcontents}
+\eqcommand{عنوان‌جدول}{tablename}
+\eqcommand{فاصله‌ستونها}{tabskip}
+\eqcommand{ته‌سطرجدول}{tabularnewline}
+\eqcommand{اتیکت}{tag}
+\eqcommand{تلفن}{telephone}
+\eqcommand{تک}{TeX}
+\eqcommand{متن}{text}
+\eqcommand{گلوله‌متنی}{textbullet}
+\eqcommand{قلم‌متن}{textfont}
+\eqcommand{ام‌دش‌متنی}{textemdash}
+\eqcommand{ان‌دش‌متنی}{textendash}
+\eqcommand{تعجب‌وارونه‌متنی}{textexclamdown}
+\eqcommand{نقطه‌وسط‌متنی}{textperiodcentered}
+\eqcommand{سوال‌وارونه‌متنی}{textquestiondown}
+\eqcommand{نقل‌چپ‌متنی‌دولا}{textquotedblleft}
+\eqcommand{نقل‌راست‌متنی‌دولا}{textquotedblright}
+\eqcommand{نقل‌متنی‌چپ}{textquoteleft}
+\eqcommand{نقل‌متنی‌راست}{textquoteright}
+\eqcommand{فضای‌نمایان‌متنی‌}{textvisiblespace}
+\eqcommand{شکافت‌پشت‌متنی}{textbackslash}
+\eqcommand{میله‌متنی}{textbar}
+\eqcommand{بزرگ‌تر‌متنی}{textgreater}
+\eqcommand{کمتر‌متنی}{textless}
+\eqcommand{متن‌سیاه}{textbf}
+\eqcommand{مدور‌متنی}{textcircled}
+\eqcommand{رنگ‌متن}{textcolor}
+\eqcommand{نشان‌کلمه‌مرکب‌متن}{textcompwordmark}
+\eqcommand{فاصله‌متن‌وشناور}{textfloatsep}
+\eqcommand{نسبت‌متن}{textfraction}
+\eqcommand{بلندای‌متن}{textheight}
+\eqcommand{متن‌تورفته}{textindent}
+\eqcommand{متن‌ایتالیک}{textit}
+\eqcommand{متن‌نازک}{textmd}
+\eqcommand{متن‌نرمال}{textnormal}
+\eqcommand{ثبتی‌متنی}{textregistered}
+\eqcommand{متن‌رومن}{textrm}
+\eqcommand{متن‌تمام‌بزرگ}{textsc}
+\eqcommand{متن‌سن‌سریف}{textsf}
+\eqcommand{متن‌خوابیده}{textsl}
+\eqcommand{سبک‌متنی}{textstyle}
+\eqcommand{بالانویس‌متنی}{textsuperscript}
+\eqcommand{علامت‌تجاری‌متنی}{texttrademark}
+\eqcommand{متن‌تایپ}{texttt}
+\eqcommand{متن‌ایستاده}{textup}
+\eqcommand{پهنای‌متن}{textwidth}
+\eqcommand{زیر‌نویس‌عنوان}{thanks}
+\eqcommand{محتوای}{the}
+\eqcommand{این‌زیرنویس}{thempfn}
+\eqcommand{خط‌هاضخیم}{thicklines}
+\eqcommand{فاصله‌زیادریاضی}{thickmuskip}
+\eqcommand{فاصله‌کم‌ریاضی}{thinmuskip}
+\eqcommand{فضاضخیم}{thickspace}
+\eqcommand{خط‌هانازک}{thinlines}
+\eqcommand{دوری‌کوچک}{thinspace}
+\eqcommand{این‌صفحه‌تجملی}{thisfancypage}
+\eqcommand{سبک‌این‌صفحه}{thispagestyle}
+\eqcommand{سه@}{thr@@}
+\eqcommand{مد}{tilde}
+\eqcommand{ظریف}{tiny}
+\eqcommand{زمان}{time}
+\eqcommand{ضرب‌در}{times}
+\eqcommand{عنوان}{title}
+\eqcommand{به}{to}
+\eqcommand{امروز}{today}
+\eqcommand{جزء}{toks}
+\eqcommand{تعریف‌جزء}{toksdef}
+\eqcommand{حدبدنمایی}{tolerance}
+\eqcommand{بالا}{top}
+\eqcommand{خط‌بالای‌شناور}{topfigrule}
+\eqcommand{نسبت‌بالا}{topfraction}
+\eqcommand{حاشیه‌بالا}{topmargin}
+\eqcommand{علامت‌بالا}{topmark}
+\eqcommand{کادرتابالا}{toppageskip}
+\eqcommand{فاصله‌بالای‌لیست}{topsep}
+\eqcommand{فاصله‌بالا}{topskip}
+\eqcommand{بلندای‌کل}{totalheight}
+\eqcommand{ردگیری‌کل}{tracingall}
+\eqcommand{ردگیری‌فرامین}{tracingcommands}
+\eqcommand{ردگیری‌حروف}{tracinglostchars}
+\eqcommand{ردگیری‌ماکروها}{tracingmacros}
+\eqcommand{ردگیری‌نمایشی}{tracingonline}
+\eqcommand{ردگیری‌صفحه‌بندی}{tracingoutput}
+\eqcommand{ردگیری‌صفحات}{tracingpages}
+\eqcommand{ردگیری‌بندها}{tracingparagraphs}
+\eqcommand{ردگیری‌بازگردانی}{tracingrestores}
+\eqcommand{ردگیری‌آمارها}{tracingstats}
+\eqcommand{مثلث}{triangle}
+\eqcommand{پیش‌فرض‌تایپ}{ttdefault}
+\eqcommand{فامیل‌تایپ}{ttfamily}
+\eqcommand{دو@}{tw@}
+\eqcommand{دوستون}{twocolumn}
+\eqcommand{درنویس}{typein}
+\eqcommand{برنویس}{typeout}
+\eqcommand{کدبزرگ}{uccode}
+\eqcommand{تیره‌بندی‌بزرگ}{uchyph}
+\eqcommand{زیرخط}{underline}
+\eqcommand{بی‌کادرا}{unhbox}
+\eqcommand{بی‌کپی‌ا}{unhcopy}
+\eqcommand{واحدطول}{unitlength}
+\eqcommand{برگشت‌دوری}{unkern}
+\eqcommand{برگشت‌جریمه}{unpenalty}
+\eqcommand{برگشت‌فاصله}{unskip}
+\eqcommand{بی‌کادرو}{unvbox}
+\eqcommand{بی‌کپی‌و}{unvcopy}
+\eqcommand{پیش‌فرض‌ایستاده}{updefault}
+\eqcommand{شکل‌ایستاده}{upshape}
+\eqcommand{ازکادر}{usebox}
+\eqcommand{باشمارشگر}{usecounter}
+\eqcommand{گزینش‌قلم}{usefont}
+\eqcommand{سبک‌لازم}{usepackage}
+\eqcommand{@فضاهای‌فعال}{@vobeyspaces}
+\eqcommand{@تهی}{@void}
+\eqcommand{تنظیم‌و}{vadjust}
+\eqcommand{ردیف‌و}{valign}
+\eqcommand{محتوای‌شمارنده}{value}
+\eqcommand{بدنمایی‌و}{vbadness}
+\eqcommand{کادرو}{vbox}
+\eqcommand{کادروسط}{vcenter}
+\eqcommand{همانطور}{verb}
+\eqcommand{پرو}{vfil}
+\eqcommand{پررو}{vfill}
+\eqcommand{رفع‌پرو}{vfilneg}
+\eqcommand{پرزعمودی}{vfuzz}
+\eqcommand{نمایان}{visible}
+\eqcommand{خط‌عمود}{vline}
+\eqcommand{حاشیه‌و}{voffset}
+\eqcommand{ک@درتهی}{voidb@x}
+\eqcommand{ارجاع‌صفحه‌ع}{vpageref}
+\eqcommand{فاصله‌وگرد}{vrboxsep}
+\eqcommand{ارجاع‌ع}{vref}
+\eqcommand{خط‌و}{vrule}
+\eqcommand{طول‌صفحه}{vsize}
+\eqcommand{فاصله‌و}{vskip}
+\eqcommand{فضای‌و}{vspace}
+\eqcommand{شکست‌و}{vsplit}
+\eqcommand{هردوو}{vss}
+\eqcommand{کادرگود}{vtop}
+\eqcommand{عرض}{wd}
+\eqcommand{مادام‌بکن}{whiledo}
+\eqcommand{کلاه‌پهن}{widehat}
+\eqcommand{مدپهن}{widetilde}
+\eqcommand{جریمه‌ته‌بند}{widowpenalty}
+\eqcommand{پهنا}{width}
+\eqcommand{درکارنامه}{wlog}
+\eqcommand{بنویس}{write}
+\eqcommand{@فضای‌لاتین}{@xobeysp}
+\eqcommand{سی@دو}{@xxxii}
+\eqcommand{ترگع}{xdef}
+\eqcommand{نشانگرگسترشی}{xleaders}
+\eqcommand{فاصله‌اضافی‌کلمات}{xspaceskip}
+\eqcommand{سال}{year}
+\eqcommand{@فر}{z@}
+\eqcommand{@فرفاصله}{z@skip}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `commands-ltx-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/commands-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/commands-luapersian.def
new file mode 100644
index 00000000000..5aa2c01fef2
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/commands-luapersian.def
@@ -0,0 +1,79 @@
+%%
+%% This is file `commands-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{commands-luapersian.def}[2011/08/01 v0.1 Persian localisation of LuaPersian commands]
+\eqcommand{خط‌زیرنویس‌خودکار}{autofootnoterule}
+\eqcommand{اعدادفرمولهاخودکار}{AutoMathsDigits}
+\eqcommand{اعدادفرمولهالاتین}{DefaultMathsDigits}
+\eqcommand{تعریف‌قلم‌لاتین}{deflatinfont}
+\eqcommand{تعریف‌قلم‌پارسی}{defpersianfont}
+\eqcommand{کادراچپ}{hboxL}
+\eqcommand{کادراست}{hboxR}
+\eqcommand{مرجع‌لاتین}{Latincite}
+\eqcommand{قلم‌لاتین}{latinfont}
+\eqcommand{امروزلاتین}{latintoday}
+\eqcommand{خط‌زیرنویس‌چپ}{leftfootnoterule}
+\eqcommand{متن‌لاتین}{lr}
+\eqcommand{چپ‌براست}{LRE}
+\eqcommand{دوستونی‌چپ}{LTRdblcol}
+\eqcommand{پانویس}{LTRfootnote}
+\eqcommand{متن‌پانویس}{LTRfootnotetext}
+\eqcommand{پانویس‌عنوان}{LTRthanks}
+\eqcommand{قلم‌پارسی}{persianfont}
+\eqcommand{اعدادفرمولهاپارسی}{PersianMathsDigits}
+\eqcommand{علامت‌چپ‌نقل‌قول‌پارسی}{plq}
+\eqcommand{علامت‌راست‌نقل‌قول‌پارسی}{prq}
+\eqcommand{خط‌زیرنویس‌راست}{rightfootnoterule}
+\eqcommand{متن‌پارسی}{rl}
+\eqcommand{راست‌بچپ}{RLE}
+\eqcommand{دوستونی‌راست}{RTLdblcol}
+\eqcommand{پانوشت}{RTLfootnote}
+\eqcommand{متن‌پانوشت}{RTLfootnotetext}
+\eqcommand{پانوشت‌عنوان}{RTLthanks}
+\eqcommand{@علامت‌بین}{@SepMark}
+\eqcommand{علامت‌بین}{SepMark}
+\eqcommand{بگذارمرجوعات‌عادی}{setdefaultbibitems}
+\eqcommand{بگذاردرحاشیه‌عادی}{setdefaultmarginpar}
+\eqcommand{گزینش‌قلم‌اعدادفرمولها}{setdigitfont}
+\eqcommand{بگذارزیرنویس‌چپ}{setfootnoteLR}
+\eqcommand{بگذارزیرنویس‌راست}{setfootnoteRL}
+\eqcommand{گزینش‌قلم‌لاتین‌متن}{setlatintextfont}
+\eqcommand{بگذارمتن‌چپ}{setLTR}
+\eqcommand{بگذارمرجوعات‌چپ}{setLTRbibitems}
+\eqcommand{بگذاردرحاشیه‌چپ}{setLTRmarginpar}
+\eqcommand{بگذارمتن‌راست}{setRTL}
+\eqcommand{بگذارمرجوعات‌راست}{setRTLbibitems}
+\eqcommand{بگذاردرحاشیه‌راست}{setRTLmarginpar}
+\eqcommand{گزینش‌قلم‌متن}{settextfont}
+\eqcommand{خط‌زیرنویس‌پهنای‌متن}{textwidthfootnoterule}
+\eqcommand{فهرست‌مطالب‌دوستونی}{twocolumnstableofcontents}
+\eqcommand{نگذارزیرنویس‌راست}{unsetfootnoteRL}
+\eqcommand{نگذارمتن‌چپ}{unsetLTR}
+\eqcommand{نگذارمتن‌راست}{unsetRTL}
+\eqcommand{کادروازچپ}{vboxL}
+\eqcommand{کادروازراست}{vboxR}
+\eqcommand{زی‌لاتک}{XeLaTeX}
+\eqcommand{لواپرشین}{LuaPersian}
+\eqcommand{گونه‌لواپرشین}{luapersianversion}
+\eqcommand{تاریخ‌گونه‌لواپرشین}{luapersiandate}
+\eqcommand{لواتک}{LuaTeX}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `commands-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/enumerate-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/enumerate-luapersian.def
new file mode 100644
index 00000000000..e3fdd34abff
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/enumerate-luapersian.def
@@ -0,0 +1,40 @@
+%%
+%% This is file `enumerate-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{enumerate-luapersian.def}[2011/08/01 v0.1 adaptations for enumerate package]
+\def\@enloop@{%
+ \ifx ا\@entemp \def\@tempa{\@enLabel\harfi }\else
+ \ifx ی\@entemp \def\@tempa{\@enLabel\adadi }\else
+ \ifx ت\@entemp \def\@tempa{\@enLabel\tartibi }\else
+ \ifx A\@entemp \def\@tempa{\@enLabel\Alph }\else
+ \ifx a\@entemp \def\@tempa{\@enLabel\alph }\else
+ \ifx i\@entemp \def\@tempa{\@enLabel\roman }\else
+ \ifx I\@entemp \def\@tempa{\@enLabel\Roman }\else
+ \ifx 1\@entemp \def\@tempa{\@enLabel\arabic}\else
+ \ifx \@sptoken\@entemp \let\@tempa\@enSpace \else
+ \ifx \bgroup\@entemp \let\@tempa\@enGroup \else
+ \ifx \@enum@\@entemp \let\@tempa\@gobble \else
+ \let\@tempa\@enOther
+ \@enhook
+ \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
+ \@tempa}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `enumerate-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/environments-ltx-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/environments-ltx-luapersian.def
new file mode 100644
index 00000000000..10e87a24f24
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/environments-ltx-luapersian.def
@@ -0,0 +1,69 @@
+%%
+%% This is file `environments-ltx-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{environments-ltx-luapersian.def}[2011/08/01 v0.1 Persian localisation of LaTeX2e environments]
+\eqenvironment{چکیده}{abstract}
+\eqenvironment{پیوست}{appendix}
+\eqenvironment{آرایه}{array}
+\eqenvironment{وسط‌چین}{center}
+\eqenvironment{توضیح}{description}
+\eqenvironment{ریاضی‌نمایشی}{displaymath}
+\eqenvironment{نوشتار}{document}
+\eqenvironment{شمارش}{enumerate}
+\eqenvironment{شکل}{figure}
+\eqenvironment{شکل*}{figure*}
+\eqenvironment{محتوای‌پرونده}{filecontents}
+\eqenvironment{محتوای‌پرونده*}{filecontents*}
+\eqenvironment{چپ‌چین}{flushleft}
+\eqenvironment{راست‌چین}{flushright}
+\eqenvironment{فقرات}{itemize}
+\eqenvironment{نامه}{letter}
+\eqenvironment{لیست}{list}
+\eqenvironment{جدول‌دراز}{longtable}
+\eqenvironment{کادررچ}{lrbox}
+\eqenvironment{ریاضی}{math}
+\eqenvironment{ماتریس}{matrix}
+\eqenvironment{صفحه‌کوچک}{minipage}
+\eqenvironment{چندستونی‌ها}{multicols}
+\eqenvironment{چندخطی}{multline}
+\eqenvironment{یادداشت}{note}
+\eqenvironment{انباشتن}{overlay}
+\eqenvironment{تصویر}{picture}
+\eqenvironment{اقتباس}{quotation}
+\eqenvironment{نقل}{quote}
+\eqenvironment{اسلاید}{slide}
+\eqenvironment{پارنامرتب}{sloppypar}
+\eqenvironment{شکافتن}{split}
+\eqenvironment{زیرآرایه}{subarray}
+\eqenvironment{جاگذاری}{tabbing}
+\eqenvironment{لوح}{table}
+\eqenvironment{لوح*}{table*}
+\eqenvironment{جدول}{tabular}
+\eqenvironment{جدول*}{tabular*}
+\eqenvironment{مراجع}{thebibliography}
+\eqenvironment{محتوای‌نمایه}{theindex}
+\eqenvironment{صفحه‌عنوان}{titlepage}
+\eqenvironment{لیست‌بدوی}{trivlist}
+\eqenvironment{همانطورکه‌هست}{verbatim}
+\eqenvironment{همانطورکه‌هست*}{verbatim*}
+\eqenvironment{شعر}{verse}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `environments-ltx-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/environments-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/environments-luapersian.def
new file mode 100644
index 00000000000..749bedf91e0
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/environments-luapersian.def
@@ -0,0 +1,34 @@
+%%
+%% This is file `environments-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{environments-luapersian.def}[2011/08/01 v0.1 Persian localisation of LuaPersian environments]
+\eqenvironment{لاتین}{latin}
+\eqenvironment{متن‌چپ}{LTR}
+\eqenvironment{دسته‌بندی‌چپ}{LTRitems}
+\eqenvironment{شعرنو}{modernpoem}
+\eqenvironment{شعرنو*}{modernpoem*}
+\eqenvironment{پارسی}{persian}
+\eqenvironment{متن‌راست}{RTL}
+\eqenvironment{دسته‌بندی‌راست}{RTLitems}
+\eqenvironment{شعرسنتی}{traditionalpoem}
+\eqenvironment{شعرسنتی*}{traditionalpoem*}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `environments-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/extarticle-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/extarticle-luapersian.def
new file mode 100644
index 00000000000..f3728d48171
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/extarticle-luapersian.def
@@ -0,0 +1,144 @@
+%%
+%% This is file `extarticle-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{extarticle-luapersian.def}[2011/08/01 v0.1 adaptations for extarticle class]
+\renewenvironment{thebibliography}[1]
+ {\section*{\refname
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand\right@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}
+\renewcommand\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil}}
+ \if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand\thepart {\@tartibi\c@part}
+\renewcommand\appendix{\par
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \gdef\thesection{\@harfi\c@section}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `extarticle-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/extbook-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/extbook-luapersian.def
new file mode 100644
index 00000000000..154959deb26
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/extbook-luapersian.def
@@ -0,0 +1,151 @@
+%%
+%% This is file `extbook-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{extbook-luapersian.def}[2011/08/01 v0.1 adaptations for extbook class]
+ \if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand\frontmatter{%
+ \cleardoublepage
+ \@mainmatterfalse
+ \pagenumbering{harfi}}
+\renewcommand \thepart {\@tartibi\c@part}
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}
+}%end appendix
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `extbook-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/extletter-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/extletter-luapersian.def
new file mode 100644
index 00000000000..0f119397ce2
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/extletter-luapersian.def
@@ -0,0 +1,47 @@
+%%
+%% This is file `extletter-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{extletter-luapersian.def}[2011/08/01 v0.1 adaptations for extletter class]
+\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
+ \thispagestyle{firstpage}%
+ {\raggedleft\@date\par}%
+ \else % home address
+ \thispagestyle{empty}%
+ {\raggedleft\if@RTL\begin{tabular}{r@{}}\else\begin{tabular}{l@{}}\fi\ignorespaces
+ \fromaddress \\*[2\parskip]%
+ \@date \end{tabular}\par}%
+ \fi
+ \vspace{2\parskip}%
+ {\raggedright \toname \\ \toaddress \par}%
+ \vspace{2\parskip}%
+ #1\par\nobreak}
+\renewcommand\right@footnote{%
+ \kern-\p@
+ \hrule \@width .4\columnwidth
+ \kern .6\p@}
+\renewcommand\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-\p@
+ \hrule \@width .4\columnwidth
+ \kern .6\p@}\hfil}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `extletter-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/extreport-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/extreport-luapersian.def
new file mode 100644
index 00000000000..3503bcf8949
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/extreport-luapersian.def
@@ -0,0 +1,145 @@
+%%
+%% This is file `extreport-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{extreport-luapersian.def}[2011/08/01 v0.1 adaptations for extreport class]
+\renewcommand\right@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}
+\renewcommand\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil}}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+ \if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand\thepart {\@tartibi\c@part}
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `extreport-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/fancyhdr-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/fancyhdr-luapersian.def
new file mode 100644
index 00000000000..cb800e2f238
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/fancyhdr-luapersian.def
@@ -0,0 +1,35 @@
+%%
+%% This is file `fancyhdr-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{fancyhdr-luapersian.def}[2011/08/01 v0.1 adaptations for fancyhdr package]
+\def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\fancy@reset
+ \@fancyvbox\headheight{\hbox
+ {\rlap{\parbox[b]{\headwidth}{\bidiraggedright#2}}\hfill
+ \parbox[b]{\headwidth}{\centering#3}\hfill
+ \llap{\parbox[b]{\headwidth}{\bidiraggedleft#4}}}\headrule}}#5}
+
+\def\@fancyfoot#1#2#3#4#5{#1\hbox to\headwidth{\fancy@reset
+ \@fancyvbox\footskip{\footrule
+ \hbox{\rlap{\parbox[t]{\headwidth}{\bidiraggedright#2}}\hfill
+ \parbox[t]{\headwidth}{\centering#3}\hfill
+ \llap{\parbox[t]{\headwidth}{\bidiraggedleft#4}}}}}#5}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `fancyhdr-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/fleqn-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/fleqn-luapersian.def
new file mode 100644
index 00000000000..52e13d50407
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/fleqn-luapersian.def
@@ -0,0 +1,53 @@
+%%
+%% This is file `fleqn-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{fleqn-luapersian.def}[2011/08/01 v0.1 adaptations for fleqn tag]
+\renewcommand\[{\relax
+ \ifmmode\@badmath
+ \else
+ \begin{trivlist}%
+ \@beginparpenalty\predisplaypenalty
+ \@endparpenalty\postdisplaypenalty
+ \item[]\leavevmode
+ \hbox dir TLT to\linewidth\bgroup $\m@th\displaystyle %$
+ \hskip\mathindent\bgroup
+ \fi}
+\renewcommand\]{\relax
+ \ifmmode
+ \egroup $\hfil% $
+ \egroup
+ \end{trivlist}%
+ \else \@badmath
+ \fi}
+\renewenvironment{equation}%
+ {\@beginparpenalty\predisplaypenalty
+ \@endparpenalty\postdisplaypenalty
+ \refstepcounter{equation}%
+ \trivlist \item[]\leavevmode
+ \hbox dir TLT to\linewidth\bgroup $\m@th% $
+ \displaystyle
+ \hskip\mathindent}%
+ {$\hfil % $
+ \displaywidth\linewidth\hbox{\@eqnnum}%
+ \egroup
+ \endtrivlist}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `fleqn-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/flowfram-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/flowfram-luapersian.def
new file mode 100644
index 00000000000..8815e93fc51
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/flowfram-luapersian.def
@@ -0,0 +1,100 @@
+%%
+%% This is file `flowfram-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{flowfram-luapersian.def}[2011/08/01 v0.1 adaptations for flowfram package]
+\def\@outputdblcol{%
+\@nxtcol=\c@thisframe
+\c@curpg=\c@page
+\@g@tnextcol{\@nxtcol}%
+\if@ff@nwpg % next flow frame starts on new page
+ \global\@firstcolumntrue
+ \@setcolbox\c@thisframe
+ \if@specialpage
+ \global\@specialpagefalse
+ \@nameuse{ps@\@specialstyle}\relax
+ \fi
+ \if@twoside
+ \ifodd\count\z@
+ \let\@thehead\@oddhead
+ \let\@thefoot\@oddfoot
+ \else
+ \let\@thehead\@evenhead
+ \let\@thefoot\@evenfoot
+ \fi
+ \else
+ \let\@thehead\@oddhead
+ \let\@thefoot\@oddfoot
+ \fi
+ \@begindvi
+ \@dodynamicthehead\@dodynamicthefoot
+ \vbadness=\@M
+ \setbox\@outputbox\vbox{\hbox to \textwidth{\@ff@do@allframes}}%
+ \@combinedblfloats
+ \@outputpage
+\advance\c@curpg by -\c@page\relax
+ \whiledo{\c@curpg>0}{\advance\c@curpg by -1\relax
+ \setbox\@outputbox\vbox{\hbox to \textwidth{\@ff@do@allframes}}%
+\@outputpage}
+ \begingroup
+ \@dblfloatplacement
+ \@startdblcolumn
+ \@whilesw \if@fcolmade \fi
+ {\@outputpage \@startdblcolumn }\endgroup
+ \@resetst@tics
+ \@resetdyn@mics
+\else % still on same page, save contents of box255
+ \global\@firstcolumnfalse
+ \@setcolbox\c@thisframe
+\fi
+\global\c@thisframe=\@nxtcol
+\@setcol{\c@thisframe}\relax
+\global\@colht\vsize
+}
+\def\@outputpage{%
+\begingroup
+ \let\protect\noexpand
+ \@resetactivechars
+ \global\let\@@if@newlist\if@newlist
+ \global\@newlistfalse\@parboxrestore
+ \shipout\vbox{\set@typeset@protect
+ \aftergroup
+ \endgroup
+ \aftergroup
+ \set@typeset@protect
+ \reset@font\normalsize\normalsfcodes
+ \let\label\@gobble
+ \let\index\@gobble
+ \let\glossary\@gobble
+ \baselineskip\z@skip
+ \lineskip\z@skip
+ \lineskiplimit\z@
+ \vskip\topmargin\moveright\@themargin
+ \vbox{%
+ \vskip\headheight
+ \vskip\headsep
+ \box\@outputbox
+ }}%
+ \global\let\if@newlist\@@if@newlist
+ \stepcounter{page}%
+ \setcounter{displayedframe}{0}%
+ \let\firstmark\botmark}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `flowfram-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/hvfloat-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/hvfloat-luapersian.def
new file mode 100644
index 00000000000..b4bde148879
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/hvfloat-luapersian.def
@@ -0,0 +1,401 @@
+%%
+%% This is file `hvfloat-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{hvfloat-luapersian.def}[2011/08/01 v0.1 adaptations for hvfloat package]
+\def\do@@hvFloat[#1]#2#3{%
+\def\hv@shortCap{#1}
+\def\hv@longCap{#2}
+\def\hv@label{#3}
+\def\@tempa{90}%
+\ifx\hvSet@rotAngle\@tempa
+\setlength{\hvMaxCapWidth}{\textheight}
+\else
+\setlength{\hvMaxCapWidth}{\linewidth}
+\fi
+\ifx\hvSet@objectAngle\hv@Zero % rotate the object?
+\savebox{\hvObjectBox}{\ifhv@useOBox\usebox{\hvOBox}\else\hv@floatObject\fi}
+\else
+\savebox{\hvObjectBox}{%
+\rotatebox{\hvSet@objectAngle}{%
+\ifhv@useOBox\usebox{\hvOBox}\else\hv@floatObject\fi}}
+\fi
+\setlength{\hvObjectWidth}{\wd\hvObjectBox}
+\ifx\hvSet@capWidth\hv@Width
+\setlength{\hvCapWidth}{\hvObjectWidth}
+\else
+\ifx\hvSet@capWidth\hv@Height
+\setlength{\hvCapWidth}{\ht\hvObjectBox}
+\else
+\setlength{\hvCapWidth}{\hvObjectWidth}
+\ifx\hvSet@capPos\hv@Left
+\addtolength{\hvMaxCapWidth}{-\hvObjectWidth}
+\fi
+\ifx\hvSet@capPos\hv@Right
+\addtolength{\hvMaxCapWidth}{-\hvObjectWidth}
+\fi
+\ifdim\hvSet@capWidth\columnwidth<\hvMaxCapWidth
+\setlength{\hvCapWidth}{\hvSet@capWidth\columnwidth}
+\else
+\setlength{\hvCapWidth}{\hvMaxCapWidth}
+\fi
+\fi
+\fi
+\def\fps@figure{\hvSet@floatPos}
+\ifhv@nonFloat%
+\begingroup% Start the nonfloat part
+\else%
+\begin{\hv@floatType}% Start the floating environment
+\fi%
+\saveCaptionSkip% we put this space ourselve
+\ifx\hvSet@capAngle\hv@Width % need rotation?
+\sbox{\hvCaptionBox}{%
+\begin{minipage}[b]{\hvCapWidth}% minipage, to get hyphenation
+\ifhv@nonFloat%
+\ifhv@onlyText%
+#2%
+\else%
+ \ifthenelse{\equal{\hv@floatType}{figure}}{%
+\ifthenelse{\equal{#1}{}}{\figcaption{#2}}{\figcaption[#1]{#2}}%
+ }{%
+\ifthenelse{\equal{#1}{}}{\tabcaption{#2}}{\tabcaption[#1]{#2}}%
+ }%
+\fi%
+\else%
+\ifx\hv@shortCap\empty\caption{#2}\else\caption[#1]{#2}\fi%
+\fi%
+\label{#3}%
+\end{minipage}%
+}%
+\else%
+\sbox{\hvCaptionBox}{%
+\rotatebox{\hvSet@capAngle}{%
+\begin{minipage}[b]{\hvCapWidth}% minipage, to get hyphenation
+\ifhv@nonFloat%
+\ifhv@onlyText%
+#2%
+\else%
+ \ifthenelse{\equal{\hv@floatType}{figure}}{%
+\ifthenelse{\equal{#1}{}}{\figcaption{#2}}{\figcaption[#1]{#2}}%
+ }{%
+\ifthenelse{\equal{#1}{}}{\tabcaption{#2}}{\tabcaption[#1]{#2}}%
+ }%
+\fi%
+\else%
+\ifx\hv@shortCap\empty\caption{#2}\else\caption[#1]{#2}\fi%
+\fi%
+\label{#3}%
+\end{minipage}%
+}%
+}%
+\fi%
+%%
+\restoreCaptionSkip% save old values
+ \if@RTL%
+ \ifx\hvSet@objectPos\hv@Left%
+\raggedright%
+\else%
+\ifx\hvSet@objectPos\hv@Center%
+\ifhv@nonFloat%
+\hspace*{\fill}%
+\else%
+\centering
+\fi%
+\fi%
+\fi%
+ \else
+\ifx\hvSet@objectPos\hv@Right%
+\raggedleft%
+\else%
+\ifx\hvSet@objectPos\hv@Center%
+\ifhv@nonFloat%
+\hspace*{\fill}%
+\else%
+\centering
+\fi%
+\fi%
+\fi%
+ \fi
+\savebox{\@tempboxa}{\if@RTL%
+ \ifx\hvSet@capPos\hv@Right % caption on left side
+\ifx\hvSet@capVPos\hv@Center%
+\ifhv@framedCaption%
+\fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
+\else
+\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}
+\fi%
+ \hspace{\hvSet@floatCapSep pt}% capfloatsep
+\ifhv@framedObject%
+\fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
+\else
+\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
+\fi%
+\else%
+\ifx\hvSet@capVPos\hv@Top % caption at top
+\ifhv@framedCaption%
+\fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
+\else
+\raisebox{-\height}{\usebox{\hvCaptionBox}}%
+\fi
+\hspace{\hvSet@floatCapSep pt}% capfloatsep
+\ifhv@framedObject%
+\fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
+\else
+\raisebox{-\height}{\usebox{\hvObjectBox}}%
+\fi%
+\else% caption on bottom
+\ifhv@framedCaption%
+\fbox{\usebox{\hvCaptionBox}}
+\else
+\usebox{\hvCaptionBox}
+\fi%
+\hspace{\hvSet@floatCapSep pt}%
+\ifhv@framedObject%
+\fbox{\usebox{\hvObjectBox}}
+\else
+\usebox{\hvObjectBox}
+\fi%
+\fi%
+\fi%
+\else
+\ifx\hvSet@capPos\hv@Top
+\ifdim\wd\hvCaptionBox>\wd\hvObjectBox
+\begin{minipage}{\wd\hvCaptionBox}
+\else
+\begin{minipage}{\wd\hvObjectBox}
+\fi
+\centering
+\ifhv@framedCaption%
+\fbox{\usebox{\hvCaptionBox}}\\[\hvBelowCaptionSkip]
+\else
+\usebox{\hvCaptionBox}\\[\hvBelowCaptionSkip]%
+\fi%
+\ifhv@framedObject%
+\fbox{\usebox{\hvObjectBox}}%
+\else
+\usebox{\hvObjectBox}%
+\fi%
+\end{minipage}
+\else
+\ifx\hvSet@capPos\hv@Bottom
+\ifdim\wd\hvCaptionBox>\wd\hvObjectBox
+\begin{minipage}{\wd\hvCaptionBox}
+\else
+\begin{minipage}{\wd\hvObjectBox}
+\fi
+\centering
+\ifhv@framedObject
+\fbox{\usebox{\hvObjectBox}}\\[\hvAboveCaptionSkip]
+\else
+\usebox{\hvObjectBox}\\[\hvAboveCaptionSkip]
+\fi%
+\ifhv@framedCaption
+\fbox{\usebox{\hvCaptionBox}}%
+\else
+\usebox{\hvCaptionBox}%
+\fi%
+\end{minipage}
+\else% the last option: put the caption on the right
+\ifx\hvSet@capVPos\hv@Center%
+\ifhv@framedObject
+\fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
+\else
+\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
+\fi%
+\hspace{\hvSet@floatCapSep pt}%
+\ifhv@framedCaption
+\fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
+\else
+\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}
+\fi%
+\else%
+\ifx\hvSet@capVPos\hv@Top
+\ifhv@framedObject
+\fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
+\else
+\raisebox{-\height}{\usebox{\hvObjectBox}}%
+\fi%
+\hspace{\hvSet@floatCapSep pt}%
+\ifhv@framedCaption
+\fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
+\else
+\raisebox{-\height}{\usebox{\hvCaptionBox}}%
+\fi
+\else
+\ifhv@framedObject
+\fbox{\usebox{\hvObjectBox}}%
+\else
+\usebox{\hvObjectBox}%
+\fi
+\hspace{\hvSet@floatCapSep pt}%
+\ifhv@framedCaption
+\fbox{\usebox{\hvCaptionBox}}%
+\else
+\usebox{\hvCaptionBox}%
+\fi%
+\fi%
+\fi
+\fi
+\fi
+\fi
+ \else
+\ifx\hvSet@capPos\hv@Left % caption on left side
+\ifx\hvSet@capVPos\hv@Center%
+\ifhv@framedCaption%
+\fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
+\else
+\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}
+\fi%
+ \hspace{\hvSet@floatCapSep pt}% capfloatsep
+\ifhv@framedObject%
+\fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
+\else
+\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
+\fi%
+\else%
+\ifx\hvSet@capVPos\hv@Top % caption at top
+\ifhv@framedCaption%
+\fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
+\else
+\raisebox{-\height}{\usebox{\hvCaptionBox}}%
+\fi
+\hspace{\hvSet@floatCapSep pt}% capfloatsep
+\ifhv@framedObject%
+\fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
+\else
+\raisebox{-\height}{\usebox{\hvObjectBox}}%
+\fi%
+\else% caption on bottom
+\ifhv@framedCaption%
+\fbox{\usebox{\hvCaptionBox}}
+\else
+\usebox{\hvCaptionBox}
+\fi%
+\hspace{\hvSet@floatCapSep pt}%
+\ifhv@framedObject%
+\fbox{\usebox{\hvObjectBox}}
+\else
+\usebox{\hvObjectBox}
+\fi%
+\fi%
+\fi%
+\else
+\ifx\hvSet@capPos\hv@Top
+\ifdim\wd\hvCaptionBox>\wd\hvObjectBox
+\begin{minipage}{\wd\hvCaptionBox}
+\else
+\begin{minipage}{\wd\hvObjectBox}
+\fi
+\centering
+\ifhv@framedCaption%
+\fbox{\usebox{\hvCaptionBox}}\\[\hvBelowCaptionSkip]
+\else
+\usebox{\hvCaptionBox}\\[\hvBelowCaptionSkip]%
+\fi%
+\ifhv@framedObject%
+\fbox{\usebox{\hvObjectBox}}%
+\else
+\usebox{\hvObjectBox}%
+\fi%
+\end{minipage}
+\else
+\ifx\hvSet@capPos\hv@Bottom
+\ifdim\wd\hvCaptionBox>\wd\hvObjectBox
+\begin{minipage}{\wd\hvCaptionBox}
+\else
+\begin{minipage}{\wd\hvObjectBox}
+\fi
+\centering
+\ifhv@framedObject
+\fbox{\usebox{\hvObjectBox}}\\[\hvAboveCaptionSkip]
+\else
+\usebox{\hvObjectBox}\\[\hvAboveCaptionSkip]
+\fi%
+\ifhv@framedCaption
+\fbox{\usebox{\hvCaptionBox}}%
+\else
+\usebox{\hvCaptionBox}%
+\fi%
+\end{minipage}
+\else% the last option: put the caption on the right
+\ifx\hvSet@capVPos\hv@Center%
+\ifhv@framedObject
+\fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
+\else
+\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
+\fi%
+\hspace{\hvSet@floatCapSep pt}%
+\ifhv@framedCaption
+\fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
+\else
+\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}
+\fi%
+\else%
+\ifx\hvSet@capVPos\hv@Top
+\ifhv@framedObject
+\fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
+\else
+\raisebox{-\height}{\usebox{\hvObjectBox}}%
+\fi%
+\hspace{\hvSet@floatCapSep pt}%
+\ifhv@framedCaption
+\fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
+\else
+\raisebox{-\height}{\usebox{\hvCaptionBox}}%
+\fi
+\else
+\ifhv@framedObject
+\fbox{\usebox{\hvObjectBox}}%
+\else
+\usebox{\hvObjectBox}%
+\fi
+\hspace{\hvSet@floatCapSep pt}%
+\ifhv@framedCaption
+\fbox{\usebox{\hvCaptionBox}}%
+\else
+\usebox{\hvCaptionBox}%
+\fi%
+\fi%
+\fi
+\fi
+\fi
+\fi
+\fi}% End savebox Object and caption
+\ifx\hvSet@rotAngle\hv@Zero
+\usebox{\@tempboxa}
+\else
+\rotatebox{\hvSet@rotAngle}{\usebox{\@tempboxa}}
+\fi
+\ifhv@nonFloat
+\ifx\hvSet@objectPos\hv@Center
+\ifhv@nonFloat
+\hspace{\fill}
+\fi
+\fi
+\endgroup% End the nonfloat part
+\else
+\end{\hv@floatType}% End the floating environment
+\fi
+\ifhv@fbox % reset local settings
+ \setkeys{hvSet}{framedCaption=true, framedObject=true}
+\fi
+}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `hvfloat-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/hyperref-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/hyperref-luapersian.def
new file mode 100644
index 00000000000..0479dd06d74
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/hyperref-luapersian.def
@@ -0,0 +1,233 @@
+%%
+%% This is file `hyperref-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{hyperref-luapersian.def}[2011/08/01 v0.1 bilingual captions for hyperref package]
+\ifHy@hyperfootnotes
+ \let\H@@footnotetext\@footnotetext
+ \let\HRTL@@RTLfootnotetext\@RTLfootnotetext
+ \let\HLTR@@LTRfootnotetext\@LTRfootnotetext
+ \def\@xfootnotenext[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \ifx\@footnotetext\@mpfootnotetext
+ \expandafter\H@@mpfootnotetext
+ \else
+ \expandafter\H@@footnotetext
+ \fi
+ }%
+ \def\@xRTLfootnotenext[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \ifx\@RTLfootnotetext\@mpRTLfootnotetext
+ \expandafter\HRTL@@mpRTLfootnotetext
+ \else
+ \expandafter\HRTL@@RTLfootnotetext
+ \fi
+ }%
+ \def\@xLTRfootnotenext[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \ifx\@LTRfootnotetext\@mpLTRfootnotetext
+ \expandafter\HLTR@@mpLTRfootnotetext
+ \else
+ \expandafter\HLTR@@LTRfootnotetext
+ \fi
+ }%
+ \def\@xfootnotemark[#1]{%
+ \begingroup
+ \c@footnote #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thefootnote}%
+ \endgroup
+ \H@@footnotemark
+ }%
+ \let\H@@mpfootnotetext\@mpfootnotetext
+ \let\HRTL@@mpRTLfootnotetext\@mpRTLfootnotetext
+ \let\HLTR@@mpLTRfootnotetext\@mpLTRfootnotetext
+ \long\def\@mpfootnotetext#1{%
+ \H@@mpfootnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }#1%
+ \fi
+ }%
+ }%
+ \long\def\@mpRTLfootnotetext#1{%
+ \HRTL@@mpRTLfootnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }#1%
+ \fi
+ }%
+ }%
+ \long\def\@mpLTRfootnotetext#1{%
+ \HLTR@@mpLTRfootnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }#1%
+ \fi
+ }%
+ }%
+ \long\def\@footnotetext#1{%
+ \H@@footnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }%
+ \let\@currentHlabel\Hy@footnote@currentHlabel
+ \let\@currentHref\Hy@footnote@currentHref
+ \let\@currentlabelname\@empty
+ #1%
+ \fi
+ }%
+ }%
+ \long\def\@RTLfootnotetext#1{%
+ \HRTL@@RTLfootnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }%
+ \let\@currentHlabel\Hy@footnote@currentHlabel
+ \let\@currentHref\Hy@footnote@currentHref
+ \let\@currentlabelname\@empty
+ #1%
+ \fi
+ }%
+ }%
+ \long\def\@LTRfootnotetext#1{%
+ \HLTR@@LTRfootnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }%
+ \let\@currentHlabel\Hy@footnote@currentHlabel
+ \let\@currentHref\Hy@footnote@currentHref
+ \let\@currentlabelname\@empty
+ #1%
+ \fi
+ }%
+ }%
+ \def\@footnotemark{%
+ \leavevmode
+ \ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
+ \stepcounter{Hfootnote}%
+ \global\let\Hy@saved@currentHlabel\@currentHlabel
+ \global\let\Hy@saved@currentHref\@currentHref
+ \hyper@makecurrent{Hfootnote}%
+ \global\let\Hy@footnote@currentHlabel\@currentHlabel
+ \global\let\Hy@footnote@currentHref\@currentHref
+ \global\let\@currentHlabel\Hy@saved@currentHlabel
+ \global\let\@currentHref\Hy@saved@currentHref
+ \hyper@linkstart{link}{\Hy@footnote@currentHref}%
+ \@makefnmark
+ \hyper@linkend
+ \ifhmode\spacefactor\@x@sf\fi
+ \relax
+ }%
+ \let\HyOrg@maketitle\maketitle
+ \def\maketitle{%
+ \let\Hy@saved@footnotemark\@footnotemark
+ \let\Hy@saved@footnotetext\@footnotetext
+ \let\HyRTL@saved@RTLfootnotetext\@RTLfootnotetext
+ \let\HyLTR@saved@LTRfootnotetext\@LTRfootnotetext
+ \let\@footnotemark\H@@footnotemark
+ \let\@footnotetext\H@@footnotetext
+ \let\@RTLfootnotetext\HRTL@@RTLfootnotetext
+ \let\@LTRfootnotetext\HLTR@@LTRfootnotetext
+ \@ifnextchar[\Hy@maketitle@optarg{% ]
+ \HyOrg@maketitle
+ \Hy@maketitle@end
+ }%
+ }%
+ \def\Hy@maketitle@optarg[#1]{%
+ \HyOrg@maketitle[{#1}]%
+ \Hy@maketitle@end
+ }%
+ \def\Hy@maketitle@end{%
+ \ifx\@footnotemark\H@@footnotemark
+ \let\@footnotemark\Hy@saved@footnotemark
+ \fi
+ \ifx\@footnotetext\H@@footnotetext
+ \let\@footnotetext\Hy@saved@footnotetext
+ \fi
+ \ifx\@RTLfootnotetext\HRTL@@RTLfootnotetext
+ \let\@RTLfootnotetext\HyRTL@saved@RTLfootnotetext
+ \fi
+ \ifx\@LTRfootnotetext\HLTR@@LTRfootnotetext
+ \let\@LTRfootnotetext\HyLTR@saved@LTRfootnotetext
+ \fi
+ }%
+ \def\realfootnote{%
+ \@ifnextchar[\@xfootnote{%
+ \stepcounter{\@mpfn}%
+ \protected@xdef\@thefnmark{\thempfn}%
+ \H@@footnotemark\H@@footnotetext
+ }%
+ }%
+\fi
+ \def\equationautorefname{\if@RTL معادله\else Equation\fi}%
+ \def\footnoteautorefname{\if@RTL زیرنویس\else footnote\fi}%
+ \def\itemautorefname{\if@RTL فقره\else item\fi}%
+ \def\figureautorefname{\if@RTL شکل\else Figure\fi}%
+ \def\tableautorefname{\if@RTL جدول\else Table\fi}%
+ \def\partautorefname{\if@RTL بخش\else Part\fi}%
+ \def\appendixautorefname{\if@RTL ضمیمه\else Appendix\fi}%
+ \def\chapterautorefname{\if@RTL فصل\else chapter\fi}%
+ \def\sectionautorefname{\if@RTL قسمت\else section\fi}%
+ \def\subsectionautorefname{\if@RTL زیرقسمت\else subsection\fi}%
+ \def\subsubsectionautorefname{\if@RTL زیرزیرقسمت\else subsubsection\fi}%
+ \def\paragraphautorefname{\if@RTL پاراگراف\else paragraph\fi}%
+ \def\subparagraphautorefname{\if@RTL زیرپاراگراف\else subparagraph\fi}%
+ \def\FancyVerbLineautorefname{\if@RTL سطر\else line\fi}%
+ \def\theoremautorefname{\if@RTL قضیه\else Theorem\fi}%
+ \def\pageautorefname{\if@RTL صفحه\else page\fi}%
+\AtBeginDocument{%
+\let\HyOrg@appendix\appendix
+\def\appendix{%
+ \ltx@IfUndefined{chapter}%
+ {\gdef\theHsection{\Alph{section}}}%
+ {\gdef\theHchapter{\Alph{chapter}}}%
+ \xdef\Hy@chapapp{\Hy@appendixstring}%
+ \HyOrg@appendix
+}
+}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `hyperref-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/leqno-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/leqno-luapersian.def
new file mode 100644
index 00000000000..d84dfa7871e
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/leqno-luapersian.def
@@ -0,0 +1,27 @@
+%%
+%% This is file `leqno-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{leqno-luapersian.def}[2011/08/01 v0.1 adaptations for leqno tag]
+\renewcommand\@eqnnum{\hb@xt@.01\p@{}%
+ \rlap{\normalfont\normalcolor
+ \hskip -\displaywidth(\if@RTL\bgroup\textdir TRT\fi\theequation\if@RTL\egroup\fi)}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `leqno-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/letter-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/letter-luapersian.def
new file mode 100644
index 00000000000..1897921cd26
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/letter-luapersian.def
@@ -0,0 +1,47 @@
+%%
+%% This is file `letter-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{letter-luapersian.def}[2011/08/01 v0.1 adaptations for standard letter class]
+\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
+ \thispagestyle{firstpage}%
+ {\raggedleft\@date\par}%
+ \else % home address
+ \thispagestyle{empty}%
+ {\raggedleft\if@RTL\begin{tabular}{r@{}}\else\begin{tabular}{l@{}}\fi\ignorespaces
+ \fromaddress \\*[2\parskip]%
+ \@date \end{tabular}\par}%
+ \fi
+ \vspace{2\parskip}%
+ {\raggedright \toname \\ \toaddress \par}%
+ \vspace{2\parskip}%
+ #1\par\nobreak}
+\renewcommand\right@footnote{%
+ \kern-\p@
+ \hrule \@width .4\columnwidth
+ \kern .6\p@}
+\renewcommand\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-\p@
+ \hrule \@width .4\columnwidth
+ \kern .6\p@}\hfil}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `letter-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/listings-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/listings-luapersian.def
new file mode 100644
index 00000000000..257878419a5
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/listings-luapersian.def
@@ -0,0 +1,26 @@
+%%
+%% This is file `listings-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{listings-luapersian.def}[2011/08/01 v0.1 bilingual captions for listings package]
+\def\lstlistingname{\if@RT برنامهٔ\else Listing\fi}
+\def\lstlistlistingname{\if@RTL فهرست برنامه‌ها\else Listings\fi}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `listings-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/loadingorder-luapersian.sty b/Master/texmf-dist/tex/lualatex/luapersian/loadingorder-luapersian.sty
new file mode 100644
index 00000000000..a6e2042e043
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/loadingorder-luapersian.sty
@@ -0,0 +1,249 @@
+%%
+%% This is file `loadingorder-luapersian.sty',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{loadingorder-luapersian.sty}[2011/08/01 v0.1 making sure that luapersian is the last package loaded]
+\newcommand\luapersian@isloaded[2][]{
+ \expandafter\ifx\csname if@luapersian@#2loaded@\endcsname\relax
+ \expandafter\newif\csname if@luapersian@#2loaded@\endcsname
+ \fi
+ \@ifpackageloaded{#2}
+ {\csname @luapersian@#2loaded@true\endcsname #1}
+ {\csname @luapersian@#2loaded@false\endcsname}}
+\luapersian@isloaded{algorithmic}
+\luapersian@isloaded{algorithm}
+\luapersian@isloaded{backref}
+\luapersian@isloaded{enumerate}
+\luapersian@isloaded{tocloft}
+\luapersian@isloaded{amsmath}
+\luapersian@isloaded{amsthm}
+\luapersian@isloaded{breqn}
+\luapersian@isloaded{caption}
+\luapersian@isloaded{color}
+\luapersian@isloaded{dblfnote}
+\luapersian@isloaded{xcolor}
+\luapersian@isloaded{colortbl}
+\luapersian@isloaded{float}
+\luapersian@isloaded{flowfram}
+\luapersian@isloaded{framed}
+\luapersian@isloaded{xltxtra}
+\luapersian@isloaded{xunicode}
+\luapersian@isloaded{wrapfig}
+\luapersian@isloaded{graphicx}
+\luapersian@isloaded{hvfloat}
+\luapersian@isloaded{hyperref}
+\luapersian@isloaded{fancyhdr}
+\luapersian@isloaded{draftwatermark}
+\luapersian@isloaded{empheq}
+\luapersian@isloaded{pdfpages}
+\luapersian@isloaded{listings}
+\luapersian@isloaded{pstricks}
+\luapersian@isloaded{pgf}
+\luapersian@isloaded{quotchap}
+\luapersian@isloaded{tikz}
+\luapersian@isloaded{titlesec}
+\luapersian@isloaded{titletoc}
+\luapersian@isloaded{array}
+\luapersian@isloaded{stabular}
+\luapersian@isloaded{subfig}
+\luapersian@isloaded{subfigure}
+\luapersian@isloaded{supertabular}
+\luapersian@isloaded{xtab}
+\luapersian@isloaded{longtable}
+\luapersian@isloaded{arydshln}
+\luapersian@isloaded{multicol}
+\luapersian@isloaded{multienum}
+\luapersian@isloaded{minitoc}
+\luapersian@isloaded{natbib}
+\luapersian@isloaded{ragged2e}
+\luapersian@isloaded{tabls}
+\luapersian@isloaded{tabulary}
+\luapersian@isloaded{tocstyle}
+\luapersian@isloaded{fontspec}
+\luapersian@isloaded{arabxetex}
+\luapersian@isloaded{polyglossia}
+\luapersian@isloaded{fancyvrb}
+\AtBeginDocument{
+ \if@luapersian@amsmathloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package amsmath after luapersian package. Please load package amsmath before luapersian package, and then try to run lualatex on your document again}{}]{amsmath}
+ \fi%
+ \if@luapersian@amsthmloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package amsthm after luapersian package. Please load package amsthm before luapersian package, and then try to run lualatex on your document again}{}]{amsthm}
+ \fi%
+ \if@luapersian@breqnloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package breqn after luapersian package. Please load package breqn before luapersian package, and then try to run lualatex on your document again}{}]{breqn}
+ \fi%
+ \if@luapersian@captionloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package caption after luapersian package. Please load package caption before luapersian package, and then try to run lualatex on your document again}{}]{caption}
+ \fi%
+ \if@luapersian@colorloaded@\else
+ \@ifpackageloaded{hyperref}{}{%
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package color after luapersian package. Please load package color before luapersian package, and then try to run lualatex on your document again}{}]{color}}
+ \fi%
+ \if@luapersian@dblfnoteloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package dblfnote after luapersian package. Please load package dblfnote before luapersian package, and then try to run lualatex on your document again}{}]{dblfnote}
+ \fi%
+ \if@luapersian@xcolorloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package xcolor after luapersian package. Please load package xcolor before luapersian package, and then try to run lualatex on your document again}{}]{xcolor}
+ \fi%
+ \if@luapersian@colortblloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package colortbl after luapersian package. Please load package colortbl before luapersian package, and then try to run lualatex on your document again}{}]{colortbl}
+ \fi%
+ \if@luapersian@floatloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package float after luapersian package. Please load package float before luapersian package, and then try to run lualatex on your document again}{}]{float}
+ \fi%
+ \if@luapersian@flowframloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package flowfram after luapersian package. Please load package flowfram before luapersian package, and then try to run lualatex on your document again}{}]{flowfram}
+ \fi%
+ \if@luapersian@framedloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package framed after luapersian package. Please load package framed before luapersian package, and then try to run lualatex on your document again}{}]{framed}
+ \fi%
+ \if@luapersian@xltxtraloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package xltxtra after luapersian package. Please load package xltxtra before luapersian package, and then try to run lualatex on your document again}{}]{xltxtra}
+ \fi%
+ \if@luapersian@xunicodeloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package xunicode after luapersian package. Please load package xunicode before luapersian package, and then try to run lualatex on your document again}{}]{xunicode}
+ \fi%
+ \if@luapersian@wrapfigloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package wrapfig after luapersian package. Please load package wrapfig before luapersian package, and then try to run lualatex on your document again}{}]{wrapfig}
+ \fi%
+ \if@luapersian@graphicxloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package graphicx after luapersian package. Please load package graphicx before luapersian package, and then try to run lualatex on your document again}{}]{graphicx}
+ \fi%
+ \if@luapersian@hvfloatloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package hvfloat after luapersian package. Please load package hvfloat before luapersian package, and then try to run lualatex on your document again}{}]{hvfloat}
+ \fi%
+ \if@luapersian@hyperrefloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package hyperref after luapersian package. Please load package hyperref before luapersian package, and then try to run lualatex on your document again}{}]{hyperref}
+ \fi%
+ \if@luapersian@fancyhdrloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package fancyhdr after luapersian package. Please load package fancyhdr before luapersian package, and then try to run lualatex on your document again}{}]{fancyhdr}
+ \fi%
+ \if@luapersian@draftwatermarkloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package draftwatermark after luapersian package. Please load package draftwatermark before luapersian package, and then try to run lualatex on your document again}{}]{draftwatermark}
+ \fi%
+ \if@luapersian@empheqloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package empheq after luapersian package. Please load package empheq before luapersian package, and then try to run lualatex on your document again}{}]{empheq}
+ \fi%
+ \if@luapersian@pdfpagesloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package pdfpages after luapersian package. Please load package pdfpages before luapersian package, and then try to run lualatex on your document again}{}]{pdfpages}
+ \fi%
+ \if@luapersian@listingsloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package listings after luapersian package. Please load package listings before luapersian package, and then try to run lualatex on your document again}{}]{listings}
+ \fi%
+ \if@luapersian@pstricksloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package pstricks after luapersian package. Please load package pstricks before luapersian package, and then try to run lualatex on your document again}{}]{pstricks}
+ \fi%
+ \if@luapersian@pgfloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package pgf after luapersian package. Please load package pgf before luapersian package, and then try to run lualatex on your document again}{}]{pgf}
+ \fi%
+ \if@luapersian@quotchaploaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package quotchap after luapersian package. Please load package quotchap before luapersian package, and then try to run lualatex on your document again}{}]{quotchap}
+ \fi%
+ \if@luapersian@tikzloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package tikz after luapersian package. Please load package tikz before luapersian package, and then try to run lualatex on your document again}{}]{tikz}
+ \fi%
+ \if@luapersian@titlesecloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package titlesec after luapersian package. Please load package titlesec before luapersian package, and then try to run lualatex on your document again}{}]{titlesec}
+ \fi%
+ \if@luapersian@titletocloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package titletoc after luapersian package. Please load package titletoc before luapersian package, and then try to run lualatex on your document again}{}]{titletoc}
+ \fi%
+ \if@luapersian@arrayloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package array after luapersian package. Please load package array before luapersian package, and then try to run lualatex on your document again}{}]{array}
+ \fi%
+ \if@luapersian@stabularloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package stabular after luapersian package. Please load package stabular before luapersian package, and then try to run lualatex on your document again}{}]{stabular}
+ \fi%
+ \if@luapersian@subfigloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package subfig after luapersian package. Please load package subfig before luapersian package, and then try to run lualatex on your document again}{}]{subfig}
+ \fi%
+ \if@luapersian@subfigureloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package subfigure after luapersian package. Please load package subfigure before luapersian package, and then try to run lualatex on your document again}{}]{subfigure}
+ \fi%
+ \if@luapersian@supertabularloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package supertabular after luapersian package. Please load package supertabular before luapersian package, and then try to run lualatex on your document again}{}]{supertabular}
+ \fi%
+ \if@luapersian@xtabloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package xtab after luapersian package. Please load package xtab before luapersian package, and then try to run lualatex on your document again}{}]{xtab}
+ \fi%
+ \if@luapersian@longtableloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package longtable after luapersian package. Please load package longtable before luapersian package, and then try to run lualatex on your document again}{}]{longtable}
+ \fi%
+ \if@luapersian@arydshlnloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package arydshln after luapersian package. Please load package arydshln before luapersian package, and then try to run lualatex on your document again}{}]{arydshln}
+ \fi%
+ \if@luapersian@multicolloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package multicol after luapersian package. Please load package multicol before luapersian package, and then try to run lualatex on your document again}{}]{multicol}
+ \fi%
+ \if@luapersian@multienumloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package multienum after luapersian package. Please load package multienum before luapersian package, and then try to run lualatex on your document again}{}]{multienum}
+ \fi%
+ \if@luapersian@minitocloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package minitoc after luapersian package. Please load package minitoc before luapersian package, and then try to run lualatex on your document again}{}]{minitoc}
+ \fi%
+ \if@luapersian@natbibloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package natbib after luapersian package. Please load package natbib before luapersian package, and then try to run lualatex on your document again}{}]{natbib}
+ \fi%
+ \csname if@luapersian@ragged2eloaded@\endcsname\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package ragged2e after luapersian package. Please load package ragged2e before luapersian package, and then try to run lualatex on your document again}{}]{ragged2e}
+ \fi%
+ \if@luapersian@tablsloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package tabls after luapersian package. Please load package tabls before luapersian package, and then try to run lualatex on your document again}{}]{tabls}
+ \fi%
+ \if@luapersian@tabularyloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package tabulary after luapersian package. Please load package tabulary before luapersian package, and then try to run lualatex on your document again}{}]{tabulary}
+ \fi%
+ \if@luapersian@tocstyleloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package tocstyle after luapersian package. Please load package tocstyle before luapersian package, and then try to run lualatex on your document again}{}]{tocstyle}
+ \fi%
+ \if@luapersian@fontspecloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package fontspec after luapersian package. Please load package fontspec before luapersian package, and then try to run lualatex on your document again}{}]{fontspec}
+ \fi%
+ \if@luapersian@arabxetexloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package arabxetex after luapersian package. Please load package arabxetex before luapersian package, and then try to run lualatex on your document again}{}]{arabxetex}
+ \fi%
+ \if@luapersian@polyglossialoaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package polyglossia after luapersian package. Please load package polyglossia before luapersian package, and then try to run lualatex on your document again}{}]{polyglossia}
+ \fi%
+ \if@luapersian@fancyvrbloaded@\else
+ \luapersian@isloaded[\PackageError{luapersian}{Oops! you have loaded package fancyvrb after luapersian package. Please load package fancyvrb before luapersian package, and then try to run lualatex on your document again}{}]{fancyvrb}
+ \fi%
+}
+\AtBeginDocument{
+ \if@luapersian@algorithmicloaded@\else
+ \luapersian@isloaded[\PackageError{xepersian}{Oops! you have loaded package algorithmic after xepersian package. Please load package algorithmic before xepersian package, and then try to run lualatex on your document again}{}]{algorithmic}
+ \fi%
+ \if@luapersian@algorithmloaded@\else
+ \luapersian@isloaded[\PackageError{xepersian}{Oops! you have loaded package algorithm after xepersian package. Please load package algorithm before xepersian package, and then try to run lualatex on your document again}{}]{algorithm}
+ \fi%
+ \if@luapersian@backrefloaded@\else
+ \luapersian@isloaded[\PackageError{xepersian}{Oops! you have loaded package backref after xepersian package. Please load package backref before xepersian package, and then try to run lualatex on your document again}{}]{backref}
+ \fi%
+ \if@luapersian@enumerateloaded@\else
+ \luapersian@isloaded[\PackageError{xepersian}{Oops! you have loaded package enumerate after xepersian package. Please load package enumerate before xepersian package, and then try to run lualatex on your document again}{}]{enumerate}
+ \fi%
+ \if@luapersian@tocloftloaded@\else
+ \luapersian@isloaded[\PackageError{xepersian}{Oops! you have loaded package tocloft after xepersian package. Please load package tocloft before xepersian package, and then try to run lualatex on your document again}{}]{tocloft}
+ \fi%
+}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `loadingorder-luapersian.sty'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/localise-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/localise-luapersian.def
new file mode 100644
index 00000000000..27add6510db
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/localise-luapersian.def
@@ -0,0 +1,37 @@
+%%
+%% This is file `localise-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{localise-luapersian.def}[2011/08/01 v0.1 Persian localisation of LaTeX2e]
+\newcommand{\makezwnjletter}{\catcode`‌=11\relax}
+\makezwnjletter
+\newcommand*{\eqcommand}[2]{%
+\expandafter\@ifdefinable \csname#1\endcsname{%
+\expandafter\let\csname#1\expandafter\endcsname\csname#2\endcsname}}
+\newcommand*{\eqenvironment}[2]{\newenvironment{#1}{\csname#2\endcsname}{\csname end#2\endcsname}}
+\input{commands-ltx-luapersian.def}
+\input{commands-luapersian.def}
+\input{environments-ltx-luapersian.def}
+\input{environments-luapersian.def}
+\input{messages-localise-luapersian.def}
+\input{misc-localise-luapersian.def}
+\input{packages-localise-luapersian.def}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `localise-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/luapersian-footnote.sty b/Master/texmf-dist/tex/lualatex/luapersian/luapersian-footnote.sty
new file mode 100644
index 00000000000..6830d424d7a
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/luapersian-footnote.sty
@@ -0,0 +1,260 @@
+%%
+%% This is file `luapersian-footnote.sty',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{luapersian-footnote}[2011/08/01 v0.1 provides footnote macros for luapersian]
+\newif\if@sentdir
+\def\@ltr{\if@RTL\par\@RTLfalse\@RTL@footnotefalse\fi}
+\def\@rtl{\if@RTL\relax\else\par\@RTLtrue\@RTL@footnotetrue\fi}
+\@RTL@footnotetrue
+\def\bidi@footnote@output{{%
+ \dimen0=\ht\footins
+ \advance\dimen0 by\dp\footins
+ \def\@elt##1##2{%
+ \ifx\bidi@footnoterule\relax\global\let\bidi@footnoterule##2\fi
+ \advance\dimen0 by -##1\relax
+ \ifdim\dimen0<\z@
+ {%
+ \let\@elt\relax\let\right@footnote\relax\let\left@footnote\relax
+ \dimen0=-\dimen0%
+ \xdef\new@bidi@footnote@list{\new@bidi@footnote@list\noexpand\@elt{\the\dimen0}{##2}}%
+}%
+ \fi
+ \ifdim\dimen0>\z@\else
+\let\right@footnote\relax\let\left@footnote\relax
+\def\@elt####1####2{%
+ {\let\@elt\relax
+ \xdef\new@bidi@footnote@list{\new@bidi@footnote@list\noexpand\@elt{####1}{####2}}}%
+}%
+ \fi
+ }%
+ \def\new@bidi@footnote@list{}%
+ \bidi@footnote@list
+ \global\let\bidi@footnote@list\new@bidi@footnote@list
+ }}
+\def\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{\kern -3\p@
+ \hrule width .4\columnwidth \kern2.6\p@}\hfil}}
+\def\right@footnote{%
+ \hrule width .4\columnwidth\kern 2.6\p@}
+\def\textwidth@footnote{\kern-3\p@
+ \hrule \@width \textwidth \kern 2.6\p@}
+\def\right@footnoterule{\bidi@footnote@output\right@footnote\global\let\bidi@footnoterule\relax}
+\def\left@footnoterule{\bidi@footnote@output\left@footnote\global\let\bidi@footnoterule\relax}
+\def\textwidth@footnoterule{\bidi@footnote@output\textwidth@footnote\global\let\bidi@footnoterule\relax}
+\def\auto@footnoterule{\bidi@footnote@output
+ \ifx\bidi@footnoterule\relax\if@RTL\right@footnote\else\left@footnote\fi\else\bidi@footnoterule\fi
+ \global\let\bidi@footnoterule\relax}
+\def\leftfootnoterule{\def\footnoterule{\left@footnoterule}}
+\let\LRfootnoterule=\leftfootnoterule
+\def\rightfootnoterule{\def\footnoterule{\right@footnoterule}}
+\def\textwidthfootnoterule{\def\footnoterule{\textwidth@footnoterule}}
+\def\autofootnoterule{\def\footnoterule{\auto@footnoterule}}
+\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}
+\def\bidi@footnote@list{}
+\let\bidi@footnoterule\relax
+\def\RTLfootnote{\@ifnextchar[\@xRTLfootnote{\stepcounter\@mpfn
+ \protected@xdef\@thefnmark{\thempfn}%
+ \@footnotemark\@RTLfootnotetext}}
+\def\@xRTLfootnote[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \@footnotemark\@RTLfootnotetext}
+\def\LTRfootnote{\@ifnextchar[\@xLTRfootnote{\stepcounter\@mpfn
+ \protected@xdef\@thefnmark{\thempfn}%
+ \@footnotemark\@LTRfootnotetext}}
+\def\@xLTRfootnote[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \@footnotemark\@LTRfootnotetext}
+\def\insertRTL{\bgroup\texdir TRT\@RTLtrue}
+\def\endinsertRTL{\egroup}
+\def\insertLTR{\bgroup\textdir TLT\@RTLfalse}
+\def\endinsertLTR{\egroup}
+\DeclareRobustCommand\InLTR{\insertLTR}
+\DeclareRobustCommand\EInLTR{\endinsertLTR}
+\DeclareRobustCommand\InRTL{\insertRTL}
+\DeclareRobustCommand\EInRTL{\endinsertRTL}
+\long\def\parse@lsent#1#2\EInLTR#3#4#5\parse@end{\@sentdirfalse
+\def\@tempa{\InLTR}\def\@tempb{\EInLTR}\def\@tempc{#1}\def\@tempd{#4}%
+\ifx\@tempa\@tempc\ifx\@tempb\@tempd\@sentdirtrue\fi\fi}
+\long\def\parse@rsent#1#2\EInRTL#3#4#5\parse@end{\@sentdirfalse
+\def\@tempa{\InRTL}\def\@tempb{\EInRTL}\def\@tempc{#1}\def\@tempd{#4}%
+\ifx\@tempa\@tempc\ifx\@tempb\@tempd\@sentdirtrue\fi\fi}
+\long\def\iflsentence#1{\parse@lsent#1\EInLTR123\parse@end\if@sentdir}
+\long\def\ifrsentence#1{\parse@rsent#1\EInRTL123\parse@end\if@sentdir}
+\long\def\bidi@footnotetext@dir#1{%
+ \@tempswatrue
+ \ifrsentence{#1}\@rtl\@tempswafalse\fi
+ \iflsentence{#1}\@ltr\@tempswafalse\fi
+ \if@tempswa\if@RTL\@rtl\else\@ltr\fi\fi
+ \xdef\bidi@this@footnote{\if@RTL\noexpand\right@footnote\else\noexpand\left@footnote\fi}%
+}
+\def\bidi@footnotetext@after{%
+ {%
+ \let\@elt\relax\let\right@footnote\relax\let\left@footnote\relax
+ \dimen0=\ht\footins
+ \advance\dimen0 by\dp\footins
+ \xdef\bidi@footnote@list{\bidi@footnote@list\@elt{\the\dimen0}{\bidi@this@footnote}}%
+ }%
+}
+\def\setfootnoteRL{\@RTL@footnotetrue}
+\def\unsetfootnoteRL{\@RTL@footnotefalse}
+\def\setfootnoteLR{\unsetfootnoteRL}
+\long\def\@footnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces#1\strut}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@RTLfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox dir TRT{\@RTLtrue\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces\persianfont #1\strut}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@LTRfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox dir TLT{\@RTLfalse\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces\latinfont#1\strut}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@mpRTLfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox dir TRT{\@RTLtrue%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \color@begingroup
+ \bidi@footnotetext@dir{#1}
+ \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces\persianfont#1\@finalstrut\strutbox}%
+ \color@endgroup}}
+\long\def\@mpLTRfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox dir TLT{\@RTLfalse%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \color@begingroup
+ \bidi@footnotetext@dir{#1}
+ \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces\latinfont#1\@finalstrut\strutbox}%
+ \color@endgroup}}
+\long\def\@mpfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \color@begingroup
+ \bidi@footnotetext@dir{#1}
+ \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+ \color@endgroup}}
+\def\@iiiminipage#1#2[#3]#4{%
+ \leavevmode
+ \@pboxswfalse
+ \setlength\@tempdima{#4}%
+ \def\@mpargs{{#1}{#2}[#3]{#4}}%
+ \setbox\@tempboxa\vbox\bgroup
+ \color@begingroup
+ \hsize\@tempdima
+ \textwidth\hsize \columnwidth\hsize
+ \@parboxrestore
+ \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@
+ \let\@footnotetext\@mpfootnotetext
+ \let\@LTRfootnotetext\@mpLTRfootnotetext
+ \let\@RTLfootnotetext\@mpRTLfootnotetext
+ \let\@listdepth\@mplistdepth \@mplistdepth\z@
+ \@minipagerestore
+ \@setminipage}
+\def\LTRthanks#1{\footnotemark
+ \protected@xdef\@thanks{\@thanks
+ \protect\LTRfootnotetext[\the\c@footnote]{#1}}%
+}
+\def\LTRfootnotetext{%
+ \@ifnextchar [\@xLTRfootnotenext
+ {\protected@xdef\@thefnmark{\thempfn}%
+ \@LTRfootnotetext}}
+\def\@xLTRfootnotenext[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \@LTRfootnotetext}
+\def\RTLthanks#1{\footnotemark
+ \protected@xdef\@thanks{\@thanks
+ \protect\RTLfootnotetext[\the\c@footnote]{#1}}%
+}
+\let\@thanks\@empty
+\def\RTLfootnotetext{%
+ \@ifnextchar [\@xRTLfootnotenext
+ {\protected@xdef\@thefnmark{\thempfn}%
+ \@RTLfootnotetext}}
+\def\@xRTLfootnotenext[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \@RTLfootnotetext}
+\autofootnoterule
+\endinput
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `luapersian-footnote.sty'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/luapersian-mathsdigitspec.sty b/Master/texmf-dist/tex/lualatex/luapersian/luapersian-mathsdigitspec.sty
new file mode 100644
index 00000000000..7b6f50a4af3
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/luapersian-mathsdigitspec.sty
@@ -0,0 +1,177 @@
+%%
+%% This is file `luapersian-mathsdigitspec.sty',
+%% generated with the docstrip utility.
+%%
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{luapersian-mathsdigitspec}
+ [2011/03/01 v0.1 Unicode Persian maths digits in LuaLaTeX]
+\directlua { tex.enableprimitives('',{'Umathcode','Umathchardef'}) }
+\ExplSyntaxOn
+\bool_set_false:N \g_fontspec_math_bool
+\ExplSyntaxOff
+\def\@preamblecmds{}
+\newcommand\not@onlypreamble[1]{{%
+ \def\do##1{\ifx#1##1\else\noexpand\do\noexpand##1\fi}%
+ \xdef\@preamblecmds{\@preamblecmds}}}
+\def\gm@notprerr{ can be used only in preamble (\on@line)}
+\AtBeginDocument{%
+ \def\do#1{\noexpand\do\noexpand#1}%
+ \edef\@preamblecmds{%
+ \def\noexpand\do##1{%
+ \def##1{\noexpand\PackageError{gmutils/LaTeX}%
+ {\noexpand\string##1 \noexpand\gm@notprerr}\noexpand\@eha}}%
+ \@preamblecmds}}
+\def\nocite#1{%
+ \@bsphack{\setbox0=\hbox{\cite{#1}}}\@esphack}
+\newcommand\luapersian@PackageInfo[1]{\PackageInfo{luapersian-mathsdigitspec}{#1}}
+\newcommand\SetMathCode[4]{%
+ \Umathcode#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax}
+\newcommand\SetMathCharDef[4]{%
+ \Umathchardef#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax}
+\ExplSyntaxOn
+\cs_new_eq:NN \orig_mathbf:n \mathbf
+\cs_new_eq:NN \orig_mathit:n \mathit
+\cs_new_eq:NN \orig_mathrm:n \mathrm
+\cs_new_eq:NN \orig_mathsf:n \mathsf
+\cs_new_eq:NN \orig_mathtt:n \mathtt
+\NewDocumentCommand \new@mathbf { m } {
+ \orig_mathbf:n {
+ \prg_stepwise_inline:nnnn { `0 } { \c_one } { `9 } {
+ \mathcode ##1 = \numexpr "100 * \symnew@mathbf@font@digits + ##1 \relax
+ }
+ #1
+ }
+}
+\NewDocumentCommand \new@mathit { m } {
+ \orig_mathit:n {
+ \prg_stepwise_inline:nnnn { `0 } { \c_one } { `9 } {
+ \mathcode ##1 = \numexpr "100 * \symnew@mathit@font@digits + ##1 \relax
+ }
+ #1
+ }
+}
+\NewDocumentCommand \new@mathrm { m } {
+ \orig_mathrm:n {
+ \prg_stepwise_inline:nnnn { `0 } { \c_one } { `9 } {
+ \mathcode ##1 = \numexpr "100 * \symnew@mathrm@font@digits + ##1 \relax
+ }
+ #1
+ }
+}
+\NewDocumentCommand \new@mathsf{ m } {
+ \orig_mathsf:n {
+ \prg_stepwise_inline:nnnn { `0 } { \c_one } { `9 } {
+ \mathcode ##1 = \numexpr "100 * \symnew@mathsf@font@digits + ##1 \relax
+ }
+ #1
+ }
+}
+\NewDocumentCommand \new@mathtt{ m } {
+ \orig_mathtt:n {
+ \prg_stepwise_inline:nnnn { `0 } { \c_one } { `9 } {
+ \mathcode ##1 = \numexpr "100 * \symnew@mathtt@font@digits + ##1 \relax
+ }
+ #1
+ }
+}
+\ExplSyntaxOff
+\newcommand\setdigitfont[2][]{%
+ \let\glb@currsize\relax
+ \setkeys*[luapersian-mathsdigitspec]{options}{#1}%
+ \edef\@tempa{\noexpand\zf@fontspec{%
+ \XKV@rm}{#2}}\@tempa
+ \luapersian@PackageInfo{Defining the default Persian maths digits font as '#2'}
+ \DeclareSymbolFont{OPERATORS} {EU2}{\zf@family} {m}{n}
+ \DeclareSymbolFont{new@mathbf@font@digits}{EU2}{\zf@family}{bx}{n}
+ \DeclareSymbolFont{new@mathit@font@digits}{EU2}{\zf@family}{m}{it}
+ \DeclareSymbolFont{new@mathrm@font@digits}{EU2}{\zf@family}{m}{n}
+ \def\persianmathsdigits{%
+ \SetMathCode{`0}{\mathalpha}{OPERATORS}{`۰}
+ \SetMathCode{`1}{\mathalpha}{OPERATORS}{`۱}
+ \SetMathCode{`2}{\mathalpha}{OPERATORS}{`۲}
+ \SetMathCode{`3}{\mathalpha}{OPERATORS}{`۳}
+ \SetMathCode{`4}{\mathalpha}{OPERATORS}{`۴}
+ \SetMathCode{`5}{\mathalpha}{OPERATORS}{`۵}
+ \SetMathCode{`6}{\mathalpha}{OPERATORS}{`۶}
+ \SetMathCode{`7}{\mathalpha}{OPERATORS}{`۷}
+ \SetMathCode{`8}{\mathalpha}{OPERATORS}{`۸}
+ \SetMathCode{`9}{\mathalpha}{OPERATORS}{`۹}
+ \SetMathCode{`\%}{\mathbin}{OPERATORS}{`٪}
+ \SetMathCharDef{\decimalseparator}{\mathpunct}{OPERATORS}{"066B}
+ \let\mathbf\new@mathbf
+ \let\mathit\new@mathit
+ \let\mathrm\new@mathrm}
+}
+\newcommand*\setmathsfdigitfont[2][]{%
+\zf@fontspec{Numbers=Parsi,Language=Parsi,#1}{#2}%
+\let\zf@sfmaths\zf@family
+\DeclareSymbolFont{new@mathsf@font@digits}{EU2}{\zf@family}{m}{n}
+\def\persianmathsfdigits{\let\mathsf\new@mathsf}}
+\newcommand*\setmathttdigitfont[2][]{%
+\zf@fontspec{Numbers=Parsi,Language=Parsi,#1}{#2}%
+\let\zf@ttmaths\zf@family
+\DeclareSymbolFont{new@mathtt@font@digits}{EU2}{\zf@family}{m}{n}
+\def\persianmathttdigits{\let\mathtt\new@mathtt}}
+\ifx\newcommand\undefined\else
+ \newcommand{\ZifferAn}{}
+\fi
+\mathchardef\ziffer@DotOri="013A
+{\ZifferAn
+ \catcode`\.=\active\gdef.{\begingroup\obeyspaces\futurelet\n\ziffer@dcheck}}
+\def\ziffer@dcheck{\ziffer@check\ZifferLeer\ziffer@DotOri}
+\def\ziffer@check#1#2{%
+ \ifx\n1\endgroup#1\else
+ \ifx\n2\endgroup#1\else
+ \ifx\n3\endgroup#1\else
+ \ifx\n4\endgroup#1\else
+ \ifx\n5\endgroup#1\else
+ \ifx\n6\endgroup#1\else
+ \ifx\n7\endgroup#1\else
+ \ifx\n8\endgroup#1\else
+ \ifx\n9\endgroup#1\else
+ \ifx\n0\endgroup#1\else
+ \endgroup#2%
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi}
+\mathcode`.="8000\relax
+\def\ZifferLeer{\ifx\decimalseparator\undefied .\else \decimalseparator\fi}
+\def\DefaultMathsDigits{\def\SetMathsDigits{}}
+\def\PersianMathsDigits{\def\SetMathsDigits{%
+\ifx\persianmathsdigits\undefied\else\persianmathsdigits\fi%
+\ifx\persianmathsfdigits\undefied\else\persianmathsfdigits\fi%
+\ifx\persianmathttdigits\undefied\else\persianmathttdigits\fi}}
+\def\AutoMathsDigits{\def\SetMathsDigits{%
+\ifx\persianmathsdigits\undefied\else\if@Latin\else\persianmathsdigits\fi\fi%
+\ifx\persianmathsfdigits\undefied\else\if@Latin\else\persianmathsfdigits\fi\fi%
+\ifx\persianmathttdigits\undefied\else\if@Latin\else\persianmathttdigits\fi\fi}}
+\AutoMathsDigits
+\everymath\expandafter{\the\everymath\SetMathsDigits}
+\g@addto@macro\document{\everydisplay\expandafter{\the\everydisplay\SetMathsDigits}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `luapersian-mathsdigitspec.sty'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/luapersian-multiplechoice.sty b/Master/texmf-dist/tex/lualatex/luapersian/luapersian-multiplechoice.sty
new file mode 100644
index 00000000000..0cd8620e217
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/luapersian-multiplechoice.sty
@@ -0,0 +1,160 @@
+%%
+%% This is file `luapersian-multiplechoice.sty',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{luapersian-multiplechoice}[2011/08/01 v0.1
+ Multiple Choice Questionnaire class for Persian in XeLaTeX]
+\RequirePackage{pifont}
+\RequirePackage{fullpage}
+\RequirePackage{ifthen}
+\RequirePackage{calc}
+\RequirePackage{verbatim}
+\RequirePackage{tabularx}
+\def\@headerfont{\bfseries}
+\newcommand\headerfont[1]{\gdef\@headerfont{#1}}
+\def\@X{X}
+\newcommand\X[1]{\gdef\@X{#1}}
+\def\pbs#1{\let\tmp=\\#1\let\\=\tmp}
+\newcolumntype{D}{>{\pbs\centering}X}
+\newcolumntype{Q}{>{\@headerfont}X}
+
+\renewcommand\tabularxcolumn[1]{m{#1}}
+\newcommand\makeform@nocorrection{%
+ \addtocontents{frm}{\protect\end{tabularx}}
+ \@starttoc{frm}}
+\newcommand\makeform@correction{%
+ \addtocontents{frm}{\protect\end{tabularx}}}
+\newcommand\makemask@nocorrection{%
+ \addtocontents{msk}{\protect\end{tabularx}}
+ \@starttoc{msk}}
+\newcommand\makemask@correction{%
+ \addtocontents{msk}{\protect\end{tabularx}}}
+\newlength\questionspace
+\setlength\questionspace{0pt}
+\newcommand\answerstitle[1]{\gdef\@answerstitle{#1}}
+\def\@answerstitlefont{\bfseries}
+\newcommand\answerstitlefont[1]{\gdef\@answerstitlefont{#1}}
+\def\@answernumberfont{\bfseries}
+\newcommand\answernumberfont[1]{\gdef\@answernumberfont{#1}}
+\newcounter{question}\stepcounter{question}
+\newcounter{@choice}
+\def\@initorcheck{%
+ \xdef\@choices{\the@choice}%
+ \setcounter{@choice}{1}%
+ \gdef\@arraydesc{|Q||}%
+ \gdef\@headerline{}%
+ \whiledo{\not{\value{@choice}>\@choices}}{
+ \xdef\@arraydesc{\@arraydesc D|}
+ \def\@appendheader{\g@addto@macro\@headerline}
+ \@appendheader{&\protect\@headerfont}
+ \edef\@the@choice{{\alph{@choice}}}
+ \expandafter\@appendheader\@the@choice
+ \stepcounter{@choice}}%
+ \addtocontents{frm}{%
+ \protect\begin{tabularx}{\protect\linewidth}{\@arraydesc}
+ \protect\hline
+ \@headerline\protect\\\protect\hline\protect\hline}%
+ \addtocontents{msk}{%
+ \protect\begin{tabularx}{\protect\linewidth}{\@arraydesc}
+ \protect\hline
+ \@headerline\protect\\\protect\hline\protect\hline}%
+ \gdef\@initorcheck{%
+ \ifthenelse{\value{@choice} = \@choices}{}{%
+ \ClassError{luapersian-multiplechoice}{Question \thequestion: wrong number of choices
+ (\the@choice\space instead of \@choices)}{%
+ Questions must all have the same number of proposed answers.%
+ \MessageBreak
+ Type X <return> to quit, fix your MCQ (multiple choice question) and rerun XeLaTeX.}}}}
+\newenvironment{question}[1]{%
+ %% \begin{question}
+ \begin{minipage}{\textwidth}
+ \xdef\@formanswerline{\@questionheader}%
+ \xdef\@maskanswerline{\@questionheader}%
+ \fbox{\parbox[c]{\linewidth}{#1}}
+ \vspace\questionspace\par
+ {\@answerstitlefont\@answerstitle}
+ \begin{list}{\@answernumberfont\alph{@choice})~}{\usecounter{@choice}}}{%
+ %% \end{question}
+ \end{list}
+ \@initorcheck%
+ \addtocontents{frm}{\@formanswerline\protect\\\protect\hline}%
+ \addtocontents{msk}{\@maskanswerline\protect\\\protect\hline}%
+ \end{minipage}
+ \stepcounter{question}}
+\def\@truesymbol{\ding{52}~}
+\def\@falsesymbol{\ding{56}~}
+\newcommand\truesymbol[1]{\gdef\@truesymbol{#1}}
+\newcommand\falsesymbol[1]{\gdef\@falsesymbol{#1}}
+\def\@true@nocorrection{\item}
+\def\@false@nocorrection{\item}
+\def\@true@correction{\item[\@truesymbol\refstepcounter{@choice}]}
+\def\@false@correction{\item[\@falsesymbol\refstepcounter{@choice}]}
+\newcommand\true{%
+ \xdef\@formanswerline{\@formanswerline&}%
+ \xdef\@maskanswerline{\@maskanswerline&\@X}%
+ \@true}%
+\newcommand\false{%
+ \xdef\@formanswerline{\@formanswerline&}%
+ \xdef\@maskanswerline{\@maskanswerline&}%
+ \@false}%
+\def\@correctionstyle{\itshape}
+\newcommand\correctionstyle[1]{\gdef\@correctionstyle{#1}}
+\newenvironment{@correction}{\@correctionstyle}{}
+ \def\@questionheader{سؤال \thequestion}
+ \answerstitle{جوابهای ممکن:}
+\DeclareOption{nocorrection}{%
+ \let\@true\@true@nocorrection
+ \let\@false\@false@nocorrection
+ \let\correction\comment
+ \let\endcorrection\endcomment
+ \def\makeform{\makeform@nocorrection}
+ \def\makemask{\makemask@nocorrection}}
+\DeclareOption{correction}{%
+ \let\@true\@true@correction
+ \let\@false\@false@correction
+ \let\correction\@correction
+ \let\endcorrection\end@correction
+ \def\makeform{\makeform@correction}
+ \def\makemask{\makemask@correction}}
+\ExecuteOptions{nocorrection}
+\newcommand\questiontitle[1]{\gdef\@questiontitle{#1}}
+\def\@questiontitlefont{\bfseries}
+\newcommand\questiontitlefont[1]{\gdef\@questiontitlefont{#1}}
+\newlength\questiontitlespace
+\setlength\questiontitlespace{5pt}
+\newlength\questionsepspace
+\setlength\questionsepspace{20pt}
+\gdef\@questionsepspace{0pt}
+\let\old@question\question
+\let\old@endquestion\endquestion
+\renewenvironment{question}[1]{%
+ %% \begin{question}
+ \vspace\@questionsepspace
+ \fbox{\parbox[c]{0.25\linewidth}{\@questiontitlefont\@questiontitle}}
+ \nopagebreak\vspace\questiontitlespace\par
+ \old@question{#1}}{%
+ %% \end{question}
+ \old@endquestion
+ \gdef\@questionsepspace{\questionsepspace}}
+ \questiontitle{سؤال \thequestion:}
+\ProcessOptions
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `luapersian-multiplechoice.sty'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/luapersian-persiancal.sty b/Master/texmf-dist/tex/lualatex/luapersian/luapersian-persiancal.sty
new file mode 100644
index 00000000000..12dcc1e0227
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/luapersian-persiancal.sty
@@ -0,0 +1,191 @@
+%%
+%% This is file `luapersian-persiancal.sty',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{luapersian-persiancal}[2011/08/01 v0.1 provides Persian calendar]
+
+\newif\ifluapersian@leap \newif\ifluapersian@kabiseh
+\newcount\luapersian@i \newcount\luapersian@y \newcount\luapersian@m \newcount\luapersian@d
+\newcount\luapersian@latini \newcount\luapersian@persiani
+\newcount\luapersian@latinii \newcount\luapersian@persianii
+\newcount\luapersian@latiniii \newcount\luapersian@persianiii
+\newcount\luapersian@latiniv \newcount\luapersian@persianiv
+\newcount\luapersian@latinv \newcount\luapersian@persianv
+\newcount\luapersian@latinvi \newcount\luapersian@persianvi
+\newcount\luapersian@latinvii \newcount\luapersian@persianvii
+\newcount\luapersian@latinviii \newcount\luapersian@persianviii
+\newcount\luapersian@latinix \newcount\luapersian@persianix
+\newcount\luapersian@latinx \newcount\luapersian@persianx
+\newcount\luapersian@latinxi \newcount\luapersian@persianxi
+\newcount\luapersian@latinxii \newcount\luapersian@persianxii
+ \newcount\luapersian@persianxiii
+
+\newcount\luapersian@temp
+\newcount\luapersian@temptwo
+\newcount\luapersian@tempthree
+\newcount\luapersian@yModHundred
+\newcount\luapersian@thirtytwo
+\newcount\luapersian@dn
+\newcount\luapersian@sn
+\newcount\luapersian@mminusone
+
+\def\persiantoday{%
+\luapersian@y=\year \luapersian@m=\month \luapersian@d=\day
+\luapersian@temp=\luapersian@y
+\divide\luapersian@temp by 100\relax
+\multiply\luapersian@temp by 100\relax
+\luapersian@yModHundred=\luapersian@y
+\advance\luapersian@yModHundred by -\luapersian@temp\relax
+\ifodd\luapersian@yModHundred
+ \luapersian@leapfalse
+\else
+ \luapersian@temp=\luapersian@yModHundred
+ \divide\luapersian@temp by 2\relax
+ \ifodd\luapersian@temp\luapersian@leapfalse
+ \else
+ \ifnum\luapersian@yModHundred=0%
+ \luapersian@temp=\luapersian@y
+ \divide\luapersian@temp by 400\relax
+ \multiply\luapersian@temp by 400\relax
+ \ifnum\luapersian@y=\luapersian@temp\luapersian@leaptrue\else\luapersian@leapfalse\fi
+ \else\luapersian@leaptrue
+ \fi
+ \fi
+\fi
+\luapersian@latini=31\relax
+\ifluapersian@leap
+ \luapersian@latinii = 29\relax
+\else
+ \luapersian@latinii = 28\relax
+\fi
+\luapersian@latiniii = 31\relax
+\luapersian@latiniv = 30\relax
+\luapersian@latinv = 31\relax
+\luapersian@latinvi = 30\relax
+\luapersian@latinvii = 31\relax
+\luapersian@latinviii = 31\relax
+\luapersian@latinix = 30\relax
+\luapersian@latinx = 31\relax
+\luapersian@latinxi = 30\relax
+\luapersian@latinxii = 31\relax
+\luapersian@thirtytwo=32\relax
+\luapersian@temp=\luapersian@y
+\advance\luapersian@temp by -17\relax
+\luapersian@temptwo=\luapersian@temp
+\divide\luapersian@temptwo by 33\relax
+\multiply\luapersian@temptwo by 33\relax
+\advance\luapersian@temp by -\luapersian@temptwo
+\ifnum\luapersian@temp=\luapersian@thirtytwo\luapersian@kabisehfalse
+\else
+ \luapersian@temptwo=\luapersian@temp
+ \divide\luapersian@temptwo by 4\relax
+ \multiply\luapersian@temptwo by 4\relax
+ \advance\luapersian@temp by -\luapersian@temptwo
+ \ifnum\luapersian@temp=\z@\luapersian@kabisehtrue\else\luapersian@kabisehfalse\fi
+\fi
+\luapersian@tempthree=\luapersian@y % Number of Leap years
+\advance\luapersian@tempthree by -1
+\luapersian@temp=\luapersian@tempthree % T := (MY-1) div 4
+\divide\luapersian@temp by 4\relax
+\luapersian@temptwo=\luapersian@tempthree % T := T - ((MY-1) div 100)
+\divide\luapersian@temptwo by 100\relax
+\advance\luapersian@temp by -\luapersian@temptwo
+\luapersian@temptwo=\luapersian@tempthree % T := T + ((MY-1) div 400)
+\divide\luapersian@temptwo by 400\relax
+\advance\luapersian@temp by \luapersian@temptwo
+\advance\luapersian@tempthree by -611 % Number of Kabise years
+\luapersian@temptwo=\luapersian@tempthree % T := T - ((SY+10) div 33) * 8
+\divide\luapersian@temptwo by 33\relax
+\multiply\luapersian@temptwo by 8\relax
+\advance\luapersian@temp by -\luapersian@temptwo
+\luapersian@temptwo=\luapersian@tempthree %
+\divide\luapersian@temptwo by 33\relax
+\multiply\luapersian@temptwo by 33\relax
+\advance\luapersian@tempthree by -\luapersian@temptwo
+\ifnum\luapersian@tempthree=32\advance\luapersian@temp by 1\fi % if (SY+10) mod 33=32 then Inc(T);
+\divide\luapersian@tempthree by 4\relax % T := T - ((SY+10) mod 33) div 4
+\advance\luapersian@temp by -\luapersian@tempthree
+\advance\luapersian@temp by -137 % T := T - 137 Adjust the value
+\luapersian@persiani=31
+\advance\luapersian@persiani by -\luapersian@temp % now 31 - T is the persiani
+\luapersian@persianii = 30\relax
+\ifluapersian@kabiseh
+ \luapersian@persianiii = 30\relax
+\else
+ \luapersian@persianiii = 29\relax
+\fi
+\luapersian@persianiv = 31\relax
+\luapersian@persianv = 31\relax
+\luapersian@persianvi = 31\relax
+\luapersian@persianvii = 31\relax
+\luapersian@persianviii= 31\relax
+\luapersian@persianix = 31\relax
+\luapersian@persianx = 30\relax
+\luapersian@persianxi = 30\relax
+\luapersian@persianxii = 30\relax
+\luapersian@persianxiii= 30\relax
+\luapersian@dn= 0\relax
+\luapersian@sn= 0\relax
+\luapersian@mminusone=\luapersian@m
+\advance\luapersian@mminusone by -1\relax
+\luapersian@i=0\relax
+\ifnum\luapersian@i < \luapersian@mminusone
+\loop
+\advance \luapersian@i by 1\relax
+\advance\luapersian@dn by \csname luapersian@latin\romannumeral\the\luapersian@i\endcsname
+\ifnum\luapersian@i<\luapersian@mminusone \repeat
+\fi
+\advance \luapersian@dn by \luapersian@d
+\luapersian@i=1\relax
+\luapersian@sn = \luapersian@persiani
+\ifnum \luapersian@sn<\luapersian@dn
+\loop
+\advance \luapersian@i by 1\relax
+\advance\luapersian@sn by \csname luapersian@persian\romannumeral\the\luapersian@i\endcsname
+\ifnum \luapersian@sn<\luapersian@dn \repeat
+\fi
+\ifnum \luapersian@i < 4
+ \luapersian@m = 9 \advance\luapersian@m by \luapersian@i
+ \advance \luapersian@y by -622\relax
+\else
+ \luapersian@m = \luapersian@i \advance \luapersian@m by -3\relax
+ \advance \luapersian@y by -621\relax
+\fi
+\advance\luapersian@sn by -\csname luapersian@persian\romannumeral\the\luapersian@i%
+\endcsname
+\ifnum\luapersian@i = 1
+ \luapersian@d = \luapersian@dn \advance \luapersian@d by 30 \advance\luapersian@d by -\luapersian@persiani
+\else
+ \luapersian@d = \luapersian@dn \advance \luapersian@d by -\luapersian@sn
+\fi
+\bgroup\textdir TLT\number\luapersian@d\egroup\space%
+\persianmonth{\luapersian@m}\space\bgroup\textdir TLT\number\luapersian@y\egroup%
+}
+\def\persianmonth#1{\ifcase#1\or فروردین\or
+اردیبهشت\or
+خرداد\or تیر\or
+مرداد\or
+شهریور\or مهر\or
+آبان\or آذر\or
+دی\or بهمن\or
+اسفند\fi}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `luapersian-persiancal.sty'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/luapersian.sty b/Master/texmf-dist/tex/lualatex/luapersian/luapersian.sty
new file mode 100644
index 00000000000..f048ca7c4a0
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/luapersian.sty
@@ -0,0 +1,781 @@
+%%
+%% This is file `luapersian.sty',
+%% generated with the docstrip utility.
+%%
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\NeedsTeXFormat{LaTeX2e}
+\def\luapersianversion{v0.1}
+\def\luapersiandate{2011/08/01}
+\ProvidesPackage{luapersian}[\luapersiandate\space \luapersianversion\space
+Persian typesetting in LuaLaTeX]
+\RequirePackage{iftex}
+\RequireLuaTeX
+\def\@tagsextension{clo}
+\def\@iftagsloaded{\@ifl@aded\@tagsextension}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% start of bidi related macros
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newif\if@Latin
+\newif\if@RTL@footnote
+\newif\if@RTL
+\newif\if@RTLtab
+\newif\if@RTLbibitems
+\newif\if@LTRbibitems
+\@RTLtrue
+\newif\if@RTLmain
+\@RTLmaintrue
+\directlua { tex.enableprimitives('',{'pagedir','bodydir','pardir','textdir'}) }
+\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT
+\def\@arabic#1{\bgroup\textdir TLT\number #1\egroup} %% changed 29 Apr 86
+\def\@roman#1{\bgroup\textdir TLT\romannumeral #1\egroup}
+\def\@Roman#1{\bgroup\textdir TLT\expandafter\@slowromancap\romannumeral #1@\egroup}
+\def\@eqnnum{{\normalfont \normalcolor (\if@RTL\bgroup\textdir TRT\fi\theequation\if@RTL\egroup\fi)}}
+\everydisplay\expandafter{\the\everydisplay\predisplaydirection=0 }
+\RequirePackage{pdftexcmds}
+\RequirePackage{fontspec}
+\RequirePackage{luapersian-persiancal}
+\RequirePackage{luapersian-mathsdigitspec}
+\RequirePackage{etoolbox}
+\let\n@xt=\
+\def\LRE{\protect\pLRE}%
+\def\pLRE{\protect\afterassignment\moreLRE \let\n@xt= }
+\def\RLE{\protect\pRLE}
+\def\pRLE{\protect\afterassignment\moreRLE \let\n@xt= }
+\def\bracetext{\ifcat\n@xt{\else\ifcat\n@xt}\fi
+ \errmessage{Missing left brace has been substituted}\fi \bgroup}
+\def\moreLRE{\bracetext \textdir TLT}
+\def\moreRLE{\bracetext \textdir TRT}
+\def\LTR{\par\@RTLfalse\@RTL@footnotefalse\bodydir TLT\pardir TLT\textdir TLT\hsize\linewidth\parshape\z@}
+\def\endLTR{\par}
+\def\RTL{\par\@RTLtrue\@RTL@footnotetrue\bodydir TRT\pardir TRT\textdir TRT\hsize\linewidth\parshape\z@}
+\def\endRTL{\par}
+\protected\def\hboxR{\hbox\bgroup
+ \everyhbox{%
+ \aftergroup\egroup
+ \everyhbox{}%
+ \bgroup
+ \aftergroup\egroup
+ }\hbox dir TRT}
+\protected\def\hboxL{\hbox\bgroup
+ \everyhbox{%
+ \aftergroup\egroup
+ \everyhbox{}%
+ \bgroup
+ \aftergroup\egroup
+ }\hbox dir TLT}
+\protected\def\vboxR{\vbox\bgroup
+ \everyvbox{%
+ \aftergroup\egroup
+ \everyvbox{}%
+ \bgroup
+ \aftergroup\egroup
+ }\vbox dir TRT}
+\protected\def\vboxL{\vbox\bgroup
+ \everyvbox{%
+ \aftergroup\egroup
+ \everyvbox{}%
+ \bgroup
+ \aftergroup\egroup
+ }\vbox dir TLT}
+\def\list#1#2{%
+ \ifnum \@listdepth >5\relax
+ \@toodeep
+ \else
+ \global\advance\@listdepth\@ne
+ \fi
+ \rightmargin\z@
+ \listparindent\z@
+ \itemindent\z@
+ \csname @list\romannumeral\the\@listdepth\endcsname
+ \def\@itemlabel{#1}%
+ \let\makelabel\@mklab
+ \@nmbrlistfalse
+ #2\relax
+ \@trivlist
+ \parskip\parsep
+ \parindent\listparindent
+ \advance\linewidth -\rightmargin
+ \advance\linewidth -\leftmargin
+ \if@RTL
+ \advance\@totalleftmargin \leftmargin
+ \else
+ \advance\@totalleftmargin \rightmargin
+ \fi
+ \parshape \@ne \@totalleftmargin \linewidth
+ \ignorespaces}
+\def\setRTLbibitems{\@RTLbibitemstrue\@LTRbibitemsfalse}
+\def\setLTRbibitems{\@LTRbibitemstrue\@RTLbibitemsfalse}
+\def\setdefaultbibitems{\@RTLbibitemsfalse\@LTRbibitemsfalse}
+\newenvironment{RTLitems}[1][\labelsep]
+ {\par\bodydir TRT\pardir TRT\textdir TRT
+ \rightskip\labelwidth
+ \advance\rightskip #1
+ \advance\leftskip -\leftmargin
+ \ignorespaces}{\endtrivlist}
+\newenvironment{LTRitems}[1][\labelsep]
+ {\par\bodydir TLT\pardir TLT\textdir TLT
+ \leftskip\labelwidth
+ \advance\leftskip #1
+ \advance\rightskip -\leftmargin
+ \ignorespaces}{\endtrivlist}
+\newenvironment{RTLbibitems}[1][\labelsep]
+ {\par\bodydir TRT\pardir TRT\textdir TRT
+ \rightskip\labelwidth
+ \advance\rightskip #1
+ \advance\leftskip -\leftmargin
+ \ignorespaces}{\endtrivlist}
+\newenvironment{LTRbibitems}[1][\labelsep]
+ {\par\bodydir TLT\pardir TLT\textdir TLT
+ \leftskip\labelwidth
+ \advance\leftskip #1
+ \advance\rightskip -\leftmargin
+ \ignorespaces}{\endtrivlist}
+\newcommand{\bidiraggedright}{\if@RTL\raggedleft\else\raggedright\fi}
+\newcommand{\bidiraggedleft}{\if@RTL\raggedright\else\raggedleft\fi}
+\def\leftline#1{%
+\if@RTL\@@line{\hss#1}
+\else\@@line{#1\hss}\fi}
+\def\rightline#1{%
+\if@RTL\@@line{#1\hss}
+\else\@@line{\hss#1}\fi}
+\def\bidirlap#1{\hb@xt@\z@{\if@RTL\hss\fi#1\if@RTL\else\hss\fi}}
+\def\bidillap#1{\hb@xt@\z@{\if@RTL\else\hss\fi#1\if@RTL\hss\fi}}
+\def\flushleft{\trivlist \bidiraggedright\item\relax}
+\def\flushright{\trivlist \bidiraggedleft\item\relax}
+\def\LTRmarginpar{%
+ \ifhmode
+ \@bsphack
+ \@floatpenalty -\@Mii
+ \else
+ \@floatpenalty-\@Miii
+ \fi
+ \ifinner
+ \@parmoderr
+ \@floatpenalty\z@
+ \else
+ \@next\@currbox\@freelist{}{}%
+ \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
+ {\@floatpenalty\z@
+ \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
+ \fi
+ \@ifnextchar [\@LTRxmpar\@LTRympar}
+\long\def\@LTRxmpar[#1]#2{%
+ \@LTRsavemarbox\@marbox{#1}%
+ \@LTRsavemarbox\@currbox{#2}%
+ \@xympar}
+\long\def\@LTRympar#1{%
+ \@LTRsavemarbox\@marbox{#1}%
+ \global\setbox\@currbox\copy\@marbox
+ \@xympar}
+\long\def \@LTRsavemarbox #1#2{%
+ \global\setbox #1%
+ \color@vbox
+ \vtop dir TLT{%
+ \hsize\marginparwidth
+ \@parboxrestore
+ \@LTRmarginparreset
+ #2%
+ \@minipagefalse
+ \outer@nobreak
+ }%
+ \color@endbox
+}
+\def \@LTRmarginparreset {%
+ \reset@font
+ \latinfont
+ \normalsize
+ \@minipagetrue
+ \everypar{\@minipagefalse\everypar{}}%
+}
+\def\RTLmarginpar{%
+ \ifhmode
+ \@bsphack
+ \@floatpenalty -\@Mii
+ \else
+ \@floatpenalty-\@Miii
+ \fi
+ \ifinner
+ \@parmoderr
+ \@floatpenalty\z@
+ \else
+ \@next\@currbox\@freelist{}{}%
+ \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
+ {\@floatpenalty\z@
+ \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
+ \fi
+ \@ifnextchar [\@RTLxmpar\@RTLympar}
+\long\def\@RTLxmpar[#1]#2{%
+ \@RTLsavemarbox\@marbox{#1}%
+ \@RTLsavemarbox\@currbox{#2}%
+ \@xympar}
+\long\def\@RTLympar#1{%
+ \@RTLsavemarbox\@marbox{#1}%
+ \global\setbox\@currbox\copy\@marbox
+ \@xympar}
+\long\def \@RTLsavemarbox #1#2{%
+ \global\setbox #1%
+ \color@vbox
+ \vtop dir TRT{%
+ \hsize\marginparwidth
+ \@parboxrestore
+ \@RTLmarginparreset
+ #2%
+ \@minipagefalse
+ \outer@nobreak
+ }%
+ \color@endbox
+}
+\def \@RTLmarginparreset {%
+ \reset@font
+ \normalsize
+ \@minipagetrue
+ \everypar{\@minipagefalse\everypar{}}%
+}
+\def\@addmarginpar{\@next\@marbox\@currlist{\@cons\@freelist\@marbox
+ \@cons\@freelist\@currbox}\@latexbug\@tempcnta\@ne
+ \if@twocolumn
+ \if@firstcolumn \@tempcnta\m@ne \fi
+ \else
+ \if@mparswitch
+ \ifodd\c@page \else\@tempcnta\m@ne \fi
+ \fi
+ \if@reversemargin \@tempcnta -\@tempcnta \fi
+ \fi
+ \ifnum\@tempcnta <\z@ \global\setbox\@marbox\box\@currbox \fi
+ \@tempdima\@mparbottom
+ \advance\@tempdima -\@pageht
+ \advance\@tempdima\ht\@marbox
+ \ifdim\@tempdima >\z@
+ \@latex@warning@no@line {Marginpar on page \thepage\space moved}%
+ \else
+ \@tempdima\z@
+ \fi
+ \global\@mparbottom\@pageht
+ \global\advance\@mparbottom\@tempdima
+ \global\advance\@mparbottom\dp\@marbox
+ \global\advance\@mparbottom\marginparpush
+ \advance\@tempdima -\ht\@marbox
+ \global\setbox \@marbox
+ \vbox {\vskip \@tempdima
+ \box \@marbox}%
+ \global \ht\@marbox \z@
+ \global \dp\@marbox \z@
+ \kern -\@pagedp
+ \nointerlineskip
+ \if@RTL\if@LTRmarginpar
+ \hbox dir TLT to\columnwidth
+ \else
+ \hbox dir TRT to\columnwidth
+ \fi
+ \else
+ \if@RTLmarginpar
+ \hbox dir TRT to\columnwidth
+ \else
+ \hbox dir TLT to\columnwidth
+ \fi\fi
+ {\ifnum \@tempcnta >\z@
+ \hskip\columnwidth \hskip\marginparsep
+ \else
+ \hskip -\marginparsep \hskip -\marginparwidth
+ \fi
+ \box\@marbox \hss}%
+ \nointerlineskip
+ \hbox{\vrule \@height\z@ \@width\z@ \@depth\@pagedp}}
+\long\def\@ympar#1{%
+ \@savemarbox\@marbox{\if@RTL\if@LTRmarginpar\pardir TLT\textdir TLT\else\pardir TRT\textdir TRT\fi\else\if@RTLmarginpar\pardir TRT\textdir TRT\else\pardir TLT\textdir TLT\fi\fi#1}%
+ \global\setbox\@currbox\copy\@marbox
+ \@xympar}
+\def\setRTLmarginpar{\@RTLmarginpartrue\@LTRmarginparfalse}
+\def\setLTRmarginpar{\@LTRmarginpartrue\@RTLmarginparfalse}
+\def\setdefaultmarginpar{\@RTLmarginparfalse\@LTRmarginparfalse}
+\def\@stopline{\unskip\@stopfield\if@rjfield \global\@rjfieldfalse
+ \@tempdima\@totalleftmargin \advance\@tempdima\linewidth
+\if@RTL\hbox dir TRT to\@tempdima\else
+\hbox dir TLT to\@tempdima\fi{\@itemfudge\hskip\dimen\@curtabmar
+ \box\@curline\hfil\box\@curfield}\else\@addfield
+ \if@RTL\hbox dir TRT to\linewidth\else\hbox dir TLT to\linewidth\fi{\@itemfudge
+ \hskip\dimen\@curtabmar\box\@curline\hfil}%
+\fi}
+\def\@outputpage{%
+\begingroup % the \endgroup is put in by \aftergroup
+ \let \protect \noexpand
+ \@resetactivechars
+ \global\let\@@if@newlist\if@newlist
+ \global\@newlistfalse
+ \@parboxrestore
+ \shipout \vbox{%
+ \set@typeset@protect
+ \aftergroup \endgroup
+ \aftergroup \set@typeset@protect
+ % correct? or just restore by ending
+ % the group?
+ \if@specialpage
+ \global\@specialpagefalse\@nameuse{ps@\@specialstyle}%
+ \fi
+ \if@twoside
+ \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
+ \let\@themargin\oddsidemargin
+ \else \let\@thehead\@evenhead
+ \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
+ \fi
+ \ifx\@thehead\@empty \let\@thehead\hfil \fi
+ \ifx\@thefoot\@empty \let\@thefoot\hfil \fi
+ \else %% not @twoside
+ \ifx\@oddhead\@empty \let\@thehead\hfil \fi
+ \ifx\@oddfoot\@empty \let\@thefoot\hfil \fi
+ \fi
+ \reset@font
+ \normalsize
+ \if@RTLmain\setpersianfont\else\resetlatinfont\fi
+ \normalsfcodes
+ \let\label\@gobble
+ \let\index\@gobble
+ \let\glossary\@gobble
+ \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@
+ \@begindvi
+ \vskip \topmargin
+ \moveright\@themargin \vbox {%
+ \setbox\@tempboxa \vbox to\headheight{%
+ \vfil
+ \color@hbox
+ \normalcolor
+ \if@RTLmain\hbox dir TRT to\textwidth\else\hbox dir TLT to\textwidth\fi{\@thehead}%
+ \color@endbox
+ }% %% 22 Feb 87
+ \dp\@tempboxa \z@
+ \box\@tempboxa
+ \vskip \headsep
+ \box\@outputbox
+ \baselineskip \footskip
+ \color@hbox
+ \normalcolor
+ \if@RTLmain\hbox dir TRT to\textwidth\else\hbox dir TLT to\textwidth\fi{\@thefoot}%
+ \color@endbox
+ }%
+ }%
+ \global\let\if@newlist\@@if@newlist
+ \global \@colht \textheight
+ \stepcounter{page}%
+ \let\firstmark\botmark
+}
+\global\@RTLtabfalse
+\def\@tabular{\if@RTL\@RTLtabtrue\fi
+ \leavevmode \hbox \bgroup
+ $\let\@acol\@tabacol
+ \let\@classz\@tabclassz
+ \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
+\def\endtabular{\crcr\egroup
+ \egroup $\egroup
+ \@RTLtabfalse}
+\expandafter \let \csname endtabular*\endcsname = \endtabular
+\def\@array[#1]#2{%
+ \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi
+ \bgroup
+ \setbox\@arstrutbox\hbox{%
+ \vrule \@height\arraystretch\ht\strutbox
+ \@depth\arraystretch \dp\strutbox
+ \@width\z@}%
+ \@mkpream{#2}%
+ \edef\@preamble{%
+ \ialign \noexpand\@halignto
+ \bgroup \@arstrut \@preamble \tabskip\z@skip \cr}%
+ \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
+ \let\tabularnewline\\%
+ \let\par\@empty
+ \let\@sharp##%
+ \set@typeset@protect
+ \lineskip\z@skip\baselineskip\z@skip
+ \ifhmode \@preamerr\z@ \@@par\fi
+ \if@RTLtab\textdir TRT\fi
+ \@preamble}
+\def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
+ \let\@classiv\@arrayclassiv
+ \let\\\@arraycr\let\@halignto\@empty\@RTLtabfalse\@tabarray}
+\def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4 \else
+ \ifnum \@lastchclass=3 5 \else
+ \z@ \if #1c\@chnum \z@ \else
+ \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else
+ \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else
+ \@chclass \if #1|\@ne \else
+ \if #1@\tw@ \else
+ \if #1p3 \else \z@ \@preamerr 0\fi
+ \fi \fi \fi \fi \fi \fi
+\fi}
+\def\RTL@outputdblcol{%
+ \if@firstcolumn
+ \global \@firstcolumnfalse
+ \global \setbox\@leftcolumn \box\@outputbox
+ \else
+ \global \@firstcolumntrue
+ \setbox\@outputbox \vbox dir TRT{%
+ \hb@xt@\textwidth {%
+ \hb@xt@\columnwidth {%
+ \box\@leftcolumn \hss}%
+ \hfil
+ {\normalcolor\vrule \@width\columnseprule}%
+ \hfil
+ \hb@xt@\columnwidth {%
+ \box\@outputbox \hss}%
+ }%
+ }%
+ \@combinedblfloats
+ \@outputpage
+ \begingroup
+ \@dblfloatplacement
+ \@startdblcolumn
+ \@whilesw\if@fcolmade \fi
+ {\@outputpage
+ \@startdblcolumn}%
+ \endgroup
+ \fi
+}
+\def\LTR@outputdblcol{%
+ \if@firstcolumn
+ \global \@firstcolumnfalse
+ \global \setbox\@leftcolumn \box\@outputbox
+ \else
+ \global \@firstcolumntrue
+ \setbox\@outputbox \vbox dir TLT {%
+ \hb@xt@\textwidth {%
+ \hb@xt@\columnwidth {%
+ \box\@leftcolumn \hss}%
+ \hfil
+ {\normalcolor\vrule \@width\columnseprule}%
+ \hfil
+ \hb@xt@\columnwidth {%
+ \box\@outputbox \hss}%
+ }%
+ }%
+ \@combinedblfloats
+ \@outputpage
+ \begingroup
+ \@dblfloatplacement
+ \@startdblcolumn
+ \@whilesw\if@fcolmade \fi
+ {\@outputpage
+ \@startdblcolumn}%
+ \endgroup
+ \fi
+}
+\renewcommand{\@outputdblcol}{\if@RTLmain\RTL@outputdblcol\else\LTR@outputdblcol\fi}
+\newcommand{\RTLdblcol}{\renewcommand{\@outputdblcol}{\RTL@outputdblcol}}
+\newcommand{\LTRdblcol}{\renewcommand{\@outputdblcol}{\LTR@outputdblcol}}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% end of bidi related macros
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\edef\luapersianinfo{%
+luapersian package (Persian for LaTeX over LuaTeX)^^J
+Description: The package supports Persian typesetting^^J
+Copyright © 2011 Vafa Khalighi^^J
+\luapersianversion, \luapersiandate^^J
+License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J
+Home: http://bitbucket.org/vafa/luapersian^^J
+Location on CTAN: /macros/luatex/latex/luapersian}
+\typeout{\luapersianinfo}
+\edef\luapersian@everyjob{\the\everyjob}
+\everyjob{\luapersian@everyjob\typeout{\luapersianinfo}}
+\def\prq{«}
+\def\plq{»}
+\newif\ifwritexviii
+\ifnum\pdf@shellescape=1\relax
+ \writexviiitrue
+\else
+\writexviiifalse
+\fi
+\newfontscript{Parsi}{arab}
+\newfontlanguage{Parsi}{FAR}
+\aliasfontfeatureoption{Numbers}{Arabic}{Parsi}
+\newcommand*\settextfont[2][]{%
+\newfontfamily\persianfont[Script=Parsi,Numbers=Parsi,Language=Parsi,#1]{#2}
+\let\rmdefault\zf@family
+ \normalfont
+}
+\newcommand*\setlatintextfont[2][]{%
+\newfontfamily\latinfont[Ligatures=TeX,#1]{#2}
+}
+\setlatintextfont[ExternalLocation,BoldFont={lmroman10-bold},BoldItalicFont={lmroman10-bolditalic},ItalicFont={lmroman10-italic},SmallCapsFont={lmromancaps10-regular},SlantedFont={lmromanslant10-regular},BoldSlantedFont={lmromanslant10-bold}]{lmroman10-regular}
+\let\setlatinsansfont\setsansfont
+\let\setlatinmonofont\setmonofont
+\newcommand*\defpersianfont[1]{%
+ \@ifnextchar[{\defpersianfont@i#1}{\defpersianfont@i#1[]}}
+\def\defpersianfont@i#1[#2]#3{%
+ \zf@fontspec{Script=Parsi,Numbers=Parsi,Language=Parsi,#2}{#3}%
+ \edef\@tempa{%
+ \noexpand\DeclareRobustCommand\noexpand#1
+ {\noexpand\fontfamily{\zf@family}\noexpand\selectfont}}%
+ \@tempa}
+\newcommand*\deflatinfont[1]{%
+ \@ifnextchar[{\deflatinfont@i#1}{\deflatinfont@i#1[]}}
+\def\deflatinfont@i#1[#2]#3{%
+ \zf@fontspec{Ligatures=TeX,#2}{#3}%
+ \edef\@tempa{%
+ \noexpand\DeclareRobustCommand\noexpand#1
+ {\noexpand\fontfamily{\zf@family}\noexpand\selectfont}}%
+ \@tempa}
+\newcommand\persiansfdefault{}
+\newcommand\persianttdefault{}
+\newcommand\iranicdefault{}
+\newcommand\navardefault{}
+\newcommand\pookdefault{}
+\newcommand\sayehdefault{}
+\DeclareRobustCommand\persiansffamily
+ {\not@math@alphabet\persiansffamily\mathpersiansf
+ \fontfamily\persiansfdefault\selectfont}
+\DeclareRobustCommand\persianttfamily
+ {\not@math@alphabet\persianttfamily\mathpersiantt
+ \fontfamily\persianttdefault\selectfont}
+\DeclareRobustCommand\iranicfamily
+ {\not@math@alphabet\iranicfamily\mathiranic
+ \fontfamily\iranicdefault\selectfont}
+\DeclareRobustCommand\navarfamily
+ {\not@math@alphabet\navarfamily\mathnavar
+ \fontfamily\navardefault\selectfont}
+\DeclareRobustCommand\pookfamily
+ {\not@math@alphabet\pookfamily\mathpook
+ \fontfamily\pookdefault\selectfont}
+\DeclareRobustCommand\sayehfamily
+ {\not@math@alphabet\sayehfamily\mathsayeh
+ \fontfamily\sayehdefault\selectfont}
+\DeclareTextFontCommand{\textpersiansf}{\persiansffamily}
+\DeclareTextFontCommand{\textpersiantt}{\persianttfamily}
+\DeclareTextFontCommand{\textiranic}{\iranicfamily}
+\DeclareTextFontCommand{\textnavar}{\navarfamily}
+\DeclareTextFontCommand{\textpook}{\pookfamily}
+\DeclareTextFontCommand{\textsayeh}{\sayehfamily}
+\newcommand*\setpersiansansfont[2][]{%
+ \zf@fontspec{Script=Parsi,Numbers=Parsi,Language=Parsi,#1}{#2}%
+ \let\persiansfdefault\zf@family
+ \normalfont}
+\newcommand*\setpersianmonofont[2][]{%
+ \zf@fontspec{Script=Parsi,Numbers=Parsi,Language=Parsi,#1}{#2}%
+ \let\persianttdefault\zf@family
+ \normalfont}
+\newcommand*\setnavarfont[2][]{%
+ \zf@fontspec{Script=Parsi,Numbers=Parsi,Language=Parsi,#1}{#2}%
+ \let\navardefault\zf@family
+ \normalfont}
+\newcommand*\setpookfont[2][]{%
+ \zf@fontspec{Script=Parsi,Numbers=Parsi,Language=Parsi,#1}{#2}%
+ \let\pookdefault\zf@family
+ \normalfont}
+\newcommand*\setsayehfont[2][]{%
+ \zf@fontspec{Script=Parsi,Numbers=Parsi,Language=Parsi,#1}{#2}%
+ \let\sayehdefault\zf@family
+ \normalfont}
+\newcommand*\setiranicfont[2][]{%
+ \zf@fontspec{Script=Parsi,Numbers=Parsi,Language=Parsi,#1}{#2}%
+ \let\iranicdefault\zf@family
+ \normalfont}
+\def\resetlatinfont{%
+\let\normalfont\latinfont%
+\latinfont}
+\def\setpersianfont{%
+\let\normalfont\persianfont%
+\persianfont}
+\def\lr#1{\LRE{\latinfont#1}}
+\def\rl#1{\RLE{\persianfont#1}}
+\def\latin{\LTR\LatinAlphs\@Latintrue\@RTL@footnotefalse\resetlatinfont}
+\def\endlatin{\endLTR}
+\def\persian{\RTL\PersianAlphs\@RTL@footnotetrue\setpersianfont}
+\def\endpersian{\endRTL}
+\let\originaltoday=\today
+\def\today{\lr{\originaltoday}}
+\let\latintoday\today
+\def\today{\rl{\persiantoday}}
+\DeclareRobustCommand\Latincite{%
+ \@ifnextchar [{\@tempswatrue\@Latincitex}{\@tempswafalse\@Latincitex[]}}
+\def\@Latincitex[#1]#2{\leavevmode
+ \let\@citea\@empty
+ \@cite{\lr{\@for\@citeb:=#2\do
+ {\@citea\def\@citea{,\penalty\@m\ }%
+ \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
+ \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
+ \@ifundefined{b@\@citeb}{\hbox{\reset@font\bfseries ?}%
+ \G@refundefinedtrue
+ \@latex@warning
+ {Citation `\@citeb' on page \thepage \space undefined}}%
+ {\@cite@ofmt{\csname b@\@citeb\endcsname}}}}}{#1}}
+\newcommand\twocolumnstableofcontents{%
+\@ifpackageloaded{multicol}{%
+ \begin{multicols}{2}[\section*{\contentsname}]%
+ \small
+ \@starttoc{toc}%
+ \end{multicols}}
+{\PackageError{luapersian}{Oops! you should load multicol package before luapersian package for being able to use this command}{}}}
+\def\LuaPersian{\textsf{LuaPersian}}
+\def\figurename{\if@RTL شکل\else Figure\fi}
+\def\tablename{\if@RTL جدول\else Table\fi}
+\def\contentsname{\if@RTL فهرست مطالب\else Contents\fi}
+\def\listfigurename{\if@RTL لیست تصاویر\else List of Figures\fi}
+\def\listtablename{\if@RTL لیست جداول\else List of Tables\fi}
+\def\appendixname{\if@RTL پیوست\else Appendix\fi}
+\def\indexname{\if@RTL نمایه\else Index\fi}
+\def\refname{\if@RTL مراجع\else References\fi}
+\def\abstractname{\if@RTL چکیده\else Abstract\fi}
+\def\partname{\if@RTL بخش\else Part\fi}
+\def\datename{\if@RTL تاریخ:\else Date:\fi}
+\def\@@and{\if@RTL و\else and\fi}
+\def\bibname{\if@RTL کتاب‌نامه\else Bibliography\fi}
+\def\chaptername{\if@RTL فصل\else Chapter\fi}
+\def\ccname{\if@RTL رونوشت\else cc\fi}
+\def\enclname{\if@RTL پیوست\else encl\fi}
+\def\pagename{\if@RTL صفحه\else Page\fi}
+\def\headtoname{\if@RTL به\else To\fi}
+\def\proofname{\if@RTL اثبات\else Proof\fi}
+\def\@harfi#1{\ifcase#1\or آ‍\or ب\or پ\or ت\or ث\or
+ج\or چ\or ح\or خ\or د\or ذ\or ر\or ز\or ژ\or س\or ش\or ص\or ض\or ط\or ظ\or ع\or غ\or
+ف\or ق\or ک\or گ\or ل\or م\or ن\or و\or ه\or ی\else\@ctrerr\fi}
+\def\harfi#1{\expandafter\@harfi\csname c@#1\endcsname}
+\def\@adadi#1{\ifcase#1 \or یک\or دو\or سه\or چهار\or پنج\or شش\or هفت\or هشت\or نه\or ده\or یازده\or دوازده\or سیزده\or چهارده\or پانزده\or شانزده\or هفده\or هجده\or نوزده\or بیست\else\@ctrerr\fi}
+\def\adadi#1{\expandafter\@adadi\csname c@#1\endcsname}
+\def\@tartibi#1{\ifcase#1 \or اول \or دوم \or سوم \or چهارم \or پنجم \or ششم \or هفتم \or هشتم \or نهم \or دهم \or یازدهم \or دوازدهم \or سیزدهم \or چهاردهم \or پانزدهم \or شانزدهم \or هفدهم \or هجدهم \or نوزدهم \or بیستم\else\@ctrerr\fi}
+\def\tartibi#1{\expandafter\@tartibi\csname c@#1\endcsname}
+\providecommand*{\lpg@warning}[1]{%
+ \PackageWarning{LuaPersian}%
+ {#1}}
+\ifcsdef{abjad}{}{%
+\def\abjad#1{%
+\ifnum#1>1999 \lpg@warning{Illegal value (#1) for abjad numeral} {#1}
+\else
+ \ifnum#1<\z@\space\lpg@warning{Illegal value (#1) for abjad numeral}%
+ \else
+ \ifnum#1<10\expandafter\abj@num@i\number#1%
+ \else
+ \ifnum#1<100\expandafter\abj@num@ii\number#1%
+ \else
+ \ifnum#1<\@m\expandafter\abj@num@iii\number#1%
+ \else
+ \ifnum#1<\@M\expandafter\abj@num@iv\number#1%since #1<2000, we must have 1000
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+\fi
+}
+\def\abjad@zero{}
+\def\abj@num@i#1{%
+ \ifcase#1\or آ\or ب\or ج\or د%
+ \or ه‍\or و\or ز\or ح\or ط\fi
+ \ifnum#1=\z@\abjad@zero\fi}
+\def\abj@num@ii#1{%
+ \ifcase#1\or ی\or ک\or ل\or م\or ن%
+ \or س\or ع\or ف\or ص\fi
+ \ifnum#1=\z@\fi\abj@num@i}
+\def\abj@num@iii#1{%
+ \ifcase#1\or ق\or ر\or ش\or ت\or ث%
+ \or خ\or ذ\or ض\or ظ\fi
+ \ifnum#1=\z@\fi\abj@num@ii}
+\def\abj@num@iv#1{%
+ \ifcase#1\or غ\fi
+ \ifnum#1=\z@\fi\abj@num@iii}
+}
+ \let\@latinalph\@alph%
+ \let\@latinAlph\@Alph%
+\def\PersianAlphs{%
+ \let\@alph\abjad%
+ \let\@Alph\abjad%
+}
+\def\LatinAlphs{%
+ \let\@alph\@latinalph%
+ \let\@Alph\@latinAlph%
+}
+\PersianAlphs
+\@ifpackageloaded{mathtools}{\RequirePackage{graphicx}}{}
+\@ifpackageloaded{sidecap}{\RequirePackage{ragged2e}}{}
+\RequirePackage{luapersian-footnote}
+\RequirePackage{loadingorder-luapersian}
+\@ifclassloaded{amsart}{\input{amsart-luapersian.def}}{}
+\@ifclassloaded{amsbook}{\input{amsbook-luapersian.def}}{}
+\@ifclassloaded{article}{\input{article-luapersian.def}}{}
+\@ifclassloaded{artikel1}{\input{artikel1-luapersian.def}}{}
+\@ifclassloaded{artikel2}{\input{artikel2-luapersian.def}}{}
+\@ifclassloaded{artikel3}{\input{artikel3-luapersian.def}}{}
+\@ifclassloaded{boek3}{\input{boek3-luapersian.def}}{}
+\@ifclassloaded{boek}{\input{boek-luapersian.def}}{}
+\@ifclassloaded{book}{\input{book-luapersian.def}}{}
+\@ifclassloaded{bookest}{\input{bookest-luapersian.def}}{}
+\@ifclassloaded{extarticle}{\input{extarticle-luapersian.def}}{}
+\@ifclassloaded{extbook}{\input{extbook-luapersian.def}}{}
+\@ifclassloaded{extletter}{\input{extletter-luapersian.def}}{}
+\@ifclassloaded{extreport}{\input{extreport-luapersian.def}}{}
+\@ifclassloaded{letter}{\input{letter-luapersian.def}}{}
+\@ifclassloaded{memoir}{\input{memoir-luapersian.def}}{}
+\@ifclassloaded{rapport1}{\input{rapport1-luapersian.def}}{}
+\@ifclassloaded{rapport3}{\input{rapport3-luapersian.def}}{}
+\@ifclassloaded{refrep}{\input{refrep-luapersian.def}}{}
+\@ifclassloaded{report}{\input{report-luapersian.def}}{}
+\@ifclassloaded{scrartcl}{\input{scrartcl-luapersian.def}}{}
+\@ifclassloaded{scrbook}{\input{scrbook-luapersian.def}}{}
+\@ifclassloaded{scrreprt}{\input{scrreprt-luapersian.def}}{}
+
+
+\@iftagsloaded{leqno}{\input{leqno-luapersian.def}}{}
+\@iftagsloaded{fleqn}{\input{fleqn-luapersian.def}}{}
+
+
+\@ifpackageloaded{algorithmic}{\input{algorithmic-luapersian.def}}{}
+\@ifpackageloaded{algorithm}{\input{algorithm-luapersian.def}}{}
+\@ifpackageloaded{amstext}{\input{amstext-luapersian.def}}{}
+\@ifpackageloaded{amsmath}{\input{amsmath-luapersian.def}}{}
+\@ifpackageloaded{array}{\input{array-luapersian.def}}{}
+\@ifpackageloaded{arydshln}{\input{arydshln-luapersian.def}}{}
+\@ifpackageloaded{backref}{\input{backref-luapersian.def}}{}
+\@ifpackageloaded{breqn}{\input{breqn-luapersian.def}}{}
+\@ifpackageloaded{enumerate}{\input{enumerate-luapersian.def}}{}
+\@ifpackageloaded{fancyhdr}{\input{fancyhdr-luapersian.def}}{}
+\@ifpackageloaded{flowfram}{\input{flowfram-luapersian.def}}{}
+\@ifpackageloaded{hvfloat}{\input{hvfloat-luapersian.def}}{}
+\@ifpackageloaded{hyperref}{\input{hyperref-luapersian.def}}{}
+\@ifpackageloaded{listings}{\input{listings-luapersian.def}}{}
+\@ifpackageloaded{minitoc}{\input{minitoc-luapersian.def}}{}
+\@ifpackageloaded{natbib}{\input{natbib-luapersian.def}}{}
+\@ifpackageloaded{pgf}{\input{pgf-luapersian.def}}{}
+\@ifpackageloaded{ragged2e}{\input{ragged2e-luapersian.def}}{}
+\@ifpackageloaded{sidecap}{\input{sidecap-luapersian.def}}{}
+\@ifpackageloaded{stabular}{\input{stabular-luapersian.def}}{}
+\@ifpackageloaded{tabls}{\input{tabls-luapersian.def}}{}
+\@ifpackageloaded{tabulary}{\input{tabulary-luapersian.def}}{}
+\@ifpackageloaded{tikz}{\input{tikz-luapersian.def}}{}
+\@ifpackageloaded{tocbibind}{\@ifclassloaded{memoir}{}{\input{tocbibind-luapersian.def}}}{}
+\@ifpackageloaded{tocloft}{\input{tocloft-luapersian.def}}{}
+\@ifpackageloaded{wrapfig}{\input{wrapfig-luapersian.def}}{}
+
+
+
+
+
+
+\DeclareOption{localise}{\input{localise-luapersian.def}}
+\DeclareOption{quickindex}{%
+\ifwritexviii%
+\@ifclassloaded{memoir}{\PackageError{luapersian}{This feature does not yet work with the memoir class}{}}{%
+\renewcommand\printindex{\newpage%
+\immediate\closeout\@indexfile
+\immediate\write18{xindy -L persian -C utf8 -M texindy \jobname.idx}
+\@input@{\jobname.ind}}}%
+\else
+\PackageError{luapersian}{“shell escape” (or “write18”) is not enabled. You need to run “lualatex --shell-escape” on your TeX document for this feature to work}{}
+\fi}
+\ExecuteOptions{localise}
+\ProcessOptions
+\endinput
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `luapersian.sty'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/luapersianftnxtra.sty b/Master/texmf-dist/tex/lualatex/luapersian/luapersianftnxtra.sty
new file mode 100644
index 00000000000..8b6f3c95be8
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/luapersianftnxtra.sty
@@ -0,0 +1,169 @@
+%%
+%% This is file `luapersianftnxtra.sty',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{luapersianftnxtra}
+\newtoks\luapersian@p@ftn
+\let\FN@sf@@footnote\footnote
+\let\FN@sf@@LTRfootnote\LTRfootnote
+\let\FN@sf@@RTLfootnote\RTLfootnote
+\def\footnote{\ifx\protect\@typeset@protect
+ \expandafter\FN@sf@@footnote
+ \else
+ \expandafter\FN@sf@gobble@opt
+ \fi
+}
+\def\LTRfootnote{\ifx\protect\@typeset@protect
+ \expandafter\FN@sf@@LTRfootnote
+ \else
+ \expandafter\FN@sf@gobble@opt
+ \fi
+}
+\def\RTLfootnote{\ifx\protect\@typeset@protect
+ \expandafter\FN@sf@@RTLfootnote
+ \else
+ \expandafter\FN@sf@gobble@opt
+ \fi
+}
+\edef\FN@sf@gobble@opt{\noexpand\protect
+ \expandafter\noexpand\csname FN@sf@gobble@opt \endcsname}
+\expandafter\def\csname FN@sf@gobble@opt \endcsname{%
+ \@ifnextchar[%]
+ \FN@sf@gobble@twobracket
+ \@gobble
+}
+\def\FN@sf@gobble@twobracket[#1]#2{}
+\let\FN@sf@@footnotemark\footnotemark
+\def\footnotemark{\ifx\protect\@typeset@protect
+ \expandafter\FN@sf@@footnotemark
+ \else
+ \expandafter\FN@sf@gobble@optonly
+ \fi
+}
+\edef\FN@sf@gobble@optonly{\noexpand\protect
+ \expandafter\noexpand\csname FN@sf@gobble@optonly \endcsname}
+\expandafter\def\csname FN@sf@gobble@optonly \endcsname{%
+ \@ifnextchar[%]
+ \FN@sf@gobble@bracket
+ {}%
+}
+\def\FN@sf@gobble@bracket[#1]{}
+\def\@tabular{\if@RTL\global\@RTLtabtrue\fi
+ \leavevmode \hbox \bgroup
+ \let\@footnotetext\luapersian@p@ftntext
+ \let\@LTRfootnotetext\luapersian@p@LTRftntext
+ \let\@RTLfootnotetext\luapersian@p@RTLftntext
+ $\let\@acol\@tabacol
+ \let\@classz\@tabclassz
+ \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
+\def\endtabular{\crcr\egroup
+ \egroup $\egroup
+ \the\luapersian@p@ftn
+ \global\luapersian@p@ftn{}%
+ \global\@RTLtabfalse}
+\long\def\luapersian@p@ftntext#1{%
+ \edef\@tempy{\the\luapersian@p@ftn\noexpand\footnotetext[\the\c@footnote]}%
+ \global\luapersian@p@ftn\expandafter{\@tempy{#1}}}%
+\long\def\luapersian@p@LTRftntext#1{%
+ \edef\@tempyi{\the\luapersian@p@ftn\noexpand\LTRfootnotetext[\the\c@footnote]}%
+ \global\luapersian@p@ftn\expandafter{\@tempyi{#1}}}%
+\long\def\luapersian@p@RTLftntext#1{%
+ \edef\@tempyii{\the\luapersian@p@ftn\noexpand\RTLfootnotetext[\the\c@footnote]}%
+ \global\luapersian@p@ftn\expandafter{\@tempyii{#1}}}%
+\def\@xfloat #1[#2]{%
+ \@nodocument
+ \def \@captype {#1}%
+ \def \@fps {#2}%
+ \@onelevel@sanitize \@fps
+ \def \reserved@b {!}%
+ \ifx \reserved@b \@fps
+ \@fpsadddefault
+ \else
+ \ifx \@fps \@empty
+ \@fpsadddefault
+ \fi
+ \fi
+ \ifhmode
+ \@bsphack
+ \@floatpenalty -\@Mii
+ \else
+ \@floatpenalty-\@Miii
+ \fi
+ \ifinner
+ \@parmoderr\@floatpenalty\z@
+ \else
+ \@next\@currbox\@freelist
+ {%
+ \@tempcnta \sixt@@n
+ \expandafter \@tfor \expandafter \reserved@a
+ \expandafter :\expandafter =\@fps
+ \do
+ {%
+ \if \reserved@a h%
+ \ifodd \@tempcnta
+ \else
+ \advance \@tempcnta \@ne
+ \fi
+ \fi
+ \if \reserved@a t%
+ \@setfpsbit \tw@
+ \fi
+ \if \reserved@a b%
+ \@setfpsbit 4%
+ \fi
+ \if \reserved@a p%
+ \@setfpsbit 8%
+ \fi
+ \if \reserved@a !%
+ \ifnum \@tempcnta>15
+ \advance\@tempcnta -\sixt@@n\relax
+ \fi
+ \fi
+ }%
+ \@tempcntb \csname ftype@\@captype \endcsname
+ \multiply \@tempcntb \@xxxii
+ \advance \@tempcnta \@tempcntb
+ \global \count\@currbox \@tempcnta
+ }%
+ \@fltovf
+ \fi
+ \global \setbox\@currbox
+ \color@vbox
+ \normalcolor
+ \vbox \bgroup
+ \let\@footnotetext\luapersian@p@ftntext
+ \let\@LTRfootnotetext\luapersian@p@LTRftntext
+ \let\@RTLfootnotetext\luapersian@p@RTLftntext
+ \hsize\columnwidth
+ \@parboxrestore
+ \@floatboxreset
+}
+\def \@endfloatbox{%
+ \par\vskip\z@skip %% \par\vskip\z@ added 15 Dec 87
+ \@minipagefalse
+ \outer@nobreak
+ \egroup %% end of vbox
+ \the\luapersian@p@ftn
+ \global\luapersian@p@ftn{}%
+ \color@endbox
+}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `luapersianftnxtra.sty'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/memoir-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/memoir-luapersian.def
new file mode 100644
index 00000000000..7ea255d8202
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/memoir-luapersian.def
@@ -0,0 +1,86 @@
+%%
+%% This is file `memoir-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{memoir-luapersian.def}[2011/08/01 v0.1 adaptations for memoir class]
+\renewcommand{\keepthetitle}{%
+ \@bsmtitlempty
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\and\relax
+ \global\let\andnext\relax
+ \global\let\@thanks\@empty
+ \global\let\@title\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty}
+\renewcommand{\maketitle}{\par
+ \begingroup
+ \@bsmarkseries
+ \def\@makefnmark{\@textsuperscript{%
+ \normalfont\@bsthanksheadpre \tamark \@bsthanksheadpost}}%
+ \long\def\@makefntext##1{\makethanksmark ##1}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \ifdim\pagetotal>\z@
+ \newpage
+ \fi
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{title}\@thanks
+ \endgroup
+ \@bscontmark % \setcounter{footnote}{0}%
+ }
+\ifartopt
+ \chapterstyle{article}
+ \counterwithout{figure}{chapter}
+ \counterwithout{table}{chapter}
+ \counterwithout{footnote}{chapter}
+ \counterwithout{equation}{chapter}
+ \renewcommand{\chaptername}{}
+ \renewcommand{\maketitlehookb}{%
+ \vskip -1.5\topsep\vskip -1.5\partopsep}
+ \renewcommand{\maketitlehookc}{%
+ \vskip -1.5\topsep\vskip -1.5\partopsep}
+\fi
+
+\renewenvironment{thebibliography}[1]{%
+ \bibsection
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \begin{bibitemlist}{#1}}{\end{bibitemlist}\postbibhook}
+\renewcommand{\@memfront}{%
+ \@smemfront\pagenumbering{harfi}}
+\renewcommand{\setthesection}{\thechapter\@SepMark\harfi{section}}
+\renewcommand*{\thebook}{\@tartibi\c@book}
+\renewcommand*{\thepart}{\@tartibi\c@part}
+\renewcommand{\appendix}{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}%
+ \anappendixtrue}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `memoir-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/messages-localise-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/messages-localise-luapersian.def
new file mode 100644
index 00000000000..ac924614d1f
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/messages-localise-luapersian.def
@@ -0,0 +1,24 @@
+%%
+%% This is file `messages-localise-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\آماده‌سازی‌پرونده{messages-localise-luapersian.def}[2011/08/01 v0.1 localising LaTeX2e messages]
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `messages-localise-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/minitoc-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/minitoc-luapersian.def
new file mode 100644
index 00000000000..fff51c34475
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/minitoc-luapersian.def
@@ -0,0 +1,33 @@
+%%
+%% This is file `minitoc-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{minitoc-luapersian.def}[2011/08/01 v0.1 bilingual captions for minitoc package]
+\def\ptctitle{\if@RTL فهرست مطالب\else Table of Contents\fi}%
+\def\plftitle{\if@RTL لیست تصاویر\else List of Figures\fi}%
+\def\plttitle{\if@RTL لیست جداول\else List of Tables\fi}%
+\def\mtctitle{\if@RTL عناوین\else Contents\fi}%
+\def\mlftitle{\if@RTL اشکال\else Figures\fi}%
+\def\mlttitle{\if@RTL جداول\else Tables\fi}%
+\def\stctitle{\if@RTL عناوین\else Contents\fi}%
+\def\slftitle{\if@RTL اشکال\else Figures\fi}%
+\def\slttitle{\if@RTL جداول\else Tables\fi}%
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `minitoc-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/misc-localise-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/misc-localise-luapersian.def
new file mode 100644
index 00000000000..b7ada2ab7e6
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/misc-localise-luapersian.def
@@ -0,0 +1,344 @@
+%%
+%% This is file `misc-localise-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{misc-localise-luapersian.def}[2011/08/01 v0.1 miscellaneous Persian localisation of LaTeX2e]
+\تر\گرجدید#1{%
+\شمار@\نویسه‌ویژه \نویسه‌ویژه\من@ا
+ \بگذار#1\گرنادرست
+\@گر#1\گردرست
+\@گر#1\گرنادرست
+\نویسه‌ویژه\شمار@}
+\تر\@گر#1#2{%
+\بگسترپس‌از\تر\نام‌فرمان\بگسترپس‌از\@خورحریصانه‌دو\رشته#1%
+\بگسترپس‌از\@خورحریصانه‌دو\رشته#2\پایان‌نام‌فرمان
+{\بگذار#1#2}}
+\بگذار\تعریف‌نشده\undefined
+
+\def\@xfloat #1[#2]{%
+ \@nodocument
+ \def \@captype {#1}%
+ \def \@fps {#2}%
+ \@onelevel@sanitize \@fps
+ \def \reserved@b {!}%
+ \ifx \reserved@b \@fps
+ \@fpsadddefault
+ \else
+ \ifx \@fps \@empty
+ \@fpsadddefault
+ \fi
+ \fi
+ \ifhmode
+ \@bsphack
+ \@floatpenalty -\@Mii
+ \else
+ \@floatpenalty-\@Miii
+ \fi
+ \ifinner
+ \@parmoderr\@floatpenalty\z@
+ \else
+ \@next\@currbox\@freelist
+ {%
+ \@tempcnta \sixt@@n
+ \expandafter \@tfor \expandafter \reserved@a
+ \expandafter :\expandafter =\@fps
+ \do
+ {%
+ \if \reserved@a h%
+ \ifodd \@tempcnta
+ \else
+ \advance \@tempcnta \@ne
+ \fi
+ \fi
+ \if \reserved@a ا%
+ \ifodd \@tempcnta
+ \else
+ \advance \@tempcnta \@ne
+ \fi
+ \fi
+ \if \reserved@a t%
+ \@setfpsbit \tw@
+ \fi
+ \if \reserved@a ب%
+ \@setfpsbit \tw@
+ \fi
+ \if \reserved@a b%
+ \@setfpsbit 4%
+ \fi
+ \if \reserved@a ز%
+ \@setfpsbit 4%
+ \fi
+ \if \reserved@a p%
+ \@setfpsbit 8%
+ \fi
+ \if \reserved@a ص%
+ \@setfpsbit 8%
+ \fi
+ \if \reserved@a !%
+ \ifnum \@tempcnta>15
+ \advance\@tempcnta -\sixt@@n\relax
+ \fi
+ \fi
+ }%
+ \@tempcntb \csname ftype@\@captype \endcsname
+ \multiply \@tempcntb \@xxxii
+ \advance \@tempcnta \@tempcntb
+ \global \count\@currbox \@tempcnta
+ }%
+ \@fltovf
+ \fi
+ \global \setbox\@currbox
+ \color@vbox
+ \normalcolor
+ \vbox \bgroup
+ \hsize\columnwidth
+ \@parboxrestore
+ \@floatboxreset
+}
+\let\bm@و\bm@c
+\let\bm@چ\bm@l
+\let\bm@ر\bm@r
+\let\bm@ز\bm@b
+\let\bm@ب\bm@t
+\let\bm@ک\bm@s
+\long\def\@iiiparbox#1#2[#3]#4#5{%
+ \leavevmode
+ \@pboxswfalse
+ \setlength\@tempdima{#4}%
+ \@begin@tempboxa\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}%
+ \ifx\relax#2\else
+ \setlength\@tempdimb{#2}%
+ \edef\@parboxto{to\the\@tempdimb}%
+ \fi
+ \if#1b\vbox
+ \else\if#1ز\vbox
+ \else\if #1t\vtop
+ \else\if #1ب\vtop
+ \else\ifmmode\vcenter
+ \else\@pboxswtrue $\vcenter
+ \fi\fi\fi\fi\fi
+ \@parboxto{\let\hss\vss\let\unhbox\unvbox
+ \csname bm@#3\endcsname}%
+ \if@pboxsw \m@th$\fi
+ \@end@tempboxa}
+\def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4 \else
+ \ifnum \@lastchclass=3 5 \else
+ \z@ \if #1c\@chnum \z@ \else
+ \if #1و\@chnum \z@ \else
+ \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else
+ \if \if@RTLtab#1ر\else#1چ\fi\@chnum \@ne \else
+ \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else
+ \if \if@RTLtab#1چ\else#1ر\fi\@chnum \tw@ \else
+ \@chclass \if #1|\@ne \else
+ \if #1@\tw@ \else
+ \if #1p3 \else
+ \if #1پ3 \else \z@ \@preamerr 0\fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi
+\fi}%
+\@ifpackageloaded{array}{%
+\def\@testpach{\@chclass
+ \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
+ \ifnum \@lastchclass=7 5 \else
+ \ifnum \@lastchclass=8 \tw@ \else
+ \ifnum \@lastchclass=9 \thr@@
+ \else \z@
+ \ifnum \@lastchclass = 10 \else
+ \edef\@nextchar{\expandafter\string\@nextchar}%
+ \@chnum
+ \if \@nextchar c\z@ \else
+ \if \@nextchar و\z@ \else
+ \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
+ \if \@nextchar \if@RTLtab ر\else چ\fi\@ne \else
+ \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
+ \if \@nextchar \if@RTLtab چ\else ر\fi\tw@ \else
+ \z@ \@chclass
+ \if\@nextchar |\@ne \else
+ \if \@nextchar !6 \else
+ \if \@nextchar @7 \else
+ \if \@nextchar <8 \else
+ \if \@nextchar >9 \else
+ 10
+ \@chnum
+ \if \@nextchar m\thr@@\else
+ \if \@nextchar م\thr@@\else
+ \if \@nextchar p4 \else
+ \if \@nextchar پ4 \else
+ \if \@nextchar b5 \else
+ \if \@nextchar ز5 \else
+ \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi \fi \fi \fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}%
+}{}
+\@ifpackageloaded{arydshln}{
+\ifadl@usingarypkg
+\def\@testpach{\@chclass
+ \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
+ \ifnum \@lastchclass=7 5 \else
+ \ifnum \@lastchclass=8 \tw@ \else
+ \ifnum \@lastchclass=9 \thr@@
+ \else \z@
+ \ifnum \@lastchclass = 10 \else
+ \edef\@nextchar{\expandafter\string\@nextchar}%
+ \@chnum
+ \if \@nextchar c\z@ \else
+ \if \@nextchar و\z@ \else
+ \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
+ \if \@nextchar \if@RTLtab ر\else چ\fi\@ne \else
+ \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
+ \if \@nextchar \if@RTLtab چ\else ر\fi\tw@ \else
+ \z@ \@chclass
+ \if\@nextchar |\@ne \let\@arrayrule\adl@arrayrule \else
+ \if\@nextchar :\@ne \let\@arrayrule\adl@arraydashrule \else
+ \if\@nextchar ;\@ne \let\@arrayrule\adl@argarraydashrule \else
+ \if \@nextchar !6 \else
+ \if \@nextchar @7 \else
+ \if \@nextchar <8 \else
+ \if \@nextchar >9 \else
+ 10
+ \@chnum
+ \if \@nextchar m\thr@@\else
+ \if \@nextchar م\thr@@\else
+ \if \@nextchar p4 \else
+ \if \@nextchar پ4 \else
+ \if \@nextchar b5 \else
+ \if \@nextchar ز5 \else
+ \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi \fi \fi \fi \fi \fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
+
+\def\@classz{\@classx
+ \@tempcnta \count@
+ \prepnext@tok
+ \@addtopreamble{\ifcase \@chnum
+ \hfil
+ \adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or
+ \hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or
+ \hfil\hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\or
+ \setbox\adl@box\hbox \adl@startmbox{\@nextchar}\insert@column
+ \adl@endmbox\or
+ \setbox\adl@box\vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or
+ \setbox\adl@box\vbox \@startpbox{\@nextchar}\insert@column \@endpbox
+ \fi}\prepnext@tok}
+\def\adl@class@start{4}
+\def\adl@class@iiiorvii{7}
+
+\else
+\def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4\relax \else
+ \ifnum \@lastchclass=\thr@@ 5\relax \else
+ \z@ \if #1c\@chnum \z@ \else
+ \if #1و\@chnum\z@ \else
+ \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else
+ \if \if@RTLtab#1ر\else#1چ\fi\@chnum \@ne \else
+ \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else
+ \if \if@RTLtab#1چ\else#1ر\fi\@chnum \tw@ \else
+ \@chclass
+ \if #1|\@ne \let\@arrayrule\adl@arrayrule \else
+ \if #1:\@ne \let\@arrayrule\adl@arraydashrule \else
+ \if #1;\@ne \let\@arrayrule\adl@argarraydashrule \else
+ \if #1@\tw@ \else
+ \if #1p\thr@@ \else
+ \if #1پ\thr@@ \else\z@ \@preamerr 0\fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
+
+\def\@arrayclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or
+ \or \or \@addamp \or
+ \@acolampacol \or \@firstampfalse \@acol \fi
+ \edef\@preamble{\@preamble
+ \ifcase \@chnum
+ \hfil\adl@putlrc{$\relax\@sharp$}\hfil
+ \or \adl@putlrc{$\relax\@sharp$}\hfil
+ \or \hfil\adl@putlrc{$\relax\@sharp$}\fi}}
+\def\@tabclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or
+ \or \or \@addamp \or
+ \@acolampacol \or \@firstampfalse \@acol \fi
+ \edef\@preamble{\@preamble
+ \ifcase \@chnum
+ \hfil\adl@putlrc{\@sharp\unskip}\hfil
+ \or \adl@putlrc{\@sharp\unskip}\hfil
+ \or \hfil\hskip\z@ \adl@putlrc{\@sharp\unskip}\fi}}
+\def\adl@class@start{6}
+\def\adl@class@iiiorvii{3}
+\fi
+}{}
+\@ifpackageloaded{tabulary}{%
+\def\@testpach{\@chclass
+ \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
+ \ifnum \@lastchclass=7 5 \else
+ \ifnum \@lastchclass=8 \tw@ \else
+ \ifnum \@lastchclass=9 \thr@@
+ \else \z@
+ \ifnum \@lastchclass = 10 \else
+ \edef\@nextchar{\expandafter\string\@nextchar}%
+ \@chnum
+ \if \@nextchar c\z@ \else
+ \if \@nextchar و\z@ \else
+ \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
+ \if \@nextchar \if@RTLtab ر\else چ\fi\@ne \else
+ \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
+ \if \@nextchar \if@RTLtab چ\else ر\fi\tw@ \else
+ \if \@nextchar C7 \else
+ \if \@nextchar س7 \else
+ \if \@nextchar L8 \else
+ \if \@nextchar ف8 \else
+ \if \@nextchar R9 \else
+ \if \@nextchar ا9 \else
+ \if \@nextchar J10 \else
+ \if \@nextchar ت10 \else
+ \z@ \@chclass
+ \if\@nextchar |\@ne \else
+ \if \@nextchar !6 \else
+ \if \@nextchar @7 \else
+ \if \@nextchar <8 \else
+ \if \@nextchar >9 \else
+ 10
+ \@chnum
+ \if \@nextchar m\thr@@\else
+ \if \@nextchar م\thr@@\else
+ \if \@nextchar p4 \else
+ \if \@nextcharپ4 \else
+ \if \@nextchar b5 \else
+ \if \@nextchar ز5 \else
+ \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi\fi \fi \fi\fi \fi \fi \fi \fi \fi \fi \fi \fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}%
+}{}
+\@ifpackageloaded{float}{%
+\let\@float@Hx\@xfloat
+\def\@xfloat#1[{\@ifnextchar{H}{\@float@HH{#1}[}{\@ifnextchar{آ}{\@float@آآ{#1}[}{\@float@Hx{#1}[}}}
+\def\@float@HH#1[H]{%
+ \expandafter\let\csname end#1\endcsname\float@endH
+ \let\@currbox\float@box
+ \def\@captype{#1}\setbox\@floatcapt=\vbox{}%
+ \expandafter\ifx\csname fst@#1\endcsname\relax
+ \@flstylefalse\else\@flstyletrue\fi
+ \setbox\@currbox\color@vbox\normalcolor
+ \vbox\bgroup \hsize\columnwidth \@parboxrestore
+ \@floatboxreset \@setnobreak
+ \ignorespaces}
+\def\@float@آآ#1[آ]{%
+ \expandafter\let\csname end#1\endcsname\float@endH
+ \let\@currbox\float@box
+ \def\@captype{#1}\setbox\@floatcapt=\vbox{}%
+ \expandafter\ifx\csname fst@#1\endcsname\relax
+ \@flstylefalse\else\@flstyletrue\fi
+ \setbox\@currbox\color@vbox\normalcolor
+ \vbox\bgroup \hsize\columnwidth \@parboxrestore
+ \@floatboxreset \@setnobreak
+ \ignorespaces}
+}{}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `misc-localise-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/natbib-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/natbib-luapersian.def
new file mode 100644
index 00000000000..41d143cd95b
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/natbib-luapersian.def
@@ -0,0 +1,284 @@
+%%
+%% This is file `natbib-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{natbib-luapersian.def}[2011/08/01 v0.1 adaptations for natbib package]
+\renewenvironment{RTLbibitems}[1][\labelsep]
+ {\par\bodydir TRT\pardir TRT\textdir TRT
+ \ifNAT@numbers
+ \rightskip\labelwidth
+ \else
+ \rightskip\labelsep
+ \fi
+ \advance\rightskip #1
+ \advance\leftskip -\leftmargin
+ \ignorespaces}{\endtrivlist}
+\renewenvironment{LTRbibitems}[1][\labelsep]
+ {\par\bodydir TLT\pardir TLT\textdir TLT
+ \ifNAT@numbers
+ \leftskip\labelwidth
+ \else
+ \leftskip\labelsep
+ \fi
+ \advance\leftskip #1
+ \advance\rightskip -\leftmargin
+ \ignorespaces}{\endtrivlist}
+\renewenvironment{thebibliography}[1]{%
+ \bibsection
+ \parindent\z@
+ \bibpreamble
+ \bibfont
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\the\c@NAT@ctr}}{\@bibsetup{#1}\global\c@NAT@ctr\z@}%
+ \ifNAT@openbib
+ \renewcommand\newblock{\par}%
+ \else
+ \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
+ \fi
+ \sloppy\clubpenalty4000\widowpenalty4000
+ \sfcode`\.\@m
+ \let\NAT@bibitem@first@sw\@firstoftwo
+ \let\citeN\cite \let\shortcite\cite
+ \let\citeasnoun\cite
+}{%
+ \bibitem@fin
+ \bibpostamble
+ \def\@noitemerr{%
+ \PackageWarning{natbib}{Empty `thebibliography' environment}%
+ }%
+ \endlist
+ \bibcleanup
+}%
+\renewcommand\NAT@set@cites{%
+ \ifNAT@numbers
+ \ifNAT@super \let\@cite\NAT@citesuper
+ \def\NAT@mbox##1{\unskip\nobreak\textsuperscript{##1}}%
+ \let\citeyearpar=\citeyear
+ \let\NAT@space\relax
+ \def\NAT@super@kern{\kern\p@}%
+ \else
+ \let\NAT@mbox=\mbox
+ \let\@cite\NAT@citenum
+ \let\NAT@space\NAT@spacechar
+ \let\NAT@super@kern\relax
+ \fi
+ \let\@citex\NAT@citexnum
+ \let\@Latincitex\NAT@Latin@citexnum
+ \let\@biblabel\NAT@biblabelnum
+ \let\@bibsetup\NAT@bibsetnum
+ \renewcommand\NAT@idxtxt{\NAT@name\NAT@spacechar\NAT@open\NAT@num\NAT@close}%
+ \def\natexlab##1{}%
+ \def\NAT@penalty{\penalty\@m}%
+ \else
+ \let\@cite\NAT@cite
+ \let\@citex\NAT@citex
+ \let\@Latincitex\NAT@Latin@citex
+ \let\@biblabel\NAT@biblabel
+ \let\@bibsetup\NAT@bibsetup
+ \let\NAT@space\NAT@spacechar
+ \let\NAT@penalty\@empty
+ \renewcommand\NAT@idxtxt{\NAT@name\NAT@spacechar\NAT@open\NAT@date\NAT@close}%
+ \def\natexlab##1{##1}%
+ \fi}
+\newcommand\NAT@Latin@citex{}
+\def\NAT@Latin@citex%
+ [#1][#2]#3{%
+ \NAT@reset@parser
+ \NAT@sort@cites{#3}%
+ \NAT@reset@citea
+ \@cite{\lr{\let\NAT@nm\@empty\let\NAT@year\@empty
+ \@for\@citeb:=\NAT@cite@list\do
+ {\@safe@activestrue
+ \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
+ \@safe@activesfalse
+ \@ifundefined{b@\@citeb\@extra@b@citeb}{\@citea%
+ {\reset@font\bfseries ?}\NAT@citeundefined
+ \PackageWarning{natbib}%
+ {Citation `\@citeb' on page \thepage \space undefined}\def\NAT@date{}}%
+ {\let\NAT@last@nm=\NAT@nm\let\NAT@last@yr=\NAT@year
+ \NAT@parse{\@citeb}%
+ \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{%
+ \let\NAT@name=\NAT@all@names
+ \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}%
+ \fi
+ \ifNAT@full\let\NAT@nm\NAT@all@names\else
+ \let\NAT@nm\NAT@name\fi
+ \ifNAT@swa\ifcase\NAT@ctype
+ \if\relax\NAT@date\relax
+ \@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}\NAT@date}%
+ \else
+ \ifx\NAT@last@nm\NAT@nm\NAT@yrsep
+ \ifx\NAT@last@yr\NAT@year
+ \def\NAT@temp{{?}}%
+ \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}%
+ {Multiple citation on page \thepage: same authors and
+ year\MessageBreak without distinguishing extra
+ letter,\MessageBreak appears as question mark}\fi
+ \NAT@hyper@{\NAT@exlab}%
+ \else\unskip\NAT@spacechar
+ \NAT@hyper@{\NAT@date}%
+ \fi
+ \else
+ \@citea\NAT@hyper@{%
+ \NAT@nmfmt{\NAT@nm}%
+ \hyper@natlinkbreak{%
+ \NAT@aysep\NAT@spacechar}{\@citeb\@extra@b@citeb
+ }%
+ \NAT@date
+ }%
+ \fi
+ \fi
+ \or\@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}%
+ \or\@citea\NAT@hyper@{\NAT@date}%
+ \or\@citea\NAT@hyper@{\NAT@alias}%
+ \fi \NAT@def@citea
+ \else
+ \ifcase\NAT@ctype
+ \if\relax\NAT@date\relax
+ \@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}%
+ \else
+ \ifx\NAT@last@nm\NAT@nm\NAT@yrsep
+ \ifx\NAT@last@yr\NAT@year
+ \def\NAT@temp{{?}}%
+ \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}%
+ {Multiple citation on page \thepage: same authors and
+ year\MessageBreak without distinguishing extra
+ letter,\MessageBreak appears as question mark}\fi
+ \NAT@hyper@{\NAT@exlab}%
+ \else
+ \unskip\NAT@spacechar
+ \NAT@hyper@{\NAT@date}%
+ \fi
+ \else
+ \@citea\NAT@hyper@{%
+ \NAT@nmfmt{\NAT@nm}%
+ \hyper@natlinkbreak{\NAT@spacechar\NAT@@open\if*#1*\else#1\NAT@spacechar\fi}%
+ {\@citeb\@extra@b@citeb}%
+ \NAT@date
+ }%
+ \fi
+ \fi
+ \or\@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}%
+ \or\@citea\NAT@hyper@{\NAT@date}%
+ \or\@citea\NAT@hyper@{\NAT@alias}%
+ \fi
+ \if\relax\NAT@date\relax
+ \NAT@def@citea
+ \else
+ \NAT@def@citea@close
+ \fi
+ \fi
+ }}\ifNAT@swa\else\if*#2*\else\NAT@cmt#2\fi
+ \if\relax\NAT@date\relax\else\NAT@@close\fi\fi}}{#1}{#2}}
+\newcommand\NAT@Latin@citexnum{}
+\def\NAT@Latin@citexnum[#1][#2]#3{%
+ \NAT@reset@parser
+ \NAT@sort@cites{#3}%
+ \NAT@reset@citea
+ \@cite{\lr{\def\NAT@num{-1}\let\NAT@last@yr\relax\let\NAT@nm\@empty
+ \@for\@citeb:=\NAT@cite@list\do
+ {\@safe@activestrue
+ \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
+ \@safe@activesfalse
+ \@ifundefined{b@\@citeb\@extra@b@citeb}{%
+ {\reset@font\bfseries?}
+ \NAT@citeundefined\PackageWarning{natbib}%
+ {Citation `\@citeb' on page \thepage \space undefined}}%
+ {\let\NAT@last@num\NAT@num\let\NAT@last@nm\NAT@nm
+ \NAT@parse{\@citeb}%
+ \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{%
+ \let\NAT@name=\NAT@all@names
+ \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}%
+ \fi
+ \ifNAT@full\let\NAT@nm\NAT@all@names\else
+ \let\NAT@nm\NAT@name\fi
+ \ifNAT@swa
+ \@ifnum{\NAT@ctype>\@ne}{%
+ \@citea
+ \NAT@hyper@{\@ifnum{\NAT@ctype=\tw@}{\NAT@test{\NAT@ctype}}{\NAT@alias}}%
+ }{%
+ \@ifnum{\NAT@cmprs>\z@}{%
+ \NAT@ifcat@num\NAT@num
+ {\let\NAT@nm=\NAT@num}%
+ {\def\NAT@nm{-2}}%
+ \NAT@ifcat@num\NAT@last@num
+ {\@tempcnta=\NAT@last@num\relax}%
+ {\@tempcnta\m@ne}%
+ \@ifnum{\NAT@nm=\@tempcnta}{%
+ \@ifnum{\NAT@merge>\@ne}{}{\NAT@last@yr@mbox}%
+ }{%
+ \advance\@tempcnta by\@ne
+ \@ifnum{\NAT@nm=\@tempcnta}{%
+ \ifx\NAT@last@yr\relax
+ \def@NAT@last@yr{\@citea}%
+ \else
+ \def@NAT@last@yr{--\NAT@penalty}%
+ \fi
+ }{%
+ \NAT@last@yr@mbox
+ }%
+ }%
+ }{%
+ \@tempswatrue
+ \@ifnum{\NAT@merge>\@ne}{\@ifnum{\NAT@last@num=\NAT@num\relax}{\@tempswafalse}{}}{}%
+ \if@tempswa\NAT@citea@mbox\fi
+ }%
+ }%
+ \NAT@def@citea
+ \else
+ \ifcase\NAT@ctype
+ \ifx\NAT@last@nm\NAT@nm \NAT@yrsep\NAT@penalty\NAT@space\else
+ \@citea \NAT@test{\@ne}\NAT@spacechar\NAT@mbox{\NAT@super@kern\NAT@@open}%
+ \fi
+ \if*#1*\else#1\NAT@spacechar\fi
+ \NAT@mbox{\NAT@hyper@{{\citenumfont{\NAT@num}}}}%
+ \NAT@def@citea@box
+ \or
+ \NAT@hyper@citea@space{\NAT@test{\NAT@ctype}}%
+ \or
+ \NAT@hyper@citea@space{\NAT@test{\NAT@ctype}}%
+ \or
+ \NAT@hyper@citea@space\NAT@alias
+ \fi
+ \fi
+ }%
+ }%
+ \@ifnum{\NAT@cmprs>\z@}{\NAT@last@yr}{}%
+ \ifNAT@swa\else
+ \@ifnum{\NAT@ctype=\z@}{%
+ \if*#2*\else\NAT@cmt#2\fi
+ }{}%
+ \NAT@mbox{\NAT@@close}%
+ \fi
+ }}{#1}{#2}%
+}%
+\AtBeginDocument{\NAT@set@cites}
+\DeclareRobustCommand\Latincite
+ {\begingroup\let\NAT@ctype\z@\NAT@partrue\NAT@swatrue
+ \@ifstar{\NAT@fulltrue\NAT@Latin@cites}{\NAT@fullfalse\NAT@Latin@cites}}
+\newcommand\NAT@Latin@cites{\@ifnextchar [{\NAT@@Latin@@citetp}{%
+ \ifNAT@numbers\else
+ \NAT@swafalse
+ \fi
+ \NAT@@Latin@@citetp[]}}
+\newcommand\NAT@@Latin@@citetp{}
+\def\NAT@@Latin@@citetp[#1]{\@ifnextchar[{\@Latincitex[#1]}{\@Latincitex[][#1]}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `natbib-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/packages-localise-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/packages-localise-luapersian.def
new file mode 100644
index 00000000000..496f5fa1aa7
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/packages-localise-luapersian.def
@@ -0,0 +1,25 @@
+%%
+%% This is file `packages-localise-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\آماده‌سازی‌پرونده{packages-localise-xepersian.def}[2011/08/01 v0.1 localising LaTeX2e Packages]
+\@گرسبک‌فراخوانی‌شده{color}{\ورودی{color-localise-luapersian.def}}{}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `packages-localise-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/pgf-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/pgf-luapersian.def
new file mode 100644
index 00000000000..8ae4ffdaf87
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/pgf-luapersian.def
@@ -0,0 +1,32 @@
+%%
+%% This is file `pgf-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{pgf-luapersian.def}[2011/08/01 v0.1 adaptations for pgf package]
+\AtBeginDocument{%
+\@ifpackageloaded{tikz}{}{%
+\let\origin@pgfpicture=\pgfpicture
+\let\origin@endpgfpicture=\endpgfpicture
+\def\pgfpicture{\ifmmode\else\LTR\fi\origin@pgfpicture}
+\def\endpgfpicture{\origin@endpgfpicture\ifmmode\else\endLTR\fi}%
+}%
+}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `pgf-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/ragged2e-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/ragged2e-luapersian.def
new file mode 100644
index 00000000000..b1f90019633
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/ragged2e-luapersian.def
@@ -0,0 +1,38 @@
+%%
+%% This is file `ragged2e-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{ragged2e-luapersian.def}[2011/08/01 v0.1 adaptations for ragged2e package]
+\newcommand{\bidiRaggedLeft}{\if@RTL\RaggedRight\else\RaggedLeft\fi}
+\newcommand{\bidiRaggedRight}{\if@RTL\RaggedLeft\else\RaggedRight\fi}
+\renewenvironment{FlushLeft}{%
+ \trivlist
+ \bidiRaggedRight\item\relax
+ }{%
+ \endtrivlist
+ }
+\renewenvironment{FlushRight}{%
+ \trivlist
+ \bidiRaggedLeft\item\relax
+ }{%
+ \endtrivlist
+ }
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `ragged2e-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/rapport1-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/rapport1-luapersian.def
new file mode 100644
index 00000000000..cc7d53964f5
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/rapport1-luapersian.def
@@ -0,0 +1,182 @@
+%%
+%% This is file `rapport1-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{rapport1-luapersian.def}[2011/08/01 v0.1 adaptations for rapport1 class]
+\renewcommand*\right@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil}
+}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\if@titlepage
+\renewcommand*\TitleFont{\rmfamily}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
+\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
+ \futurelet\@tempa\uc@ax}
+\def\uc@ax{%
+ \ifx\@tempa\relax
+ \else
+ \\ \andname \\ \expandafter\uc@authornothanks
+ \fi}
+\def\uc@tx{\ifx\@tempa\relax
+ \else \expandafter\uc@ty \fi}
+\def\uc@ty#1{\thanks{#1}\uc@nothanks}
+\else
+\renewcommand*\maketitle{\par
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext{\@xmakefntext{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \TitleFont \@title \par}%
+ \vskip 1.5em%
+ {\large \TitleFont
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \TitleFont \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand*\thepart{\@tartibi\c@part}
+\renewcommand*\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `rapport1-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/rapport3-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/rapport3-luapersian.def
new file mode 100644
index 00000000000..0abb55f06de
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/rapport3-luapersian.def
@@ -0,0 +1,200 @@
+%%
+%% This is file `rapport3-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{rapport3-luapersian.def}[2011/08/01 v0.1 adaptations for rapport3 class]
+\if@titlepage
+\renewcommand*\TitleFont{\rmfamily}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
+\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
+ \futurelet\@tempa\uc@ax}
+\def\uc@ax{%
+ \ifx\@tempa\relax
+ \else
+ \\ \andname \\ \expandafter\uc@authornothanks
+ \fi}
+\def\uc@tx{\ifx\@tempa\relax
+ \else \expandafter\uc@ty \fi}
+\def\uc@ty#1{\thanks{#1}\uc@nothanks}
+\else
+\renewcommand*\maketitle{\par
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext{\@xmakefntext{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+\if@titlecentered
+ \begin{center}%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\LARGE \TitleFont \@title \par}%
+ \vskip 1.5em%
+ {\large \TitleFont
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \TitleFont \@date}%
+ \end{center}%
+ \else
+ {\LARGE \TitleFont \head@style \@title \par} \vskip 1.5em
+ {\large \TitleFont \lineskip .5em \tabcolsep\z@
+ \def\and{%%% \begin{tabular} has already started
+ \end{tabular}\hskip 1em plus .17fil
+ \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi}%% \end{tabular} will come
+ \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi\@author\end{tabular}\par}
+ \vskip 1em {\large \TitleFont \@date}
+ \fi
+ \par
+ \vskip 1.5em}
+\fi
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand*\right@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil}
+}
+\renewcommand*\thepart{\@tartibi\c@part}
+\renewcommand*\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `rapport3-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/refrep-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/refrep-luapersian.def
new file mode 100644
index 00000000000..8a64ab3408e
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/refrep-luapersian.def
@@ -0,0 +1,170 @@
+%%
+%% This is file `refrep-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{refrep-luapersian.def}[2011/08/01 v0.1 adaptations for refrep class]
+\if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark%
+ {\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{%
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \advance\@tempdima -1em
+ \parshape \@ne 1em \@tempdima}%
+ \par\parindent 1em \noindent
+ \hb@xt@\z@{\hss\@textsuperscript{\normalfont\@thefnmark}\,}##1}
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\else
+ \renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark%
+ {\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{%
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \advance\@tempdima -1em
+ \parshape \@ne 1em \@tempdima}%
+ \par\parindent 1em \noindent
+ \hb@xt@\z@{\hss\@textsuperscript{\normalfont\@thefnmark}\,}##1}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{empty}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+ \def\@maketitle{%
+ \newpage
+ \null
+ \longthickrule\vskip1.5em%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\secshape \parskip\z@ \parindent\z@
+ \Large\bfseries \@title \par}%
+ \vskip1.5em\longthickrule\vskip1.5em%
+ {\normalsize
+ \lineskip .5em%
+ \begin{flushright}%
+ {\slshape\@author\par}
+ \vskip 1em%
+ {\@date}%
+ \end{flushright}\par}%
+ \vskip 1.5em}
+\fi
+\renewcommand\right@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}
+\renewcommand\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil}}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname
+ \@mkboth{\bibname}{\bibname}}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.=\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand \thepart {\@tartibi\c@part}
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}
+}%end appendix
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `refrep-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/report-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/report-luapersian.def
new file mode 100644
index 00000000000..f91b1d06a04
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/report-luapersian.def
@@ -0,0 +1,157 @@
+%%
+%% This is file `report-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{report-luapersian.def}[2011/08/01 v0.1 adaptations for standard report class]
+ \if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand\right@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}
+\renewcommand\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil}}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand \thepart {\@tartibi\c@part}
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}
+}%end appendix
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `report-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/scrartcl-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/scrartcl-luapersian.def
new file mode 100644
index 00000000000..e8cc10cdb65
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/scrartcl-luapersian.def
@@ -0,0 +1,295 @@
+%%
+%% This is file `scrartcl-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{scrartcl-luapersian.def}[2011/08/01 v0.1 adaptations for scrartcl class]
+\renewcommand*\maketitle[1][1]{%
+ \if@titlepage
+ \begin{titlepage}
+ \setcounter{page}{%
+ #1%
+ }%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle\next@tpage\cleardoubleemptypage
+ \thispagestyle{empty}%
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}%
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null\vfill
+ \begin{center}
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}%
+ \vskip 3em
+ \fi
+ {\titlefont\huge \@title\par}%
+ \vskip 1em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 2em
+ {\Large \lineskip 0.75em
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1.5em
+ {\Large \@date \par}%
+ \vskip \z@ \@plus3fill
+ {\Large \@publishers \par}%
+ \vskip 3em
+ \end{center}\par
+ \@thanks
+ \vfill\null
+ \if@twoside\next@tpage
+ \begin{minipage}[t]{\textwidth}
+ \@uppertitleback
+ \end{minipage}\par
+ \vfill
+ \begin{minipage}[b]{\textwidth}
+ \@lowertitleback
+ \end{minipage}
+ \fi
+ \ifx\@dedication\@empty \else
+ \next@tpage\null\vfill
+ {\centering \Large \@dedication \par}%
+ \vskip \z@ \@plus3fill
+ \if@twoside \next@tpage\cleardoubleemptypage \fi
+ \fi
+ \end{titlepage}
+ \else
+ \par
+ \@tempcnta=%
+ #1%
+ \relax\ifnum\@tempcnta=1\else
+ \ClassWarning{\KOMAClassName}{%
+ Optional argument of \string\maketitle\space ignored
+ at\MessageBreak
+ notitlepage-mode%
+ }%
+ \fi
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{\titlepagestyle}\@thanks
+ \endgroup
+ \fi
+ \setcounter{footnote}{0}%
+ \let\thanks\relax
+ \let\LTRthanks\relax
+ \let\RTLthanks\relax
+ \let\maketitle\relax
+ \let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\@subtitle\@empty
+ \global\let\@extratitle\@empty
+ \global\let\@titlehead\@empty
+ \global\let\@subject\@empty
+ \global\let\@publishers\@empty
+ \global\let\@uppertitleback\@empty
+ \global\let\@lowertitleback\@empty
+ \global\let\@dedication\@empty
+ \global\let\author\relax
+ \global\let\title\relax
+ \global\let\extratitle\relax
+ \global\let\titlehead\relax
+ \global\let\subject\relax
+ \global\let\publishers\relax
+ \global\let\uppertitleback\relax
+ \global\let\lowertitleback\relax
+ \global\let\dedication\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}%
+\renewcommand*{\@maketitle}{%
+ \clearpage
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}
+ \vskip 1.5em
+ \fi
+ {\titlefont\huge \@title \par}%
+ \vskip .5em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 1em
+ {\Large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1em%
+ {\Large \@date \par}%
+ \vskip \z@ \@plus 1em
+ {\Large \@publishers \par}
+ \ifx\@dedication\@empty \else
+ \vskip 2em
+ {\Large \@dedication \par}
+ \fi
+ \end{center}%
+ \par
+ \vskip 2em
+}%
+\renewenvironment{thebibliography}[1]{%
+ \if@bib@break@
+ \bib@beginhook
+ \else
+ \bib@heading
+ \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
+ \noindent\bibpreamble\par\nobreak
+ \fi\fi
+ \bib@beginhook
+ \bib@before@hook
+ \fi
+ \renewcommand{\BreakBibliography}[1]{%
+ \@bib@break
+ \end{thebibliography}%
+ \begingroup ##1\endgroup
+ \begin{thebibliography}{#1}
+ }%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{%
+ \@biblabel{\@arabic\c@enumiv}%
+ }{%
+ \settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \if@bib@break@
+ \edef\@tempa{%
+ \noexpand\usecounter{enumiv}%
+ \noexpand\setcounter{enumiv}{\the\c@enumiv}%
+ }\@tempa
+ \no@bib@break
+ \else
+ \usecounter{enumiv}%
+ \fi
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}%
+ }%
+ \sloppy\clubpenalty4000 \widowpenalty4000
+ \sfcode`\.=\@m
+}{%
+ \if@bib@break@
+ \def\@noitemerr{%
+ \@latex@warning{%
+ \string\BreakBibliography\space at begin of `thebibliography'
+ environment\MessageBreak
+ or following \string\BreakBibliography}%
+ }%
+ \else
+ \def\@noitemerr{%
+ \@latex@warning{%
+ Empty `thebibliography' environment or
+ \string\BreakBibliography\MessageBreak
+ before end of `thebibliography' environment}%
+ }%
+ \fi
+ \endlist
+ \if@bib@break@
+ \else
+ \bib@after@hook
+ \let\bib@before@hook\@empty
+ \let\bib@after@hook\@empty
+ \fi
+ \bib@endhook
+}
+\renewcommand*\right@footnote{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}
+\renewcommand*\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil}}
+\renewcommand*{\thepart}{\@tartibi\c@part}
+\renewcommand*\appendix{\par%
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \gdef\thesection{\@harfi\c@section}%
+ \csname appendixmore\endcsname
+}
+\renewcommand*{\@@maybeautodot}[1]{%
+ \ifx #1\@stop\let\@@maybeautodot\relax
+ \else
+ \ifx #1\harfi \@autodottrue\fi
+ \ifx #1\adadi \@autodottrue\fi
+ \ifx #1\tartibi \@autodottrue\fi
+ \ifx #1\Alph \@autodottrue\fi
+ \ifx #1\alph \@autodottrue\fi
+ \ifx #1\Roman \@autodottrue\fi
+ \ifx #1\roman \@autodottrue\fi
+ \ifx #1\@harfi \@autodottrue\fi
+ \ifx #1\@adadi \@autodottrue\fi
+ \ifx #1\@tartibi \@autodottrue\fi
+ \ifx #1\@Alph \@autodottrue\fi
+ \ifx #1\@alph \@autodottrue\fi
+ \ifx #1\@Roman \@autodottrue\fi
+ \ifx #1\@roman \@autodottrue\fi
+ \ifx #1\romannumeral \@autodottrue\fi
+ \fi
+ \@@maybeautodot
+}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `scrartcl-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/scrbook-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/scrbook-luapersian.def
new file mode 100644
index 00000000000..8806ffff339
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/scrbook-luapersian.def
@@ -0,0 +1,301 @@
+%%
+%% This is file `scrbook-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{scrbook-luapersian.def}[2011/08/01 v0.1 adaptations for scrbook class]
+\renewcommand*\maketitle[1][1]{%
+ \if@titlepage
+ \begin{titlepage}
+ \setcounter{page}{%
+ #1%
+ }%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle\next@tpage\cleardoubleemptypage
+ \thispagestyle{empty}%
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}%
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null\vfill
+ \begin{center}
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}%
+ \vskip 3em
+ \fi
+ {\titlefont\huge \@title\par}%
+ \vskip 1em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 2em
+ {\Large \lineskip 0.75em
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1.5em
+ {\Large \@date \par}%
+ \vskip \z@ \@plus3fill
+ {\Large \@publishers \par}%
+ \vskip 3em
+ \end{center}\par
+ \@thanks
+ \vfill\null
+ \if@twoside\next@tpage
+ \begin{minipage}[t]{\textwidth}
+ \@uppertitleback
+ \end{minipage}\par
+ \vfill
+ \begin{minipage}[b]{\textwidth}
+ \@lowertitleback
+ \end{minipage}
+ \fi
+ \ifx\@dedication\@empty \else
+ \next@tpage\null\vfill
+ {\centering \Large \@dedication \par}%
+ \vskip \z@ \@plus3fill
+ \if@twoside \next@tpage\cleardoubleemptypage \fi
+ \fi
+ \end{titlepage}
+ \else
+ \par
+ \@tempcnta=%
+ #1%
+ \relax\ifnum\@tempcnta=1\else
+ \ClassWarning{\KOMAClassName}{%
+ Optional argument of \string\maketitle\space ignored
+ at\MessageBreak
+ notitlepage-mode%
+ }%
+ \fi
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{\titlepagestyle}\@thanks
+ \endgroup
+ \fi
+ \setcounter{footnote}{0}%
+ \let\thanks\relax
+ \let\LTRthanks\relax
+ \let\RTLthanks\relax
+ \let\maketitle\relax
+ \let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\@subtitle\@empty
+ \global\let\@extratitle\@empty
+ \global\let\@titlehead\@empty
+ \global\let\@subject\@empty
+ \global\let\@publishers\@empty
+ \global\let\@uppertitleback\@empty
+ \global\let\@lowertitleback\@empty
+ \global\let\@dedication\@empty
+ \global\let\author\relax
+ \global\let\title\relax
+ \global\let\extratitle\relax
+ \global\let\titlehead\relax
+ \global\let\subject\relax
+ \global\let\publishers\relax
+ \global\let\uppertitleback\relax
+ \global\let\lowertitleback\relax
+ \global\let\dedication\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}%
+\renewcommand*{\@maketitle}{%
+ \clearpage
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}
+ \vskip 1.5em
+ \fi
+ {\titlefont\huge \@title \par}%
+ \vskip .5em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 1em
+ {\Large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1em%
+ {\Large \@date \par}%
+ \vskip \z@ \@plus 1em
+ {\Large \@publishers \par}
+ \ifx\@dedication\@empty \else
+ \vskip 2em
+ {\Large \@dedication \par}
+ \fi
+ \end{center}%
+ \par
+ \vskip 2em
+}%
+
+\renewenvironment{thebibliography}[1]{%
+ \if@bib@break@
+ \bib@beginhook
+ \else
+ \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
+ \setchapterpreamble{\bibpreamble}%
+ \fi\fi
+ \bib@heading
+ \bib@beginhook
+ \bib@before@hook
+ \fi
+ \renewcommand{\BreakBibliography}[1]{%
+ \@bib@break
+ \end{thebibliography}%
+ \begingroup ##1\endgroup
+ \begin{thebibliography}{#1}
+ }%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{%
+ \@biblabel{\@arabic\c@enumiv}%
+ }{%
+ \settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \if@bib@break@
+ \edef\@tempa{%
+ \noexpand\usecounter{enumiv}%
+ \noexpand\setcounter{enumiv}{\the\c@enumiv}%
+ }\@tempa
+ \no@bib@break
+ \else
+ \usecounter{enumiv}%
+ \fi
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}%
+ }%
+ \sloppy\clubpenalty4000 \widowpenalty4000
+ \sfcode`\.=\@m
+}{%
+ \if@bib@break@
+ \def\@noitemerr{%
+ \@latex@warning{%
+ \string\BreakBibliography\space at begin of `thebibliography'
+ environment\MessageBreak
+ or following \string\BreakBibliography}%
+ }%
+ \else
+ \def\@noitemerr{%
+ \@latex@warning{%
+ Empty `thebibliography' environment or
+ \string\BreakBibliography\MessageBreak
+ before end of `thebibliography' environment}%
+ }%
+ \fi
+ \endlist
+ \if@bib@break@
+ \else
+ \bib@after@hook
+ \let\bib@before@hook\@empty
+ \let\bib@after@hook\@empty
+ \fi
+ \bib@endhook
+}
+\renewcommand*\right@footnote{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}
+\renewcommand*\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil}}
+\renewcommand*\frontmatter{%
+ \if@twoside\cleardoubleoddpage\else\clearpage\fi
+ \@mainmatterfalse\pagenumbering{harfi}%
+}
+\renewcommand*{\thepart}{\@tartibi\c@part}
+\renewcommand*\appendix{\par%
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}%
+ \csname appendixmore\endcsname
+}
+\renewcommand*{\@@maybeautodot}[1]{%
+ \ifx #1\@stop\let\@@maybeautodot\relax
+ \else
+ \ifx #1\harfi \@autodottrue\fi
+ \ifx #1\adadi \@autodottrue\fi
+ \ifx #1\tartibi \@autodottrue\fi
+ \ifx #1\Alph \@autodottrue\fi
+ \ifx #1\alph \@autodottrue\fi
+ \ifx #1\Roman \@autodottrue\fi
+ \ifx #1\roman \@autodottrue\fi
+ \ifx #1\@harfi \@autodottrue\fi
+ \ifx #1\@adadi \@autodottrue\fi
+ \ifx #1\@tartibi \@autodottrue\fi
+ \ifx #1\@Alph \@autodottrue\fi
+ \ifx #1\@alph \@autodottrue\fi
+ \ifx #1\@Roman \@autodottrue\fi
+ \ifx #1\@roman \@autodottrue\fi
+ \ifx #1\romannumeral \@autodottrue\fi
+ \fi
+ \@@maybeautodot
+}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `scrbook-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/scrreprt-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/scrreprt-luapersian.def
new file mode 100644
index 00000000000..63892e02755
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/scrreprt-luapersian.def
@@ -0,0 +1,296 @@
+%%
+%% This is file `scrreprt-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{scrreprt-luapersian.def}[2011/08/01 v0.1 adaptations for scrreprt class]
+\renewcommand*\maketitle[1][1]{%
+ \if@titlepage
+ \begin{titlepage}
+ \setcounter{page}{%
+ #1%
+ }%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle\next@tpage\cleardoubleemptypage
+ \thispagestyle{empty}%
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}%
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null\vfill
+ \begin{center}
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}%
+ \vskip 3em
+ \fi
+ {\titlefont\huge \@title\par}%
+ \vskip 1em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 2em
+ {\Large \lineskip 0.75em
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1.5em
+ {\Large \@date \par}%
+ \vskip \z@ \@plus3fill
+ {\Large \@publishers \par}%
+ \vskip 3em
+ \end{center}\par
+ \@thanks
+ \vfill\null
+ \if@twoside\next@tpage
+ \begin{minipage}[t]{\textwidth}
+ \@uppertitleback
+ \end{minipage}\par
+ \vfill
+ \begin{minipage}[b]{\textwidth}
+ \@lowertitleback
+ \end{minipage}
+ \fi
+ \ifx\@dedication\@empty \else
+ \next@tpage\null\vfill
+ {\centering \Large \@dedication \par}%
+ \vskip \z@ \@plus3fill
+ \if@twoside \next@tpage\cleardoubleemptypage \fi
+ \fi
+ \end{titlepage}
+ \else
+ \par
+ \@tempcnta=%
+ #1%
+ \relax\ifnum\@tempcnta=1\else
+ \ClassWarning{\KOMAClassName}{%
+ Optional argument of \string\maketitle\space ignored
+ at\MessageBreak
+ notitlepage-mode%
+ }%
+ \fi
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{\titlepagestyle}\@thanks
+ \endgroup
+ \fi
+ \setcounter{footnote}{0}%
+ \let\thanks\relax
+ \let\LTRthanks\relax
+ \let\RTLthanks\relax
+ \let\maketitle\relax
+ \let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\@subtitle\@empty
+ \global\let\@extratitle\@empty
+ \global\let\@titlehead\@empty
+ \global\let\@subject\@empty
+ \global\let\@publishers\@empty
+ \global\let\@uppertitleback\@empty
+ \global\let\@lowertitleback\@empty
+ \global\let\@dedication\@empty
+ \global\let\author\relax
+ \global\let\title\relax
+ \global\let\extratitle\relax
+ \global\let\titlehead\relax
+ \global\let\subject\relax
+ \global\let\publishers\relax
+ \global\let\uppertitleback\relax
+ \global\let\lowertitleback\relax
+ \global\let\dedication\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}%
+\renewcommand*{\@maketitle}{%
+ \clearpage
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}
+ \vskip 1.5em
+ \fi
+ {\titlefont\huge \@title \par}%
+ \vskip .5em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 1em
+ {\Large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1em%
+ {\Large \@date \par}%
+ \vskip \z@ \@plus 1em
+ {\Large \@publishers \par}
+ \ifx\@dedication\@empty \else
+ \vskip 2em
+ {\Large \@dedication \par}
+ \fi
+ \end{center}%
+ \par
+ \vskip 2em
+}%
+\renewenvironment{thebibliography}[1]{%
+ \if@bib@break@
+ \bib@beginhook
+ \else
+ \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
+ \setchapterpreamble{\bibpreamble}%
+ \fi\fi
+ \bib@heading
+ \bib@beginhook
+ \bib@before@hook
+ \fi
+ \renewcommand{\BreakBibliography}[1]{%
+ \@bib@break
+ \end{thebibliography}%
+ \begingroup ##1\endgroup
+ \begin{thebibliography}{#1}
+ }%
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{%
+ \@biblabel{\@arabic\c@enumiv}%
+ }{%
+ \settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \if@bib@break@
+ \edef\@tempa{%
+ \noexpand\usecounter{enumiv}%
+ \noexpand\setcounter{enumiv}{\the\c@enumiv}%
+ }\@tempa
+ \no@bib@break
+ \else
+ \usecounter{enumiv}%
+ \fi
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}%
+ }%
+ \sloppy\clubpenalty4000 \widowpenalty4000
+ \sfcode`\.=\@m
+}{%
+ \if@bib@break@
+ \def\@noitemerr{%
+ \@latex@warning{%
+ \string\BreakBibliography\space at begin of `thebibliography'
+ environment\MessageBreak
+ or following \string\BreakBibliography}%
+ }%
+ \else
+ \def\@noitemerr{%
+ \@latex@warning{%
+ Empty `thebibliography' environment or
+ \string\BreakBibliography\MessageBreak
+ before end of `thebibliography' environment}%
+ }%
+ \fi
+ \endlist
+ \if@bib@break@
+ \else
+ \bib@after@hook
+ \let\bib@before@hook\@empty
+ \let\bib@after@hook\@empty
+ \fi
+ \bib@endhook
+}
+\renewcommand*\right@footnote{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}
+\renewcommand*\left@footnote{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil}}
+\renewcommand*{\thepart}{\@tartibi\c@part}
+\renewcommand*\appendix{\par%
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}%
+ \csname appendixmore\endcsname
+}
+\renewcommand*{\@@maybeautodot}[1]{%
+ \ifx #1\@stop\let\@@maybeautodot\relax
+ \else
+ \ifx #1\harfi \@autodottrue\fi
+ \ifx #1\adadi \@autodottrue\fi
+ \ifx #1\tartibi \@autodottrue\fi
+ \ifx #1\Alph \@autodottrue\fi
+ \ifx #1\alph \@autodottrue\fi
+ \ifx #1\Roman \@autodottrue\fi
+ \ifx #1\roman \@autodottrue\fi
+ \ifx #1\@harfi \@autodottrue\fi
+ \ifx #1\@adadi \@autodottrue\fi
+ \ifx #1\@tartibi \@autodottrue\fi
+ \ifx #1\@Alph \@autodottrue\fi
+ \ifx #1\@alph \@autodottrue\fi
+ \ifx #1\@Roman \@autodottrue\fi
+ \ifx #1\@roman \@autodottrue\fi
+ \ifx #1\romannumeral \@autodottrue\fi
+ \fi
+ \@@maybeautodot
+}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `scrreprt-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/sidecap-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/sidecap-luapersian.def
new file mode 100644
index 00000000000..45b5940c5d9
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/sidecap-luapersian.def
@@ -0,0 +1,49 @@
+%%
+%% This is file `sidecap-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{sidecap-luapersian.def}[2011/08/01 v0.1 adaptations for sidecap package]
+\renewcommand*{\SC@FLOAT}[2]{\if@RTL%
+ \isSC@ODD{{#1}\hspace{\sidecaptionsep}{#2}} {{#2}\hspace{\sidecaptionsep}{#1}}\else%
+\isSC@ODD{{#2}\hspace{\sidecaptionsep}{#1}} {{#1}\hspace{\sidecaptionsep}{#2}}\fi}
+\@ifpackagewith{sidecap}{innercaption}{%
+\if@RTL \renewcommand*{\SC@FLOAT}[2]{%
+ \isSC@ODD{{#2}\hspace{\sidecaptionsep}{#1}} {{#1}\hspace{\sidecaptionsep}{#2}}}
+ \renewcommand*\SC@justify@caption{%
+ \isSC@ODD{\RaggedRight}{\RaggedLeft}}\else
+ \renewcommand*{\SC@FLOAT}[2]{%
+ \isSC@ODD{{#1}\hspace{\sidecaptionsep}{#2}} {{#2}\hspace{\sidecaptionsep}{#1}}}
+ \renewcommand*\SC@justify@caption{%
+ \isSC@ODD{\RaggedLeft}{\RaggedRight}}\fi
+}{}
+\@ifpackagewith{sidecap}{rightcaption}{%
+ \if@RTL\renewcommand*{\SC@FLOAT}[2]{{#1}\hspace{\sidecaptionsep}{#2}}
+ \def\SC@justify@caption{\RaggedLeft}\else%
+ \renewcommand*{\SC@FLOAT}[2]{{#2}\hspace{\sidecaptionsep}{#1}}
+ \def\SC@justify@caption{\RaggedRight}\fi%
+}{}
+\@ifpackagewith{sidecap}{leftcaption}{%
+\if@RTL \renewcommand*{\SC@FLOAT}[2]{{#2}\hspace{\sidecaptionsep}{#1}}
+ \def\SC@justify@caption{\RaggedRight}\else%
+ \renewcommand*{\SC@FLOAT}[2]{{#1}\hspace{\sidecaptionsep}{#2}}
+ \def\SC@justify@caption{\RaggedLeft}\fi%
+}{}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `sidecap-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/stabular-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/stabular-luapersian.def
new file mode 100644
index 00000000000..e8ee3d291e0
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/stabular-luapersian.def
@@ -0,0 +1,50 @@
+%%
+%% This is file `stabular-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{stabular-luapersian.def}[2011/08/01 v0.1 adaptations for stabular package]
+\def\@stabular{\if@RTL\@RTLtabtrue\fi
+ \leavevmode \bgroup
+ \let\@acol\@tabacol
+ \let\@classz\@tabclassz
+ \let\@classiv\@tabclassiv \let\\\@tabularcr\@stabarray}
+\def\endstabular{\crcr\egroup
+ \egroup \egroup
+ \@RTLtabfalse}
+\expandafter \let \csname endstabular*\endcsname = \endstabular
+\def\@sarray[#1]#2{%
+ \bgroup
+ \setbox\@arstrutbox\hbox{%
+ \vrule \@height\arraystretch\ht\strutbox
+ \@depth\arraystretch \dp\strutbox
+ \@width\z@}%
+ \@mkpream{#2}%
+ \edef\@preamble{%
+ \ialign \noexpand\@halignto
+ \bgroup \@arstrut \@preamble \tabskip\z@skip \cr}%
+ \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
+ \let\tabularnewline\\%
+ \let\@sharp##%
+ \set@typeset@protect
+ \lineskip\z@skip\baselineskip\z@skip
+ \if@RTLtab\textdir TRT\fi
+ \@preamble}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `stabular-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/tabls-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/tabls-luapersian.def
new file mode 100644
index 00000000000..3ec985f949c
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/tabls-luapersian.def
@@ -0,0 +1,58 @@
+%%
+%% This is file `tabls-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{tabls-luapersian.def}[2011/08/01 v0.1 adaptations for tabls package]
+\def\endtabular{\endarray $\egroup
+ \@RTLtabfalse}
+
+\expandafter\let\csname endtabular*\endcsname=\endtabular
+
+\def\endarray{\ifvmode\csname crcr\endcsname % just do \crcr if \\ given
+ \else \\[\z@ \global\advance\@arstdepth-\@otarlinesep]%
+ \fi\egroup\@unrecurse\egroup}
+
+\def\@array[#1]#2{% remember global variables to allow recursion:
+ \edef\@unrecurse{\global\@skip@bove\the\@skip@bove
+ \global\@arstheight\the\@arstheight\global\@arstdepth\the\@arstdepth}%
+ \let\@otarlinesep\@tarlinesep \global\@skip@bove-\@otarlinesep
+ \ifx\@classz\@arrayclassz \let\@tarlinesep\arraylinesep
+ \else \let\@tarlinesep\tablinesep \fi
+ \divide\@tarlinesep\tw@ % half sep is applied to height & depth
+ \let\@seesize\relax \let\@rememsize\relax \@mkpream{#2}%
+ \@tempdima\arraystretch\ht\strutbox \@tempdimb\arraystretch\dp\strutbox
+ \ifdim\@tarlinesep>\z@ % (need \protect for \multicolumn)
+ \def\@rememsize{\protect\@r@m@msize}\let\@seesize\@s@@size
+ \advance\@tempdima-\@tarlinesep \advance\@tempdimb-\@tarlinesep
+ \fi \setbox\@arstrutbox\hbox{% set up smaller strut
+ \vrule \@height\@tempdima \@depth\@tempdimb \@width\z@}%
+ \let\protect\noexpand
+ \edef\@preamble{\ialign \noexpand\@halignto \bgroup
+ \unhcopy\@arstrutbox \@preamble \tabskip\z@skip &\@sharp \cr}%
+ \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
+ \if#1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi
+ \bgroup \let\par\@empty
+ \global\@arstheight\ht\@arstrutbox \global\@arstdepth\dp\@arstrutbox
+ \advance\extrarulesep.5\arrayrulewidth
+ \let\@sharp##\let\protect\relax \lineskip\z@skip \baselineskip\z@skip
+ \if@RTLtab\textdir TRT\fi
+ \@preamble}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `tabls-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/tabulary-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/tabulary-luapersian.def
new file mode 100644
index 00000000000..ef360b61b8a
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/tabulary-luapersian.def
@@ -0,0 +1,53 @@
+%%
+%% This is file `tabulary-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{tabulary-luapersian.def}[2011/08/01 v0.1 adaptations for tabulary package]
+\def\@testpach{\@chclass
+ \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
+ \ifnum \@lastchclass=7 5 \else
+ \ifnum \@lastchclass=8 \tw@ \else
+ \ifnum \@lastchclass=9 \thr@@
+ \else \z@
+ \ifnum \@lastchclass = 10 \else
+ \edef\@nextchar{\expandafter\string\@nextchar}%
+ \@chnum
+ \if \@nextchar c\z@ \else
+ \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
+ \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
+ \if \@nextchar C7 \else
+ \if \@nextchar L8 \else
+ \if \@nextchar R9 \else
+ \if \@nextchar J10 \else
+ \z@ \@chclass
+ \if\@nextchar |\@ne \else
+ \if \@nextchar !6 \else
+ \if \@nextchar @7 \else
+ \if \@nextchar <8 \else
+ \if \@nextchar >9 \else
+ 10
+ \@chnum
+ \if \@nextchar m\thr@@\else
+ \if \@nextchar p4 \else
+ \if \@nextchar b5 \else
+ \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi\fi \fi \fi\fi \fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `tabulary-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/tikz-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/tikz-luapersian.def
new file mode 100644
index 00000000000..4c55a82d776
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/tikz-luapersian.def
@@ -0,0 +1,28 @@
+%%
+%% This is file `tikz-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{tikz-luapersian.def}[2011/08/01 v0.1 adaptations for tikz package]
+\let\origin@tikzpicture=\tikzpicture
+\let\origin@endtikzpicture=\endtikzpicture
+\def\tikzpicture{\ifmmode\else\LTR\fi\origin@tikzpicture}
+\def\endtikzpicture{\origin@endtikzpicture\ifmmode\else\endLTR\fi}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `tikz-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/tocbibind-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/tocbibind-luapersian.def
new file mode 100644
index 00000000000..6c096793b4a
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/tocbibind-luapersian.def
@@ -0,0 +1,54 @@
+%%
+%% This is file `tocbibind-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{tocbibind-luapersian.def}[2011/08/01 v0.1 adaptations for tocbibind package]
+\if@dotocbib
+ \@ifpackageloaded{natbib}{}{% natbib not loaded
+ \renewcommand{\bibsection}{\t@cb@bchapsec}
+ \renewenvironment{thebibliography}[1]{%
+ \bibsection
+ \begin{thebibitemlist}{#1}}{\end{thebibitemlist}}}
+ \renewenvironment{thebibitemlist}[1]{
+ \if@RTL\if@LTRbibitems\@RTLfalse\bodydir TLT\pardir TLT\textdir TLT\else\fi\else\if@RTLbibitems\@RTLtrue\bodydir TRT\pardir TRT\textdir TRT\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+
+ \@ifpackagewith{chapterbib}{sectionbib}%
+ {\renewcommand{\sectionbib}[2]{}}%
+ {}
+
+\fi
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `tocbibind-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/tocloft-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/tocloft-luapersian.def
new file mode 100644
index 00000000000..231de79cfb0
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/tocloft-luapersian.def
@@ -0,0 +1,34 @@
+%%
+%% This is file `tocloft-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{tocloft-luapersian.def}[2011/08/01 v0.1 bilingual captions for tocloft package]
+\renewcommand*{\cftchapname}{\if@RTL فصل\else chapter\fi}
+\renewcommand*{\cftsecname}{\if@RTL قسمت\else section\fi}
+\renewcommand*{\cftsubsecname}{\if@RTL زیرقسمت\else subsection\fi}
+\renewcommand*{\cftsubsubsecname}{\if@RTL زیرزیرقسمت\else subsubsection\fi}
+\renewcommand*{\cftparaname}{\if@RTL پاراگراف\else paragraph\fi}
+\renewcommand*{\cftsubparaname}{\if@RTL زیرپاراگراف\else subparagraph\fi}
+\renewcommand*{\cftfigname}{\if@RTL شکل\else figure\fi}
+\renewcommand*{\cftsubfigname}{\if@RTL زیرشکل\else subfigure\fi}
+\renewcommand*{\cfttabname}{\if@RTL جدول\else table\fi}
+\renewcommand*{\cftsubtabname}{\if@RTL زیرجدول\else subtable\fi}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `tocloft-luapersian.def'.
diff --git a/Master/texmf-dist/tex/lualatex/luapersian/wrapfig-luapersian.def b/Master/texmf-dist/tex/lualatex/luapersian/wrapfig-luapersian.def
new file mode 100644
index 00000000000..e32e56faf1c
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luapersian/wrapfig-luapersian.def
@@ -0,0 +1,99 @@
+%%
+%% This is file `wrapfig-luapersian.def',
+%% generated with the docstrip utility.
+%% ______________________________________
+%% Copyright © 2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{wrapfig-luapersian.def}[2011/08/01 v0.1 adaptations for wrapfig package]
+\def\WF@putfigmaybe{%
+\ifinner
+ \vskip-\parskip \global\WF@floatfalse
+ \let\pagetotal\maxdimen % kludge flag for "not top of page"
+\else % outer page
+ \@tempdima\pagedepth % save page depth
+ {\advance\parskip\@tempdima\vskip-\parskip}% back up to baseline
+ \penalty\interlinepenalty % update pg. parameters
+ \@tempdimb\pagegoal \advance\@tempdimb-\pagetotal % room left on page
+ \ifdim\@tempdimb<\z@ % \WF@info{Page overfull already;}%
+ \global\WF@floatfalse
+ \ifdim-\@tempdimb>\pageshrink \else \pagebreak \fi
+ \else
+ \ifdim\WF@size>\@tempdimb
+% \WF@info{Size \the\WF@size\space does not fit in \the\@tempdimb}%
+ \ifWF@float \dimen@.5\baselineskip \else \dimen@ 2\baselineskip\fi
+ \ifdim\pagestretch>\dimen@ \dimen@\pagestretch \fi
+ \ifdim\pagefilstretch>\z@ \dimen@\@tempdimb \fi
+ \ifdim\pagefillstretch>\z@ \dimen@\@tempdimb \fi
+ \advance\dimen@.5\baselineskip
+ \ifdim\dimen@>\@tempdimb % \WF@info{Page nearly full; can stretch}%
+ \global\WF@floatfalse \pagebreak
+ \fi
+ \else % \WF@info{Fits in \the\@tempdimb;}%
+ \global\WF@floatfalse
+ \fi\fi
+ \vskip\@tempdima\relax % (return erased page depth)
+\fi
+\noindent
+\ifWF@float
+ \WF@fltmes
+\else % putting here;
+ \WF@info{Put \WF@wfname here:}%
+ {\ifodd\if@twoside\c@page\else\@ne\fi % assign l/r to i/o placement
+ \lccode`i`l\lccode`o`r\else \lccode`i`r\lccode`o`l\fi
+ \xdef\WF@place{\the\lccode\lccode\WF@place}}% twice to get only l or r
+ \hbox to\z@{% llap or rlap depending on {l} or {r}; calc effective width
+ \@tempdima\wd\WF@box \@tempdimb\WF@ovh
+ \advance\@tempdima-\@tempdimb \advance\@tempdima\columnsep
+ \@tempdimb\hsize \advance\@tempdimb-\@tempdima
+ \xdef\WF@adjlw{\the\@tempdima}%
+ \ifnum `l=\WF@place % fig on left
+ \if@RTL%
+ \@tempdima\z@ % no left indentation
+ \kern\@tempdimb \kern\columnsep
+ \def\@tempa{\hss}% figure overlaps space to the right
+ \else
+ \hss % figure overlaps space to the left
+ \def\@tempa{\kern\columnsep}% position to left of the gap
+ \fi
+ \else % fig on right
+ \if@RTL%
+ \hss % figure overlaps space to the left
+ \def\@tempa{\kern\columnsep}% position to left of the gap
+ \else
+ \@tempdima\z@ % no left indentation
+ \kern\@tempdimb \kern\columnsep
+ \def\@tempa{\hss}% figure overlaps space to the right
+ \fi
+ \fi
+ \ifdim\@tempdimb<\hsize
+ \xdef\WF@wrapil{\the\@tempdima \the\@tempdimb}% indentation and length
+ \xdef\WF@adjtlm{\the\@tempdima}%
+ \else
+ \xdef\WF@wrapil{\z@ \the\hsize}%
+ \xdef\WF@adjlw{\z@}\xdef\WF@adjtlm{\z@}%
+ \fi
+ \ifdim\pagetotal=\z@ % \WF@info{Put \WF@wfname at top of p.\thepage}%
+ \global\advance\WF@size-\intextsep
+ \else % \WF@info{Putting \WF@wfname in middle of page}%
+ \setbox\WF@box\hbox{\lower\intextsep\box\WF@box}%
+ \fi \dp\WF@box\z@ \box\WF@box \@tempa
+ }% end \hbox to 0pt
+ \aftergroup\WF@startwrapping % after the \endgroup which immediately follows
+\fi}
+%%
+%% Copyright © 2011 Vafa Khalighi <vafa018@gmail.com>
+%%
+%% 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
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `wrapfig-luapersian.def'.