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/simurgh/ChangeLog24
-rw-r--r--Master/texmf-dist/doc/lualatex/simurgh/README.doc4
-rw-r--r--Master/texmf-dist/doc/lualatex/simurgh/simurgh-doc.pdfbin118167 -> 117941 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/simurgh/simurgh-doc.tex12
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-abjad.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-adadi.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-algorithm.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-algorithmic.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsart.sty26
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsbook.sty26
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsmath.sty120
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-amstext.sty9
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsthm.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-array.sty4
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-article.sty10
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel1.sty10
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel2.sty10
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel3.sty10
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-arydshln.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-backref.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-bidi.sty25
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-boek.sty10
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-boek3.sty10
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-book.sty10
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-bookest.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-caption3.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-chkeng.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-clss.sty28
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-counters.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-cptns.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-doc.cls2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-empheq.sty54
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-extarticle.sty10
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-extbook.sty10
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-extletter.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-extreport.sty10
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty27
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-fonts.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-footnotes.sty34
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-ftnxtra.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-glossaries.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-harfi.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-jalalical.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-leqno.sty13
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-letter.sty30
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-lettrine.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-loader.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-ltx.sty84
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-mathdigitspec.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-memoir.sty48
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-minitoc.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-natbib.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-pkgs.sty3
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-poem.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-rapport1.sty68
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-rapport3.sty66
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-refrep.sty66
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-report.sty90
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrartcl.sty296
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrbook.sty328
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrlettr.sty117
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrreprt.sty315
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-shellescape.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-tags.sty7
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-tartibi.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-tools.sty4
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-unibidi-core.lua12
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-unibidi.sty2
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty23
69 files changed, 1856 insertions, 263 deletions
diff --git a/Master/texmf-dist/doc/lualatex/simurgh/ChangeLog b/Master/texmf-dist/doc/lualatex/simurgh/ChangeLog
index e5e6d6592d0..0df495cc4ed 100644
--- a/Master/texmf-dist/doc/lualatex/simurgh/ChangeLog
+++ b/Master/texmf-dist/doc/lualatex/simurgh/ChangeLog
@@ -1,5 +1,25 @@
-2013-12-01 0.01a Vafa Khalighi
+2013-09-22 0.01b Vafa Khalighi
+ * 0.01b
+ * Supported `letter.cls'
+ * Supported `memoir.cls'
+ * Supported `rapport1.cls'
+ * Supported `rapport3.cls'
+ * Supported `refrep.cls'
+ * Supported `report.cls'
+ * Supported `scrartcl.cls'
+ * Supported `scrbook.cls'
+ * Supported `scrlettr.cls'
+ * Supported `scrreprt.cls'
+ * Fixed equation numbers.
+ * Fixed bad margin of `multline' environment of `amsmath' package with
+ `fleqn' option.
+ * Fixed bad positioning of `align*' environment.
+ * Fixed `\intertext' command of `amsmath' package.
+ * Better `\llap' and `\rlap' macros.
+ * Updated `simurgh-empheq.sty'.
+
+2013-09-18 0.01a Vafa Khalighi
* 0.01a
* First version of `simurgh' package released; this version provides basic
- functionality for Parsi typesetting in LaTeX2e, using LuaTeX engine.
+ functionality for Parsi typesetting in LaTeX2e, using the LuaTeX engine.
\ No newline at end of file
diff --git a/Master/texmf-dist/doc/lualatex/simurgh/README.doc b/Master/texmf-dist/doc/lualatex/simurgh/README.doc
index 4a0f6208116..32306b53a29 100644
--- a/Master/texmf-dist/doc/lualatex/simurgh/README.doc
+++ b/Master/texmf-dist/doc/lualatex/simurgh/README.doc
@@ -2,7 +2,7 @@ The simurgh package
=================
The `simurgh' package provides an automatic and unified interface for
-Parsi typesetting in LaTeX, using LuaTeX engine.
+Parsi typesetting in LaTeX, using the LuaTeX engine.
See the documentation `simurgh-doc.pdf` for full information.
@@ -14,4 +14,4 @@ Copyright 2013 Vafa Khalighi <persian-tex@tug.org>
Permission is granted to copy, distribute and/or modify
all files of this package under the terms of the GNU Public License,
-Version 2 or any later version published by the Free Software Foundation.
+Version 2 or any later version published by the Free Software Foundation. \ No newline at end of file
diff --git a/Master/texmf-dist/doc/lualatex/simurgh/simurgh-doc.pdf b/Master/texmf-dist/doc/lualatex/simurgh/simurgh-doc.pdf
index 6df1cdf28c2..32349abcd73 100644
--- a/Master/texmf-dist/doc/lualatex/simurgh/simurgh-doc.pdf
+++ b/Master/texmf-dist/doc/lualatex/simurgh/simurgh-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/simurgh/simurgh-doc.tex b/Master/texmf-dist/doc/lualatex/simurgh/simurgh-doc.tex
index ce70b0e3ef3..6890542761c 100644
--- a/Master/texmf-dist/doc/lualatex/simurgh/simurgh-doc.tex
+++ b/Master/texmf-dist/doc/lualatex/simurgh/simurgh-doc.tex
@@ -7,8 +7,8 @@
\makeindex
\renewcommand*{\baselinestretch}{1.5}
\title{\textcolor{red!65!black}{\Huge The \simurgh{} \textit{package}}\\
-\LARGE Parsi typesetting for \LaTeX, using Lua\TeX{} engine\\[5pt]
-\large Documentation for \textcolor{red!65!black}{version 0.01a}}
+\LARGE Typeset Parsi in Lua\LaTeX\\[5pt]
+\large Documentation for \textcolor{red!65!black}{version 0.01b}}
\author{Vafa Khalighi\\
\url{persian-tex@tug.org}}
\begin{document}
@@ -20,7 +20,7 @@
\textcolor{red!65!black}{The \simurgh{} \textit{package}}
\Large
-Documentation for \textcolor{red!65!black}{version 0.01a}}
+Documentation for \textcolor{red!65!black}{version 0.01b}}
@@ -111,7 +111,7 @@ Typically, the \textit{package} will already be installed on your system. Natura
\subsection{\textit{package} and Driver Versions}
-This documentation is part of version 0.01a of the \simurgh{} \textit{package}. To use it, you just need a reasonably up-to-date \LaTeX-system, but the requirements are rather low. There are no special dependencies.
+This documentation is part of version 0.01b of the \simurgh{} \textit{package}. To use it, you just need a reasonably up-to-date \LaTeX-system, but the requirements are rather low. There are no special dependencies.
\subsection{Installing Prebundled Packages}
@@ -417,11 +417,11 @@ Chooses the Parsi font for digits in math mode. If you use |\setmathparsidigitfo
\end{command}
\begin{command}{\setmathsfparsidigitfont\oarg{options}\marg{font name}}
-Chooses the Parsi font for digits in math mode inside |\mathsf| command. If you use the command at least once, then in Parsi mode you get Parsi digits in math mode inside |\mathsf| and in Latin mode you get ``Latin Modern'' font and Latin digits in math mode inside |\mathsf|, otherwise you get ``Latin Modern'' fonts and Latin digits in math mode inside |\mathsf| everywhere.
+Chooses the Parsi font for digits in math mode inside |\mathsf| command. If you use |\setmathsfparsidigitfont| at least once, then in Parsi mode you get Parsi digits in math mode inside |\mathsf| and in Latin mode you get ``Latin Modern'' font and Latin digits in math mode inside |\mathsf|, otherwise you get ``Latin Modern'' fonts and Latin digits in math mode inside |\mathsf| everywhere.
\end{command}
\begin{command}{\setmathttparsidigitfont\oarg{options}\marg{font name}}
-Chooses the Parsi font for digits in math mode inside |\mathtt| command. If you use the command at least once, then in Parsi mode you get Parsi digits in math mode inside |\mathtt| and in Latin mode you get ``Latin Modern'' font and Latin digits in math mode inside |\mathtt|, otherwise you get ``Latin Modern'' fonts and Latin digits in math mode inside |\mathtt| everywhere.
+Chooses the Parsi font for digits in math mode inside |\mathtt| command. If you use |\setmathttparsidigitfont| at least once, then in Parsi mode you get Parsi digits in math mode inside |\mathtt| and in Latin mode you get ``Latin Modern'' font and Latin digits in math mode inside |\mathtt|, otherwise you get ``Latin Modern'' fonts and Latin digits in math mode inside |\mathtt| everywhere.
\end{command}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-abjad.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-abjad.sty
index 0c55e542606..70c1f243348 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-abjad.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-abjad.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-abjad}[2013/12/01 v0.01a abjad counter]
+\ProvidesPackage{simurgh-abjad}[2013/09/18 v0.01a abjad counter]
\if@simurgh@csundef{abjadnumeral}{%
\def\abjadnumeral#1{%
\ifnum#1>1999 \simurgh@warning{Illegal value (#1) for abjad numeral} {#1}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-adadi.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-adadi.sty
index 3745685558c..1aff8d261d0 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-adadi.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-adadi.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-adadi}[2013/12/01 v0.01a adadi counter]
+\ProvidesPackage{simurgh-adadi}[2013/09/18 v0.01a adadi counter]
\newcommand{\adadi}[1]{%
\expandafter\@adadi\csname c@#1\endcsname%
}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-algorithm.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-algorithm.sty
index ab1da7a1322..c7773e86988 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-algorithm.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-algorithm.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-algorithm}[2013/12/01 v0.01a changes to `algorithm.sty']
+\ProvidesPackage{simurgh-algorithm}[2013/09/18 v0.01a changes to `algorithm.sty']
\def\ALG@name{\if@RTL الگوریتم\else Algorithm\fi}
\def\ALGS@name{الگوریتم‌ها}
\def\listalgorithmname{\if@RTL فهرست \ALGS@name\else List of \ALG@name s\fi}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-algorithmic.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-algorithmic.sty
index 78a995f51f8..ce58cc9fd1f 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-algorithmic.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-algorithmic.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-algorithmic}[2013/12/01 v0.01a changes to `algorithmic.sty']
+\ProvidesPackage{simurgh-algorithmic}[2013/09/18 v0.01a changes to `algorithmic.sty']
\def\algorithmicrequire{\if@RTL\textbf{ورودی:}\else\textbf{Require:}\fi}
\def\algorithmicensure{\if@RTL\textbf{خروجی:}\else\textbf{Ensure:}\fi}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsart.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsart.sty
index 9197b037936..b42c2860ee9 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsart.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsart.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-amsart}[2013/12/01 v0.01a changes to `amsart.cls']
+\ProvidesPackage{simurgh-amsart}[2013/09/18 v0.01a changes to `amsart.cls']
\renewcommand\thesubsection {\thesection\@SepMark\arabic{subsection}}
\renewcommand\thesubsubsection {\thesubsection \@SepMark\arabic{subsubsection}}
\renewcommand\theparagraph {\thesubsubsection\@SepMark\arabic{paragraph}}
@@ -20,13 +20,13 @@
\insert\footins{%
\if@RTL@footnote%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\reset@parsifont%
\else%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\reset@latinfont%
\fi%
\footnotesize
@@ -42,8 +42,8 @@
\long\def\@RTLfootnotetext#1{%
\insert\footins{%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\reset@parsifont%
\footnotesize
\interlinepenalty\interfootnotelinepenalty
@@ -58,8 +58,8 @@
\long\def\@LTRfootnotetext#1{%
\insert\footins{%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\reset@latinfont%
\footnotesize
\interlinepenalty\interfootnotelinepenalty
@@ -82,14 +82,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsbook.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsbook.sty
index e39434ec724..fcf5e2c3862 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsbook.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsbook.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-amsbook}[2013/12/01 v0.01a changes to `amsbook.cls']
+\ProvidesPackage{simurgh-amsbook}[2013/09/18 v0.01a changes to `amsbook.cls']
\renewcommand\thesubsection {\thesection\@SepMark\arabic{subsection}}
\renewcommand\thesubsubsection {\thesubsection \@SepMark\arabic{subsubsection}}
\renewcommand\theparagraph {\thesubsubsection\@SepMark\arabic{paragraph}}
@@ -17,13 +17,13 @@
\insert\footins{%
\if@RTL@footnote%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\reset@parsifont%
\else%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\reset@latinfont%
\fi%
\footnotesize
@@ -39,8 +39,8 @@
\long\def\@RTLfootnotetext#1{%
\insert\footins{%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\reset@parsifont%
\footnotesize
\interlinepenalty\interfootnotelinepenalty
@@ -55,8 +55,8 @@
\long\def\@LTRfootnotetext#1{%
\insert\footins{%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\reset@latinfont%
\footnotesize
\interlinepenalty\interfootnotelinepenalty
@@ -79,14 +79,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsmath.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsmath.sty
index f63d4e9e741..315762e4fbb 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsmath.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsmath.sty
@@ -1,5 +1,18 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-amsmath}[2013/12/01 v0.01a changes to `amsmath.sty']
+\ProvidesPackage{simurgh-amsmath}[2013/09/22 v0.01b changes to `amsmath.sty']
+\def\maketag@@@#1{\if@RTL\hboxR\else\hboxL\fi{\m@th\normalfont#1}}
+\iftagsleft@
+ \def\@eqnnum{\hbox to1sp{}
+ \if@RTL
+ \llapR{\normalfont\normalcolor
+ \tagform@\theequation\hskip -\displaywidth}
+ \else
+ \rlapL{\normalfont\normalcolor
+ \hskip -\displaywidth\tagform@\theequation}
+ \fi}
+\else
+ \def\@eqnnum{{\normalfont\normalcolor \tagform@\theequation}}
+\fi
\renewcommand{\numberwithin}[3][\arabic]{%
\@ifundefined{c@#2}{\@nocounterr{#2}}{%
\@ifundefined{c@#3}{\@nocnterr{#3}}{%
@@ -7,4 +20,109 @@
\@xp\xdef\csname the#2\endcsname{%
\@xp\@nx\csname the#3\endcsname \@nx\@SepMark\@nx#1{#2}}}}%
}
+
+\def\intertext@{%
+ \def\intertext##1{%
+ \ifvmode\else\\\@empty\fi
+ \noalign{%
+ \penalty\postdisplaypenalty\vskip\belowdisplayskip
+ \if@RTL\vboxR\else\vboxL\fi{\normalbaselines
+ \ifdim\linewidth=\columnwidth
+ \else \parshape\@ne \@totalleftmargin \linewidth
+ \fi
+ \noindent##1\par}%
+ \penalty\predisplaypenalty\vskip\abovedisplayskip%
+ }%
+}}
+
+
+\def\multline@#1{%
+ \Let@
+ \@display@init{\global\advance\row@\@ne \global\dspbrk@lvl\m@ne}%
+ \chardef\dspbrk@context\z@
+ \restore@math@cr
+ \let\tag\tag@in@align
+ \global\tag@false \global\let\raise@tag\@empty
+ \mmeasure@{#1}%
+ \let\tag\gobble@tag \let\label\@gobble
+% \tabskip \if@fleqn \@mathmargin \else \z@skip \fi
+ \tabskip \z@skip
+ \totwidth@\displaywidth
+ \if@fleqn
+ \advance\totwidth@-\@mathmargin
+ \fi
+ \halign\bgroup
+ \hbox to\totwidth@{%
+ \if@fleqn
+ \hskip \@centering \relax
+ \else
+ \hfil
+ \fi
+ \strut@
+ $\m@th\displaystyle{}##\endmultline@math
+ \hfil
+ }%
+ \crcr
+ \if@fleqn
+ \hskip-\@mathmargin
+ \def\multline@indent{\hskip\@mathmargin}% put it back
+ \else
+ \hfilneg
+ \def\multline@indent{\hskip\multlinegap}%
+ \fi
+ \iftagsleft@
+ \iftag@
+ \begingroup
+ \ifshifttag@
+ \rlap{\vbox{%
+ \normalbaselines
+ \hbox{%
+ \strut@
+ \make@display@tag
+ }%
+ \vbox to\lineht@{}%
+ \raise@tag
+ }}%
+ \multline@indent
+ \else
+ \setbox\z@\hbox{\make@display@tag}%
+ \dimen@\@mathmargin \advance\dimen@-\wd\z@
+ \ifdim\dimen@<\multlinetaggap
+ \dimen@\multlinetaggap
+ \fi
+ \box\z@ \hskip\dimen@\relax
+ \fi
+ \endgroup
+ \else
+ \multline@indent
+ \fi
+ \else
+ \multline@indent
+ \fi
+ #1%
+}
+
+\def\math@cr@@@align{%
+ \ifst@rred\nonumber\fi
+ \if@eqnsw \global\tag@true \fi
+ \global\advance\row@\@ne
+ \add@amps\maxfields@
+ \omit
+ \kern-\alignsep@
+% \iftag@
+% \setboxz@h{\@lign\strut@{\make@display@tag}}%
+% \place@tag
+% \fi
+ \iftag@
+ \setboxz@h{\@lign\strut@{\make@display@tag}}%
+ \place@tag
+ \else
+ \place@tag
+ \fi
+ \ifst@rred\else\global\@eqnswtrue\fi
+ \global\lineht@\z@
+ \cr
+}
+
+
\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amstext.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amstext.sty
new file mode 100644
index 00000000000..bee317c0f49
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amstext.sty
@@ -0,0 +1,9 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-amstext}[2013/09/22 v0.01a changes to `amstext.sty']
+\def\textdef@#1#2#3{\if@RTL\hboxR\else\hboxL\fi{{%
+ \everymath{#1}%
+ \let\f@size#2\selectfont
+ #3}}}
+
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsthm.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsthm.sty
index 3e59f88fb33..4b988a8318c 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsthm.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-amsthm.sty
@@ -1,4 +1,4 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-amsthm}[2013/12/01 v0.01a changes to `amsthm.sty']
+\ProvidesPackage{simurgh-amsthm}[2013/09/18 v0.01a changes to `amsthm.sty']
\def\@thmcountersep{\@SepMark}
\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-array.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-array.sty
index 6af9dba8348..d8e9f1152f0 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-array.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-array.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-array}[2013/12/01 v0.01a changes to `array.sty']
+\ProvidesPackage{simurgh-array}[2013/09/18 v0.01a changes to `array.sty']
\def\@testpach{\@chclass
\ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
\ifnum \@lastchclass=7 5 \else
@@ -52,7 +52,7 @@
\lineskip \z@
\baselineskip \z@
\m@th
- \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if@RTLtab\simurgh@textdir TRT\fi\@preamble}
+ \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
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-article.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-article.sty
index 2c1a586a56d..ee39fe43d9e 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-article.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-article.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-article}[2013/12/01 v0.01a changes to `article.cls']
+\ProvidesPackage{simurgh-article}[2013/09/18 v0.01a changes to `article.cls']
\renewcommand*{\left@footnoterule}{%
\hbox dir TLT to \columnwidth
{\vbox{%
@@ -41,14 +41,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\@arabic\c@enumiv}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel1.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel1.sty
index ceab932363f..c941523877f 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel1.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel1.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-artikel1}[2013/12/01 v0.01a changes to `artikel1.cls']
+\ProvidesPackage{simurgh-artikel1}[2013/09/18 v0.01a changes to `artikel1.cls']
\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
@@ -10,14 +10,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\@arabic\c@enumiv}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel2.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel2.sty
index e9b2932a001..7dca7c33534 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel2.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel2.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-artikel2}[2013/12/01 v0.01a changes to `artikel2.cls']
+\ProvidesPackage{simurgh-artikel2}[2013/09/18 v0.01a changes to `artikel2.cls']
\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
@@ -24,14 +24,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\@arabic\c@enumiv}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel3.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel3.sty
index 343110d49ed..06caaba3011 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel3.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-artikel3.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-artikel3}[2013/12/01 v0.01a changes to `artikel3.cls']
+\ProvidesPackage{simurgh-artikel3}[2013/09/18 v0.01a changes to `artikel3.cls']
\renewcommand*\left@footnoterule{%
\hbox dir TLT to \columnwidth
{\vbox{%
@@ -26,14 +26,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\@arabic\c@enumiv}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-arydshln.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-arydshln.sty
index de349a599c6..59217679043 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-arydshln.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-arydshln.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-arydshln}[2013/12/01 v0.01a changes to `arydshln.sty']
+\ProvidesPackage{simurgh-arydshln}[2013/09/18 v0.01a changes to `arydshln.sty']
\def\endarray{\adl@endarray \egroup \adl@arrayrestore \egroup}
\def\endtabular{\endarray $\egroup\@RTLtabfalse}
\expandafter\let\csname endtabular*\endcsname\endtabular
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-backref.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-backref.sty
index 47b7132bcf4..0c6aea1d305 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-backref.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-backref.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-backref}[2013/12/01 v0.01a changes to `backref.sty']
+\ProvidesPackage{simurgh-backref}[2013/09/18 v0.01a changes to `backref.sty']
\def\backrefpagesname{\if@RTL صفحات\else pages\fi}
\def\BR@Latincitex[#1]#2{%
\BRorg@Latincitex[{#1}]{#2}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-bidi.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-bidi.sty
index 925dc440e43..d7a0ded8680 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-bidi.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-bidi.sty
@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-bidi}[2013/12/01 v0.01a bidirectional typesetting]
-\directlua { tex.enableprimitives('simurgh@',{'pagedir','bodydir','pardir','textdir','mathdir','boxdir'}) }
+\ProvidesPackage{simurgh-bidi}[2013/09/18 v0.01a bidirectional typesetting]
+\directlua { tex.enableprimitives('',{'pagedir','bodydir','pardir','textdir','mathdir','boxdir'}) }
\newif\if@RTLmain
\newif\if@RTL
\newif\if@Latin
@@ -19,25 +19,28 @@
\def\simurgh@ptextRLE{\protect\afterassignment\simurgh@moretextRLE \let\simurgh@n@xt= }
\def\simurgh@bracetext{\ifcat\simurgh@n@xt{\else\ifcat\simurgh@n@xt}\fi
\simurgh@error{missing left brace has been substituted}{}\fi \bgroup}
-\def\simurgh@moretextLRE{\simurgh@bracetext \@RTLfalse\simurgh@textdir TLT}
-\def\simurgh@moretextRLE{\simurgh@bracetext \@RTLtrue\simurgh@textdir TRT}
+\def\simurgh@moretextLRE{\simurgh@bracetext \@RTLfalse\textdir TLT}
+\def\simurgh@moretextRLE{\simurgh@bracetext \@RTLtrue\textdir TRT}
\simurgh@newrobustcmd*{\textLatin}[1]{\textLRE{\@Latintrue\latinmainfont #1}}
\simurgh@newrobustcmd*{\textParsi}[1]{\textRLE{\@Latinfalse\parsimainfont #1}}
-
+\simurgh@newrobustcmd*{\LROtextdir}{\textdir TLT}
+\simurgh@newrobustcmd*{\RLOtextdir}{\textdir TRT}
\protected\def\hboxR{\hbox\bgroup
\everyhbox{%
\aftergroup\egroup
\everyhbox{}%
\@RTLtrue%
+ \textdir TRT%
}\hbox dir TRT}
\protected\def\hboxL{\hbox\bgroup
\everyhbox{%
\aftergroup\egroup
\everyhbox{}%
\@RTLfalse%
+ \textdir TLT%
}\hbox dir TLT}
\protected\def\vboxR{\vbox\bgroup
\everyvbox{%
@@ -66,12 +69,12 @@
- \def\LTRpar{\par\@RTLfalse\@RTL@footnotefalse\simurgh@pardir TLT \simurgh@textdir TLT \hsize\linewidth\parshape\z@}
+ \def\LTRpar{\par\@RTLfalse\@RTL@footnotefalse\pardir TLT \textdir TLT \hsize\linewidth\parshape\z@}
\def\endLTRpar{\par}
-\def\RTLpar{\par\@RTLtrue\@RTL@footnotetrue\simurgh@pardir TRT \simurgh@textdir TRT \hsize\linewidth\parshape\z@}
+\def\RTLpar{\par\@RTLtrue\@RTL@footnotetrue\pardir TRT \textdir TRT \hsize\linewidth\parshape\z@}
\let\endRTLpar\endLTRpar
-\def\setRTLpar{\@RTLtrue\@RTL@footnotetrue\simurgh@pardir TRT \simurgh@textdir TRT}
-\def\setLTRpar{\@RTLfalse\@RTL@footnotefalse\simurgh@pardir TLT \simurgh@textdir TLT}
+\def\setRTLpar{\@RTLtrue\@RTL@footnotetrue\pardir TRT \textdir TRT}
+\def\setLTRpar{\@RTLfalse\@RTL@footnotefalse\pardir TLT \textdir TLT}
\let\unsetRTLpar\setLTRpar
\let\unsetLTRpar\setRTLpar
@@ -81,8 +84,8 @@
\def\parsipar{\RTLpar\ParsiAlphs\@RTL@footnotetrue\reset@parsifont}
\let\endparsipar\endRTLpar
-\def\setRTLmath{\simurgh@mathdir TRT}
-\def\setLTRmath{\simurgh@mathdir TLT}
+\def\setRTLmath{\mathdir TRT}
+\def\setLTRmath{\mathdir TLT}
\let\unsetRTLmath\setLTRmath
\let\unsetLTRmath\setRTLmath
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-boek.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-boek.sty
index 7b8f986d66c..bdba43beb47 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-boek.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-boek.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-boek}[2013/12/01 v0.01a changes to `boek.cls']
+\ProvidesPackage{simurgh-boek}[2013/09/18 v0.01a changes to `boek.cls']
\renewcommand*\left@footnoterule{%
\hbox dir TLT to \columnwidth
{\vbox{%
@@ -22,14 +22,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\@arabic\c@enumiv}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-boek3.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-boek3.sty
index be82845635d..10689d342b8 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-boek3.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-boek3.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-boek3}[2013/12/01 v0.01a changes to `boek3.cls']
+\ProvidesPackage{simurgh-boek3}[2013/09/18 v0.01a changes to `boek3.cls']
\renewcommand*\left@footnoterule{%
\hbox dir TLT to \columnwidth
{\vbox{%
@@ -22,14 +22,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\@arabic\c@enumiv}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-book.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-book.sty
index 68cd73d6367..87297d3d555 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-book.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-book.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-book}[2013/12/01 v0.01a changes to `book.cls']
+\ProvidesPackage{simurgh-book}[2013/09/18 v0.01a changes to `book.cls']
\renewcommand*{\left@footnoterule}{%
\hbox dir TLT to \columnwidth
{\vbox{%
@@ -52,14 +52,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\@arabic\c@enumiv}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-bookest.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-bookest.sty
index c4b272f0062..edf43d61327 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-bookest.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-bookest.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-bookest}[2013/12/01 v0.01a changes to `bookest.cls']
+\ProvidesPackage{simurgh-bookest}[2013/09/18 v0.01a changes to `bookest.cls']
\def\@makechapterhead#1{%
\vspace*{20\p@}
{\parindent \z@ \simurgh@raggedright \normalfont
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-caption3.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-caption3.sty
index cbbf8671977..37292fd4e32 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-caption3.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-caption3.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-caption3}[2013/12/01 v0.01a changes to `caption3.sty']
+\ProvidesPackage{simurgh-caption3}[2013/09/18 v0.01a changes to `caption3.sty']
\renewcommand*\caption@@par{%
\parindent\caption@parindent\hangindent\if@RTL\else -\fi\caption@hangindent}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-chkeng.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-chkeng.sty
index f73a4612c4b..e272e67ab29 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-chkeng.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-chkeng.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-chkeng}[2013/12/01 v0.01a check typesetting engine]
+\ProvidesPackage{simurgh-chkeng}[2013/09/18 v0.01a check typesetting engine]
\RequirePackage{ifluatex}
\ifluatex
\else
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-clss.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-clss.sty
index 45ec8f93f3d..5b200576598 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-clss.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-clss.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-clss}[2013/12/01 v0.01a changes to classes]
+\ProvidesPackage{simurgh-clss}[2013/09/18 v0.01a changes to classes]
\@ifclassloaded{amsart}{\RequirePackage{simurgh-amsart}}{}
\@ifclassloaded{amsbook}{\RequirePackage{simurgh-amsbook}}{}
@@ -15,6 +15,32 @@
\@ifclassloaded{extbook}{\RequirePackage{simurgh-extbook}}{}
\@ifclassloaded{extletter}{\RequirePackage{simurgh-extletter}}{}
\@ifclassloaded{extreport}{\RequirePackage{simurgh-extreport}}{}
+\@ifclassloaded{letter}{\RequirePackage{simurgh-letter}}{}
+\@ifclassloaded{memoir}{\RequirePackage{simurgh-memoir}}{}
+\@ifclassloaded{rapport1}{\RequirePackage{simurgh-rapport1}}{}
+\@ifclassloaded{rapport3}{\RequirePackage{simurgh-rapport3}}{}
+\@ifclassloaded{refrep}{\RequirePackage{simurgh-refrep}}{}
+\@ifclassloaded{report}{\RequirePackage{simurgh-report}}{}
+\@ifclassloaded{scrartcl}{\RequirePackage{simurgh-scrartcl}}{}
+\@ifclassloaded{scrbook}{\RequirePackage{simurgh-scrbook}}{}
+\@ifclassloaded{scrlettr}{\RequirePackage{simurgh-scrlettr}}{}
+\@ifclassloaded{scrreprt}{\RequirePackage{simurgh-scrreprt}}{}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-counters.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-counters.sty
index bcd1ba22507..f744752461e 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-counters.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-counters.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-counters}[2013/12/01 v0.01a counters]
+\ProvidesPackage{simurgh-counters}[2013/09/18 v0.01a counters]
\RequirePackage{simurgh-harfi}
\RequirePackage{simurgh-adadi}
\RequirePackage{simurgh-tartibi}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-cptns.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-cptns.sty
index 07b915705e0..a6e0384aa1a 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-cptns.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-cptns.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-cptns}[2013/12/01 v0.01a captions]
+\ProvidesPackage{simurgh-cptns}[2013/09/18 v0.01a captions]
\def\figurename{\if@RTL شکل\else Figure\fi}
\def\tablename{\if@RTL جدول\else Table\fi}
\def\contentsname{\if@RTL فهرست مطالب\else Contents\fi}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-doc.cls b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-doc.cls
index 361c3ead897..934204bf4a8 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-doc.cls
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-doc.cls
@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{simurgh-doc}
- [2013/12/01 v0.01a simurgh documentation class]
+ [2013/09/18 v0.01a simurgh documentation class]
\DeclareOption*{%
\PassOptionsToClass {\CurrentOption}{ltxdoc}}
\ProcessOptions
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-empheq.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-empheq.sty
index d2f055bfe70..00a8fbbc96e 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-empheq.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-empheq.sty
@@ -1,40 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-empheq}[2013/12/01 v0.01a changes to `empheq.sty']
+\ProvidesPackage{simurgh-empheq}[2013/09/22 v0.01b changes to `empheq.sty']
\MHInternalSyntaxOn
-\def\EQ_tag_plus_endmark:{%
- \iftagsleft@
- \gdef\maketag@@@##1{%
- \hfuzz\displaywidth
- \if@RTL\makebox[\widthof{##1}][r]{%
- \hbox to \displaywidth{\m@th\normalfont##1\hss
- \raisebox{-\dp\EQ_mathdisplay_box
- -\depthof{\EQ_outerbox:{}}}
- {\PotEndMark{\hss}}}}
- \else\makebox[\widthof{##1}][l]{%
- \hbox to \displaywidth{\m@th\normalfont##1\hss
- \raisebox{-\dp\EQ_mathdisplay_box
- -\depthof{\EQ_outerbox:{}}}
- {\PotEndMark{\hss}}}}\fi}%
- \else:
- \gdef\maketag@@@##1{%
- \hbox{\m@th\normalfont##1\llap{\hss\PotEndMark{%
- \settoheight{\@tempdima}{\@nameuse{\InTheoType Symbol}}%
- \MH_addtolength:dn \@tempdima
- {\g_EQ_bottomtag_depth_dim+\mintagvsep}
- \setlength{\@tempdimb}
- {\g_EQ_bottomrow_depth_dim+\depthof{\EQ_outerbox:{}}
- +\depthof{\EQ_innerbox:{}}}
- \if_dim:w \@tempdima>\@tempdimb
- \MH_setlength:dn \@tempdima{-\dp\EQ_mathdisplay_box
- -\@tempdima+\g_EQ_bottomrow_depth_dim}
- \addtolength{\@tempdima}{\depthof{\EQ_innerbox:{}}}%
- \def\EQ_next:{\raisebox{\@tempdima}}%
- \else:
- \def\EQ_next:{
- \raisebox{-\dp\EQ_mathdisplay_box
- -\depthof{\EQ_outerbox:{}}}}%
- \fi:\EQ_next:}}}}%
- \fi:}
\def\EQ_post_process:{%
\EQ_initialize:
\EQ_begin_equation:
@@ -85,14 +51,14 @@
\makebox[\l_EQ_displaywidth_dim][c]
{\usebox{\EQ_mathdisplay_box}}%
\or:
- \if@RTL\makebox[\l_EQ_displaywidth_dim][r]{%
+ \if@RTL\makebox[\l_EQ_displaywidth_dim][r]{%op
\if_num:w \l_EQ_equationtype_int=5 \else:
\if_num:w \l_EQ_equationtype_int=6 \else:
\kern-\@mathmargin
\fi:
\fi:
- \usebox{\EQ_mathdisplay_box}}%
- \else\makebox[\l_EQ_displaywidth_dim][l]{%
+ \usebox{\EQ_mathdisplay_box}}\else%
+ \makebox[\l_EQ_displaywidth_dim][l]{%op
\if_num:w \l_EQ_equationtype_int=5 \else:
\if_num:w \l_EQ_equationtype_int=6 \else:
\kern-\@mathmargin
@@ -106,8 +72,8 @@
\kern-\@mathmargin
\fi:
\fi:
- \usebox{\EQ_mathdisplay_box}}
- \else\makebox[\l_EQ_displaywidth_dim][l]{%
+ \usebox{\EQ_mathdisplay_box}}\else%
+ \makebox[\l_EQ_displaywidth_dim][l]{%
\if_num:w \l_EQ_equationtype_int=5 \else:
\if_num:w \l_EQ_equationtype_int=6 \else:
\kern-\@mathmargin
@@ -122,10 +88,10 @@
\if_dim:w \g_EQ_widesttag_dim>\z@
\MH_set_boolean_T:n {show_manual_tags}
\if_case:w \l_EQ_alignmentmode_int
- \or: \if@RTL\EQ_place_tag:N l\else\EQ_place_tag:N r\fi %#1
- \or: \if@RTL\EQ_place_tag:N r\else\EQ_place_tag:N l\fi %#2
- \or: \if@RTL\EQ_place_tag:N l\else\EQ_place_tag:N r\fi %#3
- \or: \if@RTL\EQ_place_tag:N r\else\EQ_place_tag:N l\fi %#4
+ \or: \EQ_place_tag:N r %#1
+ \or: \EQ_place_tag:N l %#2
+ \or: \EQ_place_tag:N r %#3
+ \or: \EQ_place_tag:N l %#4
\fi:
\fi:
\end{AmSequation*}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extarticle.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extarticle.sty
index 77eea25bb24..3f4e26e725f 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extarticle.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extarticle.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-extarticle}[2013/12/01 v0.01a changes to `extarticle.cls']
+\ProvidesPackage{simurgh-extarticle}[2013/09/18 v0.01a changes to `extarticle.cls']
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >\m@ne
@@ -34,14 +34,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\@arabic\c@enumiv}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extbook.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extbook.sty
index f7b8ea8039c..87c5329857c 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extbook.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extbook.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-extbook}[2013/12/01 v0.01a changes to `extbook.cls']
+\ProvidesPackage{simurgh-extbook}[2013/09/18 v0.01a changes to `extbook.cls']
\renewcommand\theequation
{\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
\renewcommand \thefigure
@@ -43,14 +43,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\@arabic\c@enumiv}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extletter.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extletter.sty
index e60a357c0a7..d55df189ad0 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extletter.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extletter.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-extletter}[2013/12/01 v0.01a changes to `extletter.cls']
+\ProvidesPackage{simurgh-extletter}[2013/09/18 v0.01a changes to `extletter.cls']
\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
\thispagestyle{firstpage}%
{\simurgh@raggedleft\@date\par}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extreport.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extreport.sty
index 75261cc616c..b7f92e316d4 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extreport.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extreport.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-extreport}[2013/12/01 v0.01a changes to `extreport.cls']
+\ProvidesPackage{simurgh-extreport}[2013/09/18 v0.01a changes to `extreport.cls']
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \simurgh@raggedright \normalfont
@@ -38,14 +38,14 @@
\if@RTL%
\if@LTRbibitems%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi%
\else%
\if@RTLbibitems%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\fi%
\fi%
\list{\@biblabel{\@arabic\c@enumiv}}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty
new file mode 100644
index 00000000000..bb7cb480d69
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty
@@ -0,0 +1,27 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-fleqn}[2013/09/22 v0.01a fleqn]
+\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}
+
+
+\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\if@RTL\hboxR\else\hboxL\fi{\@eqnnum}%
+ \egroup
+ \endtrivlist}
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fonts.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fonts.sty
index d52b1cf8532..d44055abc92 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fonts.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fonts.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-fonts}[2013/12/01 v0.01a fonts]
+\ProvidesPackage{simurgh-fonts}[2013/09/18 v0.01a fonts]
\newfontscript{Parsi}{arab}
\newfontlanguage{Parsi}{FAR}
\aliasfontfeatureoption{Numbers}{Arabic}{Parsi}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-footnotes.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-footnotes.sty
index a4629c768f1..96526d98e45 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-footnotes.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-footnotes.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-footnotes}[2013/12/01 v0.01a footnotes]
+\ProvidesPackage{simurgh-footnotes}[2013/09/18 v0.01a footnotes]
\RequirePackage{zref-abspage}
\RequirePackage{auxhook}
\RequirePackage{ltxcmds}
@@ -169,13 +169,13 @@
\long\def\@footnotetext#1{\insert\footins{%
\if@RTL@footnote%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\reset@parsifont%
\else%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\reset@latinfont%
\fi%
\footnotesize
@@ -193,8 +193,8 @@
\long\def\@RTLfootnotetext#1{\insert\footins{%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\reset@parsifont\footnotesize
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
@@ -210,8 +210,8 @@
\long\def\@LTRfootnotetext#1{\insert\footins{%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\reset@latinfont\footnotesize
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
@@ -241,8 +241,8 @@
\if@autofootnoterule\ifnum\c@mpfootnote=\@ne\global\let\simurgh@mpfootnoterule\right@footnoterule\fi\fi%
\global\setbox\@mpfootins\vbox{%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\unvbox\@mpfootins
\reset@parsifont\footnotesize
\hsize\columnwidth
@@ -257,8 +257,8 @@
\if@autofootnoterule\ifnum\c@mpfootnote=\@ne\global\let\simurgh@mpfootnoterule\left@footnoterule\fi\fi%
\global\setbox\@mpfootins\vbox{%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\unvbox\@mpfootins
\reset@latinfont\footnotesize
\hsize\columnwidth
@@ -274,13 +274,13 @@
\global\setbox\@mpfootins\vbox{%
\if@RTL@footnote%
\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\reset@parsifont%
\else%
\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\reset@latinfont%
\fi%
\unvbox\@mpfootins
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-ftnxtra.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-ftnxtra.sty
index b6b4a487b59..3fb4106b01d 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-ftnxtra.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-ftnxtra.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-ftnxtra}[2013/12/01 v0.01a extend the applicability of footnotes]
+\ProvidesPackage{simurgh-ftnxtra}[2013/09/18 v0.01a extend the applicability of footnotes]
\newtoks\simurgh@p@ftn
\let\FN@sf@@footnote\footnote
\let\FN@sf@@LTRfootnote\LTRfootnote
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-glossaries.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-glossaries.sty
index 3ea4fb4ce0a..c89144998fb 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-glossaries.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-glossaries.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-glossaries}[2013/12/01 v0.01a changes to `glossaries.sty']
+\ProvidesPackage{simurgh-glossaries}[2013/09/18 v0.01a changes to `glossaries.sty']
\newcommand*{\gls@harfipage}{\@harfi\c@page}
\newcommand*{\gls@tartibipage}{\@tartibi\c@page}
\newcommand*{\gls@adadipage}{\@adadi\c@page}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-harfi.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-harfi.sty
index 06336bff070..13b041eb57c 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-harfi.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-harfi.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-harfi}[2013/12/01 v0.01a harfi counter]
+\ProvidesPackage{simurgh-harfi}[2013/09/18 v0.01a harfi counter]
\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
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-jalalical.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-jalalical.sty
index e7bfe33649d..ee0bbb5c42a 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-jalalical.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-jalalical.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-jalalical}[2013/12/01 v0.01a jalali calendar]
+\ProvidesPackage{simurgh-jalalical}[2013/09/18 v0.01a jalali calendar]
% jalali calendar needs to be done entirely in lua
\newif\ifsimurgh@leap \newif\ifsimurgh@kabiseh
\newcount\simurgh@i \newcount\simurgh@year \newcount\simurgh@month \newcount\simurgh@day
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-leqno.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-leqno.sty
new file mode 100644
index 00000000000..d29f8823f1d
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-leqno.sty
@@ -0,0 +1,13 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-leqno}[2013/09/22 v0.01a leqno]
+\renewcommand\@eqnnum{\hb@xt@.01\p@{}%
+ \if@RTL
+ \llapR{\normalfont\normalcolor
+ (\theequation)\hskip -\displaywidth}
+ \else
+ \rlapL{\normalfont\normalcolor
+ \hskip -\displaywidth(\theequation)}
+ \fi}
+
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-letter.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-letter.sty
new file mode 100644
index 00000000000..3ecbb5b0880
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-letter.sty
@@ -0,0 +1,30 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-letter}[2013/09/22 v0.01a changes to `letter.cls']
+\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
+ \thispagestyle{firstpage}%
+ {\simurgh@raggedleft\@date\par}%
+ \else % home address
+ \thispagestyle{empty}%
+ {\simurgh@raggedleft\if@RTL\begin{tabular}{r@{}}\else\begin{tabular}{l@{}}\fi\ignorespaces
+ \fromaddress \\*[2\parskip]%
+ \@date \end{tabular}\par}%
+ \fi
+ \vspace{2\parskip}%
+ {\simurgh@raggedright \toname \\ \toaddress \par}%
+ \vspace{2\parskip}%
+ #1\par\nobreak}
+\renewcommand\left@footnoterule{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-\p@
+ \hrule \@width .4\columnwidth
+ \kern .6\p@}\hfil}}
+\renewcommand\right@footnoterule{%
+ \hbox dir TRT to \columnwidth
+ {\vbox{%
+ \kern-\p@
+ \hrule \@width .4\columnwidth
+ \kern .6\p@}\hfil}}
+
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-lettrine.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-lettrine.sty
index 93872402143..379ff6ff610 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-lettrine.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-lettrine.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-lettrine}[2013/12/01 v0.01a changes to `lettrine.sty']
+\ProvidesPackage{simurgh-lettrine}[2013/09/18 v0.01a changes to `lettrine.sty']
\def\@lettrine[#1]#2#3{%
\setcounter{L@lines}{\theDefaultLines}%
\renewcommand*{\L@hang}{\DefaultLhang}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-loader.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-loader.sty
index eed1f2f050d..6395833e431 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-loader.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-loader.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-loader}[2013/12/01 v0.01a loading simurgh last]
+\ProvidesPackage{simurgh-loader}[2013/09/18 v0.01a loading simurgh last]
\newcommand\simurgh@isloaded[2][]{
\expandafter\ifx\csname if@simurgh@#2loaded@\endcsname\relax
\expandafter\newif\csname if@simurgh@#2loaded@\endcsname
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-ltx.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-ltx.sty
index 0679d1b5935..d4be533583a 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-ltx.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-ltx.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-ltx}[2013/12/01 v0.01a changes to `latex.ltx']
+\ProvidesPackage{simurgh-ltx}[2013/09/18 v0.01a changes to `latex.ltx']
\newif\if@RTLtab
\newif\if@RTLmarginpar
\newif\if@LTRmarginpar
@@ -8,6 +8,8 @@
\def\SepMark#1{\gdef\@SepMark{\if@RTL‏\fi#1\if@RTL‏\fi}}
\SepMark{.}
+\def\CaptionLabelSep#1{\gdef\@CaptionLabelSep{\if@RTL‏\fi#1\if@RTL‏\fi}}
+\CaptionLabelSep{:}
\def\setRTLbibitems{\@RTLbibitemstrue\@LTRbibitemsfalse}
\def\setLTRbibitems{\@LTRbibitemstrue\@RTLbibitemsfalse}
@@ -29,6 +31,8 @@
\def\@thmcountersep{\@SepMark}
+\def\@mklab#1{\hfil \if@RTL\hboxR\else\hboxL\fi{#1}}
+
\def\list#1#2{%
\ifnum \@listdepth >5\relax
\@toodeep
@@ -148,7 +152,7 @@
\if#1b\vbox
\else\if #1t\vtop
\else\ifmmode\vcenter
- \else\@pboxswtrue \if@RTL\simurgh@mathdir TRT\fi$\vcenter
+ \else\@pboxswtrue \if@RTL\mathdir TRT\fi$\vcenter
\fi\fi\fi
\@parboxto{\let\hss\vss\let\unhbox\unvbox
\csname bm@#3\endcsname}%
@@ -157,15 +161,15 @@
\newenvironment{LTRitems}
{\par\@RTLfalse%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pardir TLT%
+ \textdir TLT%
\parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth%
\ignorespaces}{\vskip\z@}
\newenvironment{RTLitems}
{\par\@RTLtrue%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pardir TRT%
+ \textdir TRT%
\parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth%
\ignorespaces}{\vskip\z@}
@@ -216,55 +220,17 @@
% here we redefine \rlap and \llap so that right means `at the end of line' and left means `at the beggining of the line'
% independent of the mode (RTL or LTR) we are in. this way, we make sure that specific macros that has to deal with
% `at the beginning of the line' or `at the end of the line' still works correctly and there is no need to modify them.
-\def\llap#1{%
- \if@RTL%
- \hb@xt@\z@{\hss#1}%
- \else%
- \ifvmode%
- \hb@xt@\z@{#1\hss}%
- \else%
- \hb@xt@\z@{\hss#1}%
- \fi%
-\fi%
-}
-
-\def\rlap#1{%
- \if@RTL%
- \hb@xt@\z@{#1\hss}%
- \else%
- \ifvmode%
- \hb@xt@\z@{\hss#1}%
- \else%
- \hb@xt@\z@{#1\hss}%
- \fi%
-\fi%
-}
+\def\rlapR#1{\hbox to \z@{\textdir TRT #1\hss}}
+\def\rlapL#1{\hbox dir TLT to \z@{\textdir TLT #1\hss}}
+\def\llapR#1{\hbox to \z@{\hss \textdir TRT #1}}
+\def\llapL#1{\hbox dir TLT to \z@{\hss \textdir TLT #1}}
+\def\llap#1{\if@RTL\llapR{#1}\else\llapL{#1}\fi}
+\def\rlap#1{\if@RTL\rlapR{#1}\else\rlapL{#1}\fi}
% logical \llap and \rlap macros
-\def\simurghllap#1{%
- \if@RTL%
- \hb@xt@\z@{#1\hss}%
- \else%
- \ifvmode%
- \hb@xt@\z@{#1\hss}%
- \else%
- \hb@xt@\z@{\hss#1}%
- \fi%
-\fi%
-}
-
-\def\simurghrlap#1{%
- \if@RTL%
- \hb@xt@\z@{\hss#1}%
- \else%
- \ifvmode%
- \hb@xt@\z@{\hss#1}%
- \else%
- \hb@xt@\z@{#1\hss}%
- \fi%
-\fi%
-}
+\def\simurghllap#1{\if@RTL\rlapR{#1}\else\llapL{#1}\fi}
+\def\simurghrlap#1{\if@RTL\llapR{#1}\else\rlapL{#1}\fi}
\def\@hangfrom#1{\setbox\@tempboxa\hbox{{#1}}%
@@ -638,7 +604,7 @@
\set@typeset@protect
\lineskip\z@skip\baselineskip\z@skip
\ifhmode \@preamerr\z@ \@@par\fi
- \if@RTLtab\simurgh@textdir TRT\fi%
+ \if@RTLtab\textdir TRT\fi%
\@preamble}
\def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
\let\@classiv\@arrayclassiv
@@ -682,8 +648,18 @@
\fi
-
+% math macros
\everydisplay\expandafter{\the\everydisplay\predisplaydirection\z@}
+\@ifpackageloaded{amsmath}{}{%
+\def\endequation{\eqno \if@RTL\hboxR\else\hboxL\fi{\@eqnnum}$$\@ignoretrue}}
+\def\@@eqncr{\let\reserved@a\relax
+ \ifcase\@eqcnt \def\reserved@a{& & &}\or \def\reserved@a{& &}%
+ \or \def\reserved@a{&}\else
+ \let\reserved@a\@empty
+ \@latex@error{Too many columns in eqnarray environment}\@ehc\fi
+ \reserved@a \if@eqnsw\if@RTL\hboxR\else\hboxL\fi{\@eqnnum}\stepcounter{equation}\fi
+ \global\@eqnswtrue\global\@eqcnt\z@\cr}
+
\simurgh@newrobustcmd*{\parsirq}{«}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-mathdigitspec.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-mathdigitspec.sty
index 44aef51a874..f63cd6230f6 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-mathdigitspec.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-mathdigitspec.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-mathdigitspec}[2013/12/01 v0.01a unicode parsi math digits]
+\ProvidesPackage{simurgh-mathdigitspec}[2013/09/18 v0.01a unicode parsi math digits]
\def\new@mathgroup{\alloc@8\mathgroup\chardef\@cclvi}
\let\newfam\new@mathgroup
\def\select@group#1#2#3#4{%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-memoir.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-memoir.sty
new file mode 100644
index 00000000000..514bcace581
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-memoir.sty
@@ -0,0 +1,48 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-memoir}[2013/09/22 v0.01a changes to `]
+\renewcommand*{\memRTLraggedright}{\simurgh@raggedright}
+\renewcommand*{\memRTLraggedleft}{\simurgh@raggedleft}
+\renewcommand*{\thesection}{\thechapter\@SepMark\@arabic\c@section}
+\renewcommand*{\thesubsection}{%
+ \thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*{\thesubsubsection}{%
+ \thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand*{\theparagraph}{%
+ \thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*{\thesubparagraph}{%
+ \theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewcommand{\setthesection}{\thechapter\@SepMark\Alph{section}}
+\renewcommand{\theequation}{%
+ \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
+\renewcommand{\thefigure}{\thechapter\@SepMark\@arabic\c@figure}
+\renewcommand{\thetable}{\thechapter\@SepMark\@arabic\c@table}
+
+\renewenvironment{thebibliography}[1]{%
+ \bibsection
+ \if@RTL%
+ \if@LTRbibitems%
+ \@RTLfalse%
+ \pardir TLT%
+ \textdir TLT%
+ \fi%
+ \else%
+ \if@RTLbibitems%
+ \@RTLtrue%
+ \pardir TRT%
+ \textdir TRT%
+ \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}
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-minitoc.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-minitoc.sty
index 413ae2368df..8f40ffa6b2d 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-minitoc.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-minitoc.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-minitoc}[2013/12/01 v0.01a changes to `minitoc.sty']
+\ProvidesPackage{simurgh-minitoc}[2013/09/18 v0.01a changes to `minitoc.sty']
\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}%
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-natbib.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-natbib.sty
index 6a838202b17..92784a226d8 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-natbib.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-natbib.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-natbib}[2013/12/01 v0.01a changes to `natbib.sty']
+\ProvidesPackage{simurgh-natbib}[2013/09/18 v0.01a changes to `natbib.sty']
\renewenvironment{thebibliography}[1]{%
\bibsection
\parindent\z@
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-pkgs.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-pkgs.sty
index cf786524574..a23a60f33d5 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-pkgs.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-pkgs.sty
@@ -1,8 +1,9 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-pkgs}[2013/12/01 v0.01a changes to packages]
+\ProvidesPackage{simurgh-pkgs}[2013/09/18 v0.01a changes to packages]
\@ifpackageloaded{algorithm}{\RequirePackage{simurgh-algorithm}}{}
\@ifpackageloaded{algorithmic}{\RequirePackage{simurgh-algorithmic}}{}
\@ifpackageloaded{amsmath}{\RequirePackage{simurgh-amsmath}}{}
+\@ifpackageloaded{amstext}{\RequirePackage{simurgh-amstext}}{}
\@ifpackageloaded{amsthm}{\RequirePackage{simurgh-amsthm}}{}
\@ifpackageloaded{array}{\RequirePackage{simurgh-array}}{}
\@ifpackageloaded{arydshln}{\RequirePackage{simurgh-arydshln}}{}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-poem.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-poem.sty
index 1984311e12d..46545c119dc 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-poem.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-poem.sty
@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{simurgh-poem}%
-[2013/12/01 v0.01a typesetting Persian traditional and modern poems]
+[2013/09/18 v0.01a typesetting Persian traditional and modern poems]
\def\poemcolsepskip{.1\versewidth plus .1\versewidth minus .05\versewidth}
\def\poemmarginskip{1em plus 1fil minus 1em}
\def\poemextrabaselineskip{0\baselineskip}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-rapport1.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-rapport1.sty
new file mode 100644
index 00000000000..a22311d8ecc
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-rapport1.sty
@@ -0,0 +1,68 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-rappport1}[2013/09/22 v0.01a changes to `rapport1.cls']
+
+\renewcommand*\left@footnoterule{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil}
+}
+\renewcommand*\right@footnoterule{%
+ \hbox dir TRT 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%
+ \pardir TLT%
+ \textdir TLT%
+ \fi%
+ \else%
+ \if@RTLbibitems%
+ \@RTLtrue%
+ \pardir TRT%
+ \textdir TRT%
+ \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*\thesection{\thechapter\@SepMark\@arabic\c@section}
+\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewcommand*\theequation{%
+ \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
+\renewcommand*\thefigure{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
+\renewcommand*\thetable{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
+
+\renewcommand*\thepart{\@tartibi\c@part}
+\renewcommand*\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}}
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-rapport3.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-rapport3.sty
new file mode 100644
index 00000000000..8c73b6448f7
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-rapport3.sty
@@ -0,0 +1,66 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-rapport3}[2013/09/22 v0.01a changes to `rapport3.cls']
+\renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
+\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewcommand*\thefigure{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
+\renewcommand*\thetable{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
+\renewcommand*\theequation{%
+ \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL%
+ \if@LTRbibitems%
+ \@RTLfalse%
+ \pardir TLT%
+ \textdir TLT%
+ \fi%
+ \else%
+ \if@RTLbibitems%
+ \@RTLtrue%
+ \pardir TRT%
+ \textdir TRT%
+ \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*\left@footnoterule{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil}
+}
+\renewcommand*\right@footnoterule{%
+ \hbox dir TRT 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}}
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-refrep.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-refrep.sty
new file mode 100644
index 00000000000..f2154da2244
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-refrep.sty
@@ -0,0 +1,66 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-refrep}[2013/09/22 v0.01a changes to `refrep.cls']
+\renewcommand\left@footnoterule{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil}}
+\renewcommand\right@footnoterule{%
+ \hbox dir TRT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil}}
+\renewcommand\theequation
+{\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
+\renewcommand\thefigure
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
+\renewcommand\thetable%
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
+\renewcommand\thesection {\thechapter\@SepMark\@arabic\c@section}
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection {\thesubsection \@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname
+ \@mkboth{\bibname}{\bibname}}%
+ \if@RTL%
+ \if@LTRbibitems%
+ \@RTLfalse%
+ \pardir TLT%
+ \textdir TLT%
+ \fi%
+ \else%
+ \if@RTLbibitems%
+ \@RTLtrue%
+ \pardir TRT%
+ \textdir TRT%
+ \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
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-report.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-report.sty
new file mode 100644
index 00000000000..66d7364c15a
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-report.sty
@@ -0,0 +1,90 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-report}[2013/09/22 v0.01a changes to `report.cls']
+\renewcommand\left@footnoterule{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil}}
+\renewcommand\right@footnoterule{%
+ \hbox dir TRT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil}}
+\renewcommand\theequation
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
+\renewcommand \thefigure
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
+\renewcommand \thetable
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
+\renewcommand \thechapter {\@arabic\c@chapter}
+\renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
+\def\@makechapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \simurgh@raggedright \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \huge\bfseries \@chapapp\space \thechapter
+ \par\nobreak
+ \vskip 20\p@
+ \fi
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+\def\@makeschapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \simurgh@raggedright
+ \normalfont
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL%
+ \if@LTRbibitems%
+ \@RTLfalse%
+ \pardir TLT%
+ \textdir TLT%
+ \fi%
+ \else%
+ \if@RTLbibitems%
+ \@RTLtrue%
+ \pardir TRT%
+ \textdir TRT%
+ \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
+
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrartcl.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrartcl.sty
new file mode 100644
index 00000000000..889401085d4
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrartcl.sty
@@ -0,0 +1,296 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-scrartcl}[2013/09/22 v0.01a changes to `scrartcl.cls']
+\newcommand{\scr@saved@LTRfootnotetext}{}
+\newcommand{\scr@saved@RTLfootnotetext}{}
+\let\scr@saved@footnotetext\@footnotetext
+\let\scr@saved@LTRfootnotetext\@LTRfootnotetext
+\let\scr@saved@RTLfootnotetext\@RTLfootnotetext
+\renewcommand{\@footnotetext}[1]{%
+ \scr@saved@footnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
+\renewcommand{\@LTRfootnotetext}[1]{%
+ \scr@saved@LTRfootnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
+\renewcommand{\@RTLfootnotetext}[1]{%
+ \scr@saved@RTLfootnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
+\renewcommand\deffootnote[4][]{%
+ \long\def\@makefntext##1{%
+ \setlength{\@tempdimc}{#3}%
+ \def\@tempa{#1}\ifx\@tempa\@empty
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \addtolength{\@tempdima}{-#2}%
+ \if@RTL\parshape \@ne #2 \@tempdima\else\parshape \@ne \z@ \@tempdima\fi}%
+ \else
+ \addtolength{\@tempdimc}{#2}%
+ \addtolength{\@tempdimc}{-#1}%
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \addtolength{\@tempdima}{-#1}%
+ \@tempdimb = \hsize
+ \addtolength{\@tempdimb}{-#2}%
+ \if@RTL\parshape \tw@ #1 \@tempdima #2 \@tempdimb\else\parshape \tw@ \z@ \@tempdima \z@ \@tempdimb\fi
+ }%
+ \fi
+ \par
+ \parindent\@tempdimc\noindent
+ \ftn@font\hbox to \z@{\hss\@@makefnmark}##1%
+ }%
+ \def\@@makefnmark{\hbox{\ftnm@font{#4}}}%
+}
+\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
+\renewcommand*\left@footnoterule{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{\kern -3\p@
+ \normalsize\ftn@rule@test@values
+ \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ {\usekomafont{footnoterule}{%
+ \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
+ \kern 2.6\p@}\hfil}}
+\renewcommand*\right@footnoterule{%
+ \hbox dir TRT to \columnwidth
+ {\vbox{\kern -3\p@
+ \normalsize\ftn@rule@test@values
+ \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ {\usekomafont{footnoterule}{%
+ \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
+ \kern 2.6\p@}\hfil}}
+
+\def\raggedsection{\simurgh@raggedright}
+\def\raggedpart{\simurgh@raggedright}
+\renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}
+\renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*{\thesubsubsection}{%
+ \thesubsection\@SepMark\@arabic\c@subsubsection
+}
+\renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*{\thesubparagraph}{%
+ \theparagraph\@SepMark\@arabic\c@subparagraph
+}
+
+\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%
+ \pardir TLT%
+ \textdir TLT%
+ \fi%
+ \else%
+ \if@RTLbibitems%
+ \@RTLtrue%
+ \pardir TRT%
+ \textdir TRT%
+ \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*\left@footnoterule{%
+ \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*\right@footnoterule{%
+ \hbox dir TRT 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*{\raggeddictum}{\simurgh@raggedleft}
+\renewcommand*{\raggeddictumtext}{\simurgh@raggedright}
+\renewcommand*{\raggeddictumauthor}{\simurgh@raggedleft}
+\renewcommand\marginline[1]{%
+ \marginpar[\simurgh@raggedleft{#1}]{\simurgh@raggedright #1}%
+}
+
+\renewcommand{\@@makecaption}[3]{%
+ \cap@margin
+ \ifonelinecaptions
+ \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
+ \let\scr@tmp@footnotetext=\@footnotetext
+ \let\@footnotetext=\@gobble
+ \let\scr@tmp@LTRfootnotetext=\@LTRfootnotetext
+ \let\@LTRfootnotetext=\@gobble
+ \let\scr@tmp@RTLfootnotetext=\@RTLfootnotetext
+ \let\@RTLfootnotetext=\@gobble
+ \sbox\@tempboxa{%
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}%
+ #3\unskip\strut}}%
+ }%
+ \let\@footnotetext=\scr@tmp@footnotetext
+ \let\scr@tmp@footnotetext=\undefined
+ \let\@LTRfootnotetext=\scr@tmp@LTRfootnotetext
+ \let\scr@tmp@LTRfootnotetext=\undefined
+ \let\@RTLfootnotetext=\scr@tmp@RTLfootnotetext
+ \let\scr@tmp@RTLfootnotetext=\undefined
+ \setcounter{footnote}{\@tempcntb}%
+ \setcounter{mpfootnote}{\@tempcnta}%
+ \else
+ \sbox\@tempboxa{\hspace*{2\cap@width}}%
+ \fi
+ \begingroup%
+ \setlength{\@tempdima}{\cap@width}%
+ \ifdim \wd\@tempboxa >\@tempdima
+ \hb@xt@\hsize{%
+ \setbox\@tempboxa\vbox{\hsize=\cap@width
+ \ifdofullc@p
+ {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}}%
+ {#3\unskip\strut\par}}}%
+ \else%
+ \ifdim\cap@indent<\z@
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
+ \else%
+ \if@capbreak
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
+ \else
+ {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
+ {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
+ {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
+ \fi
+ \fi
+ \fi
+ }%
+ \setlength{\@tempdima}{\ht\@tempboxa}%
+ \addtolength{\@tempdima}{\dp\@tempboxa}%
+ \addtolength{\@tempdima}{-\ht\strutbox}%
+ \ht\@tempboxa\ht\strutbox
+ \dp\@tempboxa\@tempdima
+ \strut\cap@left
+ \box\@tempboxa
+ \cap@right\strut
+ }%
+ \else
+ \global \@minipagefalse
+ \sbox\@tempboxa{%
+ {\capfont{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}%
+ #3}}%
+ }%
+ {\capfont{\hb@xt@\hsize{\strut\cap@left\box\@tempboxa\cap@right\strut}}}%
+ \fi
+ \endgroup
+}
+\renewcommand{\@makecaption}[2]{%
+ \if@captionabove
+ \vskip\belowcaptionskip
+ \else
+ \vskip\abovecaptionskip
+ \fi
+ \@@makecaption\@firstofone{#1}{#2}%
+ \if@captionabove
+ \vskip\abovecaptionskip
+ \else
+ \vskip\belowcaptionskip
+ \fi
+}
+
+
+\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
+}
+
+
+
+
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrbook.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrbook.sty
new file mode 100644
index 00000000000..c21de8f75a5
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrbook.sty
@@ -0,0 +1,328 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-scrbook}[2013/09/22 v0.01a changes to `scrbook.cls']
+\newcommand{\scr@saved@LTRfootnotetext}{}
+\newcommand{\scr@saved@RTLfootnotetext}{}
+\let\scr@saved@footnotetext\@footnotetext
+\let\scr@saved@LTRfootnotetext\@LTRfootnotetext
+\let\scr@saved@RTLfootnotetext\@RTLfootnotetext
+\renewcommand{\@footnotetext}[1]{%
+ \scr@saved@footnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
+\renewcommand{\@LTRfootnotetext}[1]{%
+ \scr@saved@LTRfootnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
+\renewcommand{\@RTLfootnotetext}[1]{%
+ \scr@saved@RTLfootnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
+\renewcommand\deffootnote[4][]{%
+ \long\def\@makefntext##1{%
+ \setlength{\@tempdimc}{#3}%
+ \def\@tempa{#1}\ifx\@tempa\@empty
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \addtolength{\@tempdima}{-#2}%
+ \if@RTL\parshape \@ne #2 \@tempdima\else\parshape \@ne \z@ \@tempdima\fi}%
+ \else
+ \addtolength{\@tempdimc}{#2}%
+ \addtolength{\@tempdimc}{-#1}%
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \addtolength{\@tempdima}{-#1}%
+ \@tempdimb = \hsize
+ \addtolength{\@tempdimb}{-#2}%
+ \if@RTL\parshape \tw@ #1 \@tempdima #2 \@tempdimb\else\parshape \tw@ \z@ \@tempdima \z@ \@tempdimb\fi
+ }%
+ \fi
+ \par
+ \parindent\@tempdimc\noindent
+ \ftn@font\hbox to \z@{\hss\@@makefnmark}##1%
+ }%
+ \def\@@makefnmark{\hbox{\ftnm@font{#4}}}%
+}
+\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
+\renewcommand*\left@footnoterule{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{\kern -3\p@
+ \normalsize\ftn@rule@test@values
+ \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ {\usekomafont{footnoterule}{%
+ \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
+ \kern 2.6\p@}\hfil}}
+\renewcommand*\right@footnoterule{%
+ \hbox dir TRT to \columnwidth
+ {\vbox{\kern -3\p@
+ \normalsize\ftn@rule@test@values
+ \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ {\usekomafont{footnoterule}{%
+ \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
+ \kern 2.6\p@}\hfil}}
+
+
+\def\raggedsection{\simurgh@raggedright}
+\renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}
+\renewcommand*\thesection{%
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter\@SepMark\fi
+ \else
+ \thechapter\@SepMark%
+ \fi
+ \@arabic\c@section
+}
+\renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*{\thesubsubsection}{%
+ \thesubsection\@SepMark\@arabic\c@subsubsection
+}
+\renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*{\thesubparagraph}{%
+ \theparagraph\@SepMark\@arabic\c@subparagraph
+}
+\renewcommand*\thefigure{%
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter\@SepMark\fi
+ \else
+ \thechapter\@SepMark%
+ \fi
+ \@arabic\c@figure
+}
+\renewcommand*\thetable{%
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter\@SepMark\fi
+ \else
+ \thechapter\@SepMark%
+ \fi
+ \@arabic\c@table
+}
+\renewcommand*\theequation{%
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter\@SepMark\fi
+ \else
+ \thechapter\@SepMark%
+ \fi
+ \@arabic\c@equation
+}
+
+\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%
+ \pardir TLT%
+ \textdir TLT%
+ \fi%
+ \else%
+ \if@RTLbibitems%
+ \@RTLtrue%
+ \pardir TRT%
+ \textdir TRT%
+ \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*\left@footnoterule{%
+ \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*\right@footnoterule{%
+ \hbox dir TRT 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*{\raggeddictum}{\simurgh@raggedleft}
+\renewcommand*{\raggeddictumtext}{\simurgh@raggedright}
+\renewcommand*{\raggeddictumauthor}{\simurgh@raggedleft}
+\renewcommand\marginline[1]{%
+ \marginpar[\simurgh@raggedleft{#1}]{\simurgh@raggedright #1}%
+}
+
+\renewcommand{\@@makecaption}[3]{%
+ \cap@margin
+ \ifonelinecaptions
+ \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
+ \let\scr@tmp@footnotetext=\@footnotetext
+ \let\@footnotetext=\@gobble
+ \let\scr@tmp@LTRfootnotetext=\@LTRfootnotetext
+ \let\@LTRfootnotetext=\@gobble
+ \let\scr@tmp@RTLfootnotetext=\@RTLfootnotetext
+ \let\@RTLfootnotetext=\@gobble
+ \sbox\@tempboxa{%
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}%
+ #3\unskip\strut}}%
+ }%
+ \let\@footnotetext=\scr@tmp@footnotetext
+ \let\scr@tmp@footnotetext=\undefined
+ \let\@LTRfootnotetext=\scr@tmp@LTRfootnotetext
+ \let\scr@tmp@LTRfootnotetext=\undefined
+ \let\@RTLfootnotetext=\scr@tmp@RTLfootnotetext
+ \let\scr@tmp@RTLfootnotetext=\undefined
+ \setcounter{footnote}{\@tempcntb}%
+ \setcounter{mpfootnote}{\@tempcnta}%
+ \else
+ \sbox\@tempboxa{\hspace*{2\cap@width}}%
+ \fi
+ \begingroup%
+ \setlength{\@tempdima}{\cap@width}%
+ \ifdim \wd\@tempboxa >\@tempdima
+ \hb@xt@\hsize{%
+ \setbox\@tempboxa\vbox{\hsize=\cap@width
+ \ifdofullc@p
+ {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}}%
+ {#3\unskip\strut\par}}}%
+ \else%
+ \ifdim\cap@indent<\z@
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
+ \else%
+ \if@capbreak
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
+ \else
+ {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
+ {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
+ {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
+ \fi
+ \fi
+ \fi
+ }%
+ \setlength{\@tempdima}{\ht\@tempboxa}%
+ \addtolength{\@tempdima}{\dp\@tempboxa}%
+ \addtolength{\@tempdima}{-\ht\strutbox}%
+ \ht\@tempboxa\ht\strutbox
+ \dp\@tempboxa\@tempdima
+ \strut\cap@left
+ \box\@tempboxa
+ \cap@right\strut
+ }%
+ \else
+ \global \@minipagefalse
+ \sbox\@tempboxa{%
+ {\capfont{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}%
+ #3}}%
+ }%
+ {\capfont{\hb@xt@\hsize{\strut\cap@left\box\@tempboxa\cap@right\strut}}}%
+ \fi
+ \endgroup
+}
+\renewcommand{\@makecaption}[2]{%
+ \if@captionabove
+ \vskip\belowcaptionskip
+ \else
+ \vskip\abovecaptionskip
+ \fi
+ \@@makecaption\@firstofone{#1}{#2}%
+ \if@captionabove
+ \vskip\abovecaptionskip
+ \else
+ \vskip\belowcaptionskip
+ \fi
+}
+
+\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
+}
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrlettr.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrlettr.sty
new file mode 100644
index 00000000000..e229d60962e
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrlettr.sty
@@ -0,0 +1,117 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-scrlettr}[2013/09/22 v0.01a changes to `scrlettr.cls']
+\renewcommand\deffootnote[4][]{%
+ \long\def\@makefntext##1{%
+ \edef\@tempa{#1}\ifx\@tempa\@empty
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \addtolength{\@tempdima}{-#2}
+ \if@RTL\parshape \@ne #2 \@tempdima\else\parshape \@ne \z@ \@tempdima\fi}%
+ \else
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \addtolength{\@tempdima}{-#1}
+ \@tempdimb = \hsize
+ \addtolength{\@tempdimb}{-#2}
+ \if@RTL\parshape \tw@ #1 \@tempdima #2 \@tempdimb\else\parshape \tw@ \z@ \@tempdima \z@ \@tempdimb\fi}%
+ \fi
+ \par
+ \parindent #3\noindent
+ \hbox to \z@{\hss\@@makefnmark}##1}
+ \def\@@makefnmark{\hbox{#4}}
+}
+\deffootnote[1em]{1.5em}{1em}
+ {\textsuperscript{\thefootnotemark}}
+\def\left@footnoterule{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{\kern -3\p@
+ \kern-1\p@
+ \hrule width 0.4\columnwidth
+ \kern .6\p@}\hfil}}
+\def\right@footnoterule{%
+ \hbox dir TRT to \columnwidth
+ {\vbox{\kern -3\p@
+ \kern-1\p@
+ \hrule width 0.4\columnwidth
+ \kern .6\p@}\hfil}}
+\def\@datefield{\@reffalse
+ \ifx\varyourref\@empty \else \@reftrue \fi
+ \ifx\varyourmail\@empty \else \@reftrue \fi
+ \ifx\varmyref\@empty \else \@reftrue \fi
+ \ifx\varcustomer\@empty \else \@reftrue \fi
+ \ifx\varinvoice\@empty \else \@reftrue \fi
+ \ifx\varrefitemi\@empty \else \@reftrue \fi
+ \ifx\varrefitemii\@empty \else \@reftrue \fi
+ \ifx\varrefitemiii\@empty \else \@reftrue \fi
+ \vskip -\parskip
+ \vskip \refvskip
+ \if@ref
+ \ifx\varyourref\@empty \else
+ \settowidth{\sc@temp}{\varyourref}
+ \setbox0\hbox{\scriptsize \sf \yourrefname}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varyourref}\hfill
+ \fi
+ \ifx\varyourmail\@empty \else
+ \settowidth{\sc@temp}{\varyourmail}
+ \setbox0\hbox{\scriptsize \sf \yourmailname}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varyourmail}\hfill
+ \fi
+ \ifx\varmyref\@empty \else
+ \settowidth{\sc@temp}{\varmyref}
+ \setbox0\hbox{\scriptsize \sf \myrefname}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varmyref}\hfill
+ \fi
+ \ifx\varcustomer\@empty \else
+ \settowidth{\sc@temp}{\varcustomer}
+ \setbox0\hbox{\scriptsize \sf \customername}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varcustomer}\hfill
+ \fi
+ \ifx\varinvoice\@empty \else
+ \settowidth{\sc@temp}{\varinvoice}
+ \setbox0\hbox{\scriptsize \sf \invoicename}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varinvoice}\hfill
+ \fi
+ \ifx\varrefitemi\@empty \else
+ \settowidth{\sc@temp}{\varrefitemi}
+ \setbox0\hbox{\scriptsize \sf \varrefitemnamei}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemi}\hfill
+ \fi
+ \ifx\varrefitemii\@empty \else
+ \settowidth{\sc@temp}{\varrefitemii}
+ \setbox0\hbox{\scriptsize \sf \varrefitemnameii}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemii}\hfill
+ \fi
+ \ifx\varrefitemiii\@empty \else
+ \settowidth{\sc@temp}{\varrefitemiii}
+ \setbox0\hbox{\scriptsize \sf \varrefitemnameiii}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemiii}\hfill
+ \fi
+ \ifx\@date\@empty \else
+ \settowidth{\sc@temp}{\@date}
+ \setbox0\hbox{\scriptsize \sf \datename}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \@date}
+ \fi
+ \par
+ \vspace{2.5\baselineskip}
+ \else
+ {\ifx\@date\@empty \else \simurgh@raggedleft\fromplace\ \@date\par \fi}
+ \vspace{1.5\baselineskip}
+ \fi}
+\long\def\closing#1{\par\nobreak\vspace{0.5\baselineskip}
+ \stopbreaks \noindent \sc@temp\textwidth \advance\sc@temp by
+ -\sigindent \hspace{\sigindent}%
+ \parbox{\sc@temp}{\simurgh@raggedright\ignorespaces #1\mbox{}\\[\presig@skip]
+ \fromsig\strut}\par
+ \vspace{1.5\baselineskip}}
+
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrreprt.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrreprt.sty
new file mode 100644
index 00000000000..1310021c7ab
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-scrreprt.sty
@@ -0,0 +1,315 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-scrreprt}[2013/09/22 v0.01a changes to `scrreprt.cls']
+\newcommand{\scr@saved@LTRfootnotetext}{}
+\newcommand{\scr@saved@RTLfootnotetext}{}
+\let\scr@saved@footnotetext\@footnotetext
+\let\scr@saved@LTRfootnotetext\@LTRfootnotetext
+\let\scr@saved@RTLfootnotetext\@RTLfootnotetext
+\renewcommand{\@footnotetext}[1]{%
+ \scr@saved@footnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
+\renewcommand{\@LTRfootnotetext}[1]{%
+ \scr@saved@LTRfootnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
+\renewcommand{\@RTLfootnotetext}[1]{%
+ \scr@saved@RTLfootnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
+\renewcommand\deffootnote[4][]{%
+ \long\def\@makefntext##1{%
+ \setlength{\@tempdimc}{#3}%
+ \def\@tempa{#1}\ifx\@tempa\@empty
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \addtolength{\@tempdima}{-#2}%
+ \if@RTL\parshape \@ne #2 \@tempdima\else\parshape \@ne \z@ \@tempdima\fi}%
+ \else
+ \addtolength{\@tempdimc}{#2}%
+ \addtolength{\@tempdimc}{-#1}%
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \addtolength{\@tempdima}{-#1}%
+ \@tempdimb = \hsize
+ \addtolength{\@tempdimb}{-#2}%
+ \if@RTL\parshape \tw@ #1 \@tempdima #2 \@tempdimb\else\parshape \tw@ \z@ \@tempdima \z@ \@tempdimb\fi
+ }%
+ \fi
+ \par
+ \parindent\@tempdimc\noindent
+ \ftn@font\hbox to \z@{\hss\@@makefnmark}##1%
+ }%
+ \def\@@makefnmark{\hbox{\ftnm@font{#4}}}%
+}
+\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
+\renewcommand*\left@footnoterule{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{\kern -3\p@
+ \normalsize\ftn@rule@test@values
+ \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ {\usekomafont{footnoterule}{%
+ \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
+ \kern 2.6\p@}\hfil}}
+\renewcommand*\right@footnoterule{%
+ \hbox dir TRT to \columnwidth
+ {\vbox{\kern -3\p@
+ \normalsize\ftn@rule@test@values
+ \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ {\usekomafont{footnoterule}{%
+ \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
+ \kern 2.6\p@}\hfil}}
+
+\def\raggedsection{\simurgh@raggedright}
+\renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}
+\renewcommand*\thesection{%
+ \thechapter\@SepMark%
+ \@arabic\c@section
+}
+\renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*{\thesubsubsection}{%
+ \thesubsection\@SepMark\@arabic\c@subsubsection
+}
+\renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*{\thesubparagraph}{%
+ \theparagraph\@SepMark\@arabic\c@subparagraph
+}
+\renewcommand*\thefigure{%
+ \thechapter\@SepMark%
+ \@arabic\c@figure
+}
+\renewcommand*\thetable{%
+ \thechapter\@SepMark%
+ \@arabic\c@table
+}
+\renewcommand*\theequation{%
+ \thechapter\@SepMark%
+ \@arabic\c@equation
+}
+
+
+\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%
+ \pardir TLT%
+ \textdir TLT%
+ \fi%
+ \else%
+ \if@RTLbibitems%
+ \@RTLtrue%
+ \pardir TRT%
+ \textdir TRT%
+ \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*\left@footnoterule{%
+ \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*\right@footnoterule{%
+ \hbox dir TRT 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*{\raggeddictum}{\simurgh@raggedleft}
+\renewcommand*{\raggeddictumtext}{\simurgh@raggedright}
+\renewcommand*{\raggeddictumauthor}{\simurgh@raggedleft}
+\renewcommand\marginline[1]{%
+ \marginpar[\simurgh@raggedleft{#1}]{\simurgh@raggedright #1}%
+}
+
+\renewcommand{\@@makecaption}[3]{%
+ \cap@margin
+ \ifonelinecaptions
+ \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
+ \let\scr@tmp@footnotetext=\@footnotetext
+ \let\@footnotetext=\@gobble
+ \let\scr@tmp@LTRfootnotetext=\@LTRfootnotetext
+ \let\@LTRfootnotetext=\@gobble
+ \let\scr@tmp@RTLfootnotetext=\@RTLfootnotetext
+ \let\@RTLfootnotetext=\@gobble
+ \sbox\@tempboxa{%
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}%
+ #3\unskip\strut}}%
+ }%
+ \let\@footnotetext=\scr@tmp@footnotetext
+ \let\scr@tmp@footnotetext=\undefined
+ \let\@LTRfootnotetext=\scr@tmp@LTRfootnotetext
+ \let\scr@tmp@LTRfootnotetext=\undefined
+ \let\@RTLfootnotetext=\scr@tmp@RTLfootnotetext
+ \let\scr@tmp@RTLfootnotetext=\undefined
+ \setcounter{footnote}{\@tempcntb}%
+ \setcounter{mpfootnote}{\@tempcnta}%
+ \else
+ \sbox\@tempboxa{\hspace*{2\cap@width}}%
+ \fi
+ \begingroup%
+ \setlength{\@tempdima}{\cap@width}%
+ \ifdim \wd\@tempboxa >\@tempdima
+ \hb@xt@\hsize{%
+ \setbox\@tempboxa\vbox{\hsize=\cap@width
+ \ifdofullc@p
+ {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}}%
+ {#3\unskip\strut\par}}}%
+ \else%
+ \ifdim\cap@indent<\z@
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
+ \else%
+ \if@capbreak
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
+ \else
+ {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
+ {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
+ {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
+ \fi
+ \fi
+ \fi
+ }%
+ \setlength{\@tempdima}{\ht\@tempboxa}%
+ \addtolength{\@tempdima}{\dp\@tempboxa}%
+ \addtolength{\@tempdima}{-\ht\strutbox}%
+ \ht\@tempboxa\ht\strutbox
+ \dp\@tempboxa\@tempdima
+ \strut\cap@left
+ \box\@tempboxa
+ \cap@right\strut
+ }%
+ \else
+ \global \@minipagefalse
+ \sbox\@tempboxa{%
+ {\capfont{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}%
+ #3}}%
+ }%
+ {\capfont{\hb@xt@\hsize{\strut\cap@left\box\@tempboxa\cap@right\strut}}}%
+ \fi
+ \endgroup
+}
+\renewcommand{\@makecaption}[2]{%
+ \if@captionabove
+ \vskip\belowcaptionskip
+ \else
+ \vskip\abovecaptionskip
+ \fi
+ \@@makecaption\@firstofone{#1}{#2}%
+ \if@captionabove
+ \vskip\abovecaptionskip
+ \else
+ \vskip\belowcaptionskip
+ \fi
+}
+
+
+
+\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
+}
+
+
+
+
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-shellescape.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-shellescape.sty
index f183d6830e3..fe24a6eb124 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-shellescape.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-shellescape.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-shellescape}[2013/12/01 v0.01a shellescape]
+\ProvidesPackage{simurgh-shellescape}[2013/09/18 v0.01a shellescape]
\RequirePackage{pdftexcmds}
\newif\ifwritexviii
\ifnum\pdf@shellescape=1\relax
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-tags.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-tags.sty
new file mode 100644
index 00000000000..cda9e3333b9
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-tags.sty
@@ -0,0 +1,7 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-tags}[2013/09/22 v0.01a tags]
+\@ifpackageloaded{amsmath}{}{%
+\@iftagloaded{leqno}{\RequirePackage{simurgh-leqno}}{}
+\@iftagloaded{fleqn}{\RequirePackage{simurgh-fleqn}}{}
+}
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-tartibi.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-tartibi.sty
index d2bc039f2e8..729dc7cd2df 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-tartibi.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-tartibi.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-tartibi}[2013/12/01 v0.01a tartibi counter]
+\ProvidesPackage{simurgh-tartibi}[2013/09/18 v0.01a tartibi counter]
\newcommand{\tartibi}[1]{%
\expandafter\@tartibi\csname c@#1\endcsname%
}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-tools.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-tools.sty
index 3ce782eb783..ebe4ff4b0cd 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-tools.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-tools.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-tools}[2013/12/01 v0.01a programming tools]
+\ProvidesPackage{simurgh-tools}[2013/09/18 v0.01a programming tools]
\providecommand{\@simurgh@saveprimitive}[2]{\begingroup\escapechar`\\\relax
\edef\@tempa{\string#1}\edef\@tempb{\meaning#1}%
\ifx\@tempa\@tempb \global\let#2#1%
@@ -144,6 +144,8 @@
\let\@ifdefinable\@rc@ifdefinable
\simurgh@new@command#1}
+\simurgh@newrobustcmd*{\@tagextension}{clo}
+\simurgh@newrobustcmd*{\@iftagloaded}{\@ifl@aded\@tagextension}
\simurgh@newrobustcmd*{\simurgh@providerobustcmd}{\@star@or@long\simurgh@provide@command}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-unibidi-core.lua b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-unibidi-core.lua
index d842a2e2b3c..f4a10c5448c 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-unibidi-core.lua
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-unibidi-core.lua
@@ -15,12 +15,12 @@ if not modules then modules = { } end modules ['simurgh-unibidi-core'] = {
--
-- Then we have, with input: LATIN PARSI
--
--- \simurgh@textdir TLT LATIN PARSI => LATIN ISRAP
--- \simurgh@textdir TRT LATIN PARSI => LATIN ISRAP
--- \simurgh@textdir TRT LRO LATIN PARSI => LATIN PARSI
--- \simurgh@textdir TLT LRO LATIN PARSI => LATIN PARSI
--- \simurgh@textdir TLT RLO LATIN PARSI => NITAL PARSI
--- \simurgh@textdir TRT RLO LATIN PARSI => NITAL PARSI
+-- \textdir TLT LATIN PARSI => LATIN ISRAP
+-- \textdir TRT LATIN PARSI => LATIN ISRAP
+-- \textdir TRT LRO LATIN PARSI => LATIN PARSI
+-- \textdir TLT LRO LATIN PARSI => LATIN PARSI
+-- \textdir TLT RLO LATIN PARSI => NITAL PARSI
+-- \textdir TRT RLO LATIN PARSI => NITAL PARSI
-- elseif d == "es" then -- European Number Separator
-- elseif d == "et" then -- European Number Terminator
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-unibidi.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-unibidi.sty
index fdab9652765..575c9947369 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-unibidi.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-unibidi.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh-unibidi}[2013/12/01 v0.01a unicode bidi]
+\ProvidesPackage{simurgh-unibidi}[2013/09/18 v0.01a unicode bidi]
\RequireLuaModule {simurgh-unibidi}
\simurgh@newrobustcmd*{\simurgh@unibidi@cs}[1]{\directlua {packagedata.typo_dir.#1}}
\simurgh@newrobustcmd*{\simurgh@unibidi@setdir}[1]{\simurgh@unibidi@cs{set (#1)}}
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty
index 03d878f298d..2658f476829 100644
--- a/Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{simurgh}[2013/12/01 v0.01a parsi typesetting]
+\ProvidesPackage{simurgh}[2013/09/22 v0.01b parsi typesetting]
\RequirePackage{xkeyval}
\RequirePackage{simurgh-tools}
\RequirePackage{simurgh-chkeng}
@@ -13,6 +13,7 @@
\RequirePackage{simurgh-cptns}
\RequirePackage{simurgh-counters}
\RequirePackage{simurgh-ltx}
+\RequirePackage{simurgh-tags}
\RequirePackage{simurgh-clss}
\RequirePackage{simurgh-pkgs}
\RequirePackage{simurgh-loader}
@@ -21,23 +22,23 @@
\define@choicekey{simurgh.sty}{maindirection}[\simurgh@tempa\simurgh@tempb]{righttoleft,lefttoright}{%
\ifcase\simurgh@tempb\relax
\@RTLtrue%
- \simurgh@pagedir TRT%
- \simurgh@bodydir TRT%
- \simurgh@pardir TRT%
- \simurgh@textdir TRT%
+ \pagedir TRT%
+ \bodydir TRT%
+ \pardir TRT%
+ \textdir TRT%
\or
\@RTLfalse%
- \simurgh@pagedir TLT%
- \simurgh@bodydir TLT%
- \simurgh@pardir TLT%
- \simurgh@textdir TLT%
+ \pagedir TLT%
+ \bodydir TLT%
+ \pardir TLT%
+ \textdir TLT%
\fi}
\define@choicekey{simurgh.sty}{mathdirection}[\simurgh@tempa\simurgh@tempb]{righttoleft,lefttoright}{%
\ifcase\simurgh@tempb\relax
- \simurgh@mathdir TRT%
+ \mathdir TRT%
\or
- \simurgh@mathdir TLT%
+ \mathdir TLT%
\fi}