diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian')
57 files changed, 6403 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def new file mode 100644 index 00000000000..6d63c178a7c --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def @@ -0,0 +1,33 @@ +%% +%% This is file `algorithm-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `algorithm-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{algorithm-xepersian.def}[2010/07/25 v0.2 adaptations for algorithm package] +\def\ALG@name{\if@RTL الگوریتم\else Algorithm\fi} +\def\ALGS@name{الگوریتمها} +\def\listalgorithmname{\if@RTL فهرست \ALGS@name\else List of \ALG@name s\fi} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `algorithm-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def new file mode 100644 index 00000000000..6d78f0547a4 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def @@ -0,0 +1,32 @@ +%% +%% This is file `algorithmic-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `algorithmic-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{algorithmic-xepersian.def}[2010/07/25 v0.2 adaptations for algorithmic package] +\def\algorithmicrequire{\if@RTL\textbf{ورودی:}\else\textbf{Require:}\fi} +\def\algorithmicensure{\if@RTL\textbf{خروجی:}\else\textbf{Ensure:}\fi} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `algorithmic-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def new file mode 100644 index 00000000000..543edf326e5 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def @@ -0,0 +1,78 @@ +%% +%% This is file `amsart-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `amsart-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{amsart-xepersian.def}[2010/07/25 v0.2 adaptations for amsart class] +\renewcommand \thepart {\@tartibi\c@part} +\def\appendix{\par\c@section\z@ \c@subsection\z@ + \let\sectionname\appendixname + \def\thesection{\@harfi\c@section}} + +\long\def\@footnotetext#1{% + \insert\footins{% + \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \normalfont\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}} + +\long\def\@RTLfootnotetext#1{% + \insert\footins{% + \@RTLtrue% + \normalfont\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\persianfont #1\unskip\strut\par}}} + +\long\def\@LTRfootnotetext#1{% + \insert\footins{% + \@RTLfalse% + \normalfont\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\latinfont #1\unskip\strut\par}}} + +\footdir@temp\footdir@ORG@xepersian@amsart@footnotetext\@footnotetext{\if@RTL@footnote R\else L\fi}% +\footdir@temp\footdir@ORG@xepersian@amsart@RTLfootnotetext\@RTLfootnotetext{R}% +\footdir@temp\footdir@ORG@xepersian@amsart@LTRfootnotetext\@LTRfootnotetext{L}% + +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `amsart-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def new file mode 100644 index 00000000000..d3b8197bd90 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def @@ -0,0 +1,80 @@ +%% +%% This is file `amsbook-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `amsbook-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{amsbook-xepersian.def}[2010/07/25 v0.3 adaptations for amsbook class] +\def\frontmatter{\cleardoublepage\pagenumbering{harfi}} +\renewcommand \thepart {\@tartibi\c@part} +\def\appendix{\par + \c@chapter\z@ \c@section\z@ + \let\chaptername\appendixname + \def\thechapter{\@harfi\c@chapter}} + +\long\def\@footnotetext#1{% + \insert\footins{% + \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \normalfont\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}} + +\long\def\@RTLfootnotetext#1{% + \insert\footins{% + \@RTLtrue% + \normalfont\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\persianfont #1\unskip\strut\par}}} + +\long\def\@LTRfootnotetext#1{% + \insert\footins{% + \@RTLfalse% + \normalfont\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\latinfont #1\unskip\strut\par}}} + +\footdir@temp\footdir@ORG@xepersian@amsbook@footnotetext\@footnotetext{\if@RTL@footnote R\else L\fi}% +\footdir@temp\footdir@ORG@xepersian@amsbook@RTLfootnotetext\@RTLfootnotetext{R}% +\footdir@temp\footdir@ORG@xepersian@amsbook@LTRfootnotetext\@LTRfootnotetext{L}% + +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `amsbook-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def new file mode 100644 index 00000000000..7f2ea43d11d --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def @@ -0,0 +1,35 @@ +%% +%% This is file `article-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `article-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{article-xepersian.def}[2010/07/25 v0.2 adaptations for standard article class] +\renewcommand \thepart {\@tartibi\c@part} +\renewcommand\appendix{\par + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \gdef\thesection{\@harfi\c@section}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `article-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/artikel1-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/artikel1-xepersian.def new file mode 100644 index 00000000000..43a2cdf3bf4 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/artikel1-xepersian.def @@ -0,0 +1,35 @@ +%% +%% This is file `artikel1-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `artikel1-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{artikel1-xepersian.def}[2010/07/25 v0.1 adaptations for artikel1 class] +\renewcommand*\thepart{\@tartibi\c@part} +\renewcommand*\appendix{\par + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \gdef\thesection{\@harfi\c@section}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `artikel1-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/artikel2-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/artikel2-xepersian.def new file mode 100644 index 00000000000..52ac7a17760 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/artikel2-xepersian.def @@ -0,0 +1,35 @@ +%% +%% This is file `artikel2-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `artikel2-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{artikel2-xepersian.def}[2010/07/25 v0.1 adaptations for artikel2 class] +\renewcommand*\thepart{\@tartibi\c@part} +\renewcommand*\appendix{\par + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \gdef\thesection{\@harfi\c@section}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `artikel2-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/artikel3-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/artikel3-xepersian.def new file mode 100644 index 00000000000..08843264fa0 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/artikel3-xepersian.def @@ -0,0 +1,35 @@ +%% +%% This is file `artikel3-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `artikel3-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{artikel3-xepersian.def}[2010/07/25 v0.1 adaptations for artikel3 class] +\renewcommand*\thepart{\@tartibi\c@part} +\renewcommand*\appendix{\par + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \gdef\thesection{\@harfi\c@section}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `artikel3-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def new file mode 100644 index 00000000000..5b4bd5e1e80 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def @@ -0,0 +1,49 @@ +%% +%% This is file `backref-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `backref-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{backref-xepersian.def}[2010/07/25 v0.1 adaptations for backref package] +\def\backrefpagesname{\if@RTL صفحات\else pages\fi} +\def\BR@Latincitex[#1]#2{% + \BRorg@Latincitex[{#1}]{#2}% + \ifBR@verbose + \PackageInfo{backref}{back Latin cite \string`#2\string'}% + \fi + \Hy@backout{#2}% +} +\AtBeginDocument{% + \@ifundefined{NAT@parse}{% + \global\let\BRorg@Latincitex\@Latincitex + \global\let\@Latincitex\BR@Latincitex + }{% + \@ifpackageloaded{hyperref}{}{% + \def\hyper@natlinkstart#1{\Hy@backout{#1}}% + }% + \PackageInfo{backref}{** backref set up for natbib **}% + }% +}% +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `backref-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/bidicode-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/bidicode-xepersian.def new file mode 100644 index 00000000000..9f69576a07b --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/bidicode-xepersian.def @@ -0,0 +1,30 @@ +%% +%% This is file `bidicode-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `bidicode-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{bidicode-xepersian.def}[2010/07/25 v0.0 Persian captions for bidicode package] +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `bidicode-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def new file mode 100644 index 00000000000..ed09660423a --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def @@ -0,0 +1,31 @@ +%% +%% This is file `bidimoderncv-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `bidimoderncv-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{bidimoderncv-xepersian.def}[2010/07/25 v0.1 adaptations for bidimoderncv class] +\def\refname{\if@RTL تألیفات\else Publications\fi} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `bidimoderncv-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/bidituftesidenote-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/bidituftesidenote-xepersian.def new file mode 100644 index 00000000000..ba12f038c06 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/bidituftesidenote-xepersian.def @@ -0,0 +1,98 @@ +%% +%% This is file `bidituftesidenote-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `bidituftesidenote-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{bidituftesidenote-xepersian.def}[2011/06/18 v0.1 xepersian changes to bidituftesidenote package] +\long\def\@LTRbidituftesidenote@sidenote[#1][#2]#3{% + \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command + \gdef\@bidituftesidenote@citations{}% clear out any old citations + \ifthenelse{\NOT\isempty{#2}}{% + \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{#2}% + }{% + \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{0pt}% + }% + \ifthenelse{\isempty{#1}}{% + % no specific footnote number provided + \stepcounter\@mpfn% + \protected@xdef\@thefnmark{\thempfn}% + \@footnotemark\@LTRfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{\latinfont#3}% + }{% + % specific footnote number provided + \begingroup% + \csname c@\@mpfn\endcsname #1\relax% + \unrestored@protected@xdef\@thefnmark{\thempfn}% + \endgroup% + \@footnotemark\@LTRfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{\latinfont#3}% + }% + \@bidituftesidenote@print@citations% print any citations + \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite command + \unskip\ignorespaces% remove extra white space + \kern-\multiplefootnotemarker% remove \kern left behind by sidenote + \kern\multiplefootnotemarker\relax% add new \kern here to replace the one we yanked +} +\long\def\@RTLbidituftesidenote@sidenote[#1][#2]#3{% + \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command + \gdef\@bidituftesidenote@citations{}% clear out any old citations + \ifthenelse{\NOT\isempty{#2}}{% + \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{#2}% + }{% + \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{0pt}% + }% + \ifthenelse{\isempty{#1}}{% + % no specific footnote number provided + \stepcounter\@mpfn% + \protected@xdef\@thefnmark{\thempfn}% + \@footnotemark\@RTLfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{\persianfont#3}% + }{% + % specific footnote number provided + \begingroup% + \csname c@\@mpfn\endcsname #1\relax% + \unrestored@protected@xdef\@thefnmark{\thempfn}% + \endgroup% + \@footnotemark\@RTLfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{\persianfont#3}% + }% + \@bidituftesidenote@print@citations% print any citations + \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite command + \unskip\ignorespaces% remove extra white space + \kern-\multiplefootnotemarker% remove \kern left behind by sidenote + \kern\multiplefootnotemarker\relax% add new \kern here to replace the one we yanked +} +\renewcommand\LTRmarginnote[2][0pt]{% + \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command + \gdef\@bidituftesidenote@citations{}% clear out any old citations + \LTRbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote@marginnote@font\latinfont\@bidituftesidenote@marginnote@justification\@bidituftesidenote@margin@par\vspace*{-1\baselineskip}\noindent #2}% + \@bidituftesidenote@print@citations% print any citations + \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite command +} +\renewcommand\RTLmarginnote[2][0pt]{% + \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command + \gdef\@bidituftesidenote@citations{}% clear out any old citations + \RTLbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote@marginnote@font\persianfont\@bidituftesidenote@marginnote@justification\@bidituftesidenote@margin@par\vspace*{-1\baselineskip}\noindent #2}% + \@bidituftesidenote@print@citations% print any citations + \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite command +} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `bidituftesidenote-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def new file mode 100644 index 00000000000..eb290807ddb --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def @@ -0,0 +1,40 @@ +%% +%% This is file `boek-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `boek-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{boek-xepersian.def}[2010/07/25 v0.1 adaptations for boek class] +\renewcommand*\thepart{\@tartibi\c@part} +\renewcommand*\frontmatter{% + \cleardoublepage + \@mainmatterfalse + \pagenumbering{harfi}} +\renewcommand*\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `boek-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/boek3-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/boek3-xepersian.def new file mode 100644 index 00000000000..7b4686d334a --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/boek3-xepersian.def @@ -0,0 +1,40 @@ +%% +%% This is file `boek3-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `boek3-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{boek3-xepersian.def}[2010/07/25 v0.1 adaptations for boek3 class] +\renewcommand*\thepart{\@tartibi\c@part} +\renewcommand*\frontmatter{% + \cleardoublepage + \@mainmatterfalse + \pagenumbering{harfi}} +\renewcommand*\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `boek3-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def new file mode 100644 index 00000000000..beca0240c27 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def @@ -0,0 +1,41 @@ +%% +%% This is file `book-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `book-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{book-xepersian.def}[2010/07/25 v0.2 adaptations for standard book class] +\renewcommand\frontmatter{% + \cleardoublepage + \@mainmatterfalse + \pagenumbering{harfi}} +\renewcommand \thepart {\@tartibi\c@part} +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter} +}%end appendix +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `book-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def new file mode 100644 index 00000000000..df79fdd07d2 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def @@ -0,0 +1,37 @@ +%% +%% This is file `bookest-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `bookest-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{bookest-xepersian.def}[2010/07/25 v0.1 adaptations for bookest class] +\renewcommand \thepart {\@tartibi\c@part} +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter} +}%end appendix +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `bookest-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def new file mode 100644 index 00000000000..4de20c1606a --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def @@ -0,0 +1,69 @@ +%% +%% This is file `breqn-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `breqn-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{breqn-xepersian.def}[2010/07/25 v0.1 adaptations for breqn package] +\def\@dmath[#1]{\if@RTL\@RTLfalse\addfontfeatures{Mapping=farsidigits}\fi% + \everydisplay\expandafter{\the\everydisplay \display@setup}% + \if@noskipsec \leavevmode \fi + \if@inlabel \leavevmode \global\@inlabelfalse \fi + \if\eq@group\else\eq@prelim\fi + \setkeys{breqn}{#1}% + \the\eqstyle + \eq@setnumber + \begingroup + \eq@setup@a + \eq@startup +} +\def\@dgroup[#1]{\if@RTL\@RTLfalse\addfontfeatures{Mapping=farsidigits}\fi% + \let\eq@group\@True \global\let\eq@GRP@first@dmath\@True + \global\GRP@queue\@emptytoks \global\setbox\GRP@box\box\voidb@x + \global\let\GRP@label\@empty + \global\grp@wdL\z@\global\grp@wdR\z@\global\grp@wdT\z@ + \global\grp@linewidth\z@\global\grp@wdNum\z@ + \global\let\grp@eqs@numbered\@False + \global\let\grp@aligned\@True + \global\let\grp@shiftnumber\@False + \eq@prelim + \setkeys{breqn}{#1}% + \if\grp@hasNumber \grp@setnumber \fi +} +\def\@dseries[#1]{\if@RTL\@RTLfalse\addfontfeatures{Mapping=farsidigits}\fi% + \let\display@setup\dseries@display@setup + % Question: should this be the default for dseries??? + \global\eq@wdCond\z@ + \@dmath[layout={M},#1]% + \mathsurround\z@\@@math \penalty\@Mi + \let\endmath\ends@math + \def\premath{% + \ifdim\lastskip<.3em \unskip + \else\ifnum\lastpenalty<\@M \dquad\fi\fi +}% + \def\postmath{\unpenalty\eq@addpunct \penalty\intermath@penalty \dquad \@ignoretrue}% +\ignorespaces +} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `breqn-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/color-localise.def b/Master/texmf-dist/tex/xelatex/xepersian/color-localise.def new file mode 100644 index 00000000000..471db16a158 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/color-localise.def @@ -0,0 +1,38 @@ +%% +%% This is file `color-localise.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `color-localise.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\آمادهسازیپرونده{color-localise.def}[2011/03/01 v0.1 localising color package] +\تعریفرنگ{سیاه}{rgb}{0,0,0} +\تعریفرنگ{سفید}{rgb}{1,1,1} +\تعریفرنگ{قرمز}{rgb}{1,0,0} +\تعریفرنگ{سبز}{rgb}{0,1,0} +\تعریفرنگ{آبی}{rgb}{0,0,1} +\تعریفرنگ{آسمانی}{cmyk}{1,0,0,0} +\تعریفرنگ{بنفش}{cmyk}{0,1,0,0} +\تعریفرنگ{زرد}{cmyk}{0,0,1,0} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `color-localise.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def b/Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def new file mode 100644 index 00000000000..d1ff158efb9 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def @@ -0,0 +1,973 @@ +%% +%% This is file `commands-ltx.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `commands-ltx.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{commands-ltx.def}[2010/07/25 v0.2 Persian localisation of LaTeX2e commands] +\eqcommand{شمعجدول}{@arstrut} +\eqcommand{فوق}{above} +\eqcommand{فاصلهکوتاهبالاینمایش}{abovedisplayshortskip} +\eqcommand{فاصلهبالاینمایش}{abovedisplayskip} +\eqcommand{عنوانچکیده}{abstractname} +\eqcommand{اکسنت}{accent} +\eqcommand{فعال}{active} +\eqcommand{بیفزاسطرفهرست}{addcontentsline} +\eqcommand{اضافهبرجریمه}{addpenalty} +\eqcommand{نشانی}{address} +\eqcommand{بیفزابهفهرست}{addtocontents} +\eqcommand{اضافهبرشمارنده}{addtocounter} +\eqcommand{اضافهبربعد}{addtolength} +\eqcommand{بیفزافضایو}{addvspace} +\eqcommand{تنظیمبدنمایی}{adjdemerits} +\eqcommand{بیفزابر}{advance} +\eqcommand{بعدازانتساب}{afterassignment} +\eqcommand{بعدازگروه}{aftergroup} +\eqcommand{الف}{aleph} +\eqcommand{خصیصهمستعارقلم}{aliasfontfeature} +\eqcommand{انتخابخصیصهمستعارقلم}{aliasfontfeatureoption} +\eqcommand{شکستنی}{allowbreak} +\eqcommand{تخصی@}{alloc@} +\eqcommand{تخصیصیافته}{allocationnumber} +\eqcommand{شکستنمایشمجاز}{allowdisplaybreaks} +\eqcommand{حروفبزرگ}{Alph} +\eqcommand{حروفکوچک}{alph} +\eqcommand{نامهمچنین}{alsoname} +\eqcommand{و}{and} +\eqcommand{زاویه}{angle} +\eqcommand{عنوانپیوست}{appendixname} +\eqcommand{تقریب}{approx} +\eqcommand{عربی}{arabic} +\eqcommand{آرگ}{arg} +\eqcommand{رنگخطجدول}{arrayrulecolor} +\eqcommand{فاصلهستونهایآرایه}{arraycolsep} +\eqcommand{ضخامتخطجدول}{arrayrulewidth} +\eqcommand{کشیدگیآرایه}{arraystretch} +\eqcommand{درآغازنوشتار}{AtBeginDocument} +\eqcommand{درپایاننوشتار}{AtEndDocument} +\eqcommand{درانتهایطبقه}{AtEndOfClass} +\eqcommand{درانتهایسبک}{AtEndOfPackage} +\eqcommand{نویسنده}{author} +\eqcommand{مطلبپشت}{backmatter} +\eqcommand{شکافپشت}{backslash} +\eqcommand{بدنمایی}{badness} +\eqcommand{میله}{bar} +\eqcommand{فاصلهکرسی}{baselineskip} +\eqcommand{کششفاصلهکرسی}{baselinestretch} +\eqcommand{پردازشدستهای}{batchmode} +\eqcommand{شروع}{begin} +\eqcommand{شروعچپ}{beginL} +\eqcommand{شروعراست}{beginR} +\eqcommand{شروعگروه}{begingroup} +\eqcommand{فاصلهکوتاهپاییننمایش}{belowdisplayshortskip} +\eqcommand{فاصلهپاییننمایش}{belowdisplayskip} +\eqcommand{سیاه}{bf} +\eqcommand{پیشفرضسیاه}{bfdefault} +\eqcommand{شمایلسیاه}{bfseries} +\eqcommand{شرگروه}{bgroup} +\eqcommand{مرجوع}{bibitem} +\eqcommand{کتابنامه}{bibliography} +\eqcommand{سبککتابنامه}{bibliographystyle} +\eqcommand{عنوانکتابنامه}{bibname} +\eqcommand{پرشبلند}{bigskip} +\eqcommand{مقدارپرشبلند}{bigskipamount} +\eqcommand{خطپایینشناور}{botfigrule} +\eqcommand{علامتپایین}{botmark} +\eqcommand{کادرتاپایین}{bottompageskip} +\eqcommand{نسبتپایین}{bottomfraction} +\eqcommand{کادر}{box} +\eqcommand{حداکثرعمقکادر}{boxmaxdepth} +\eqcommand{بشکن}{break} +\eqcommand{گلوله}{bullet} +\eqcommand{دوپن@پنج}{@cclv} +\eqcommand{دوپن@شش}{@cclvi} +\eqcommand{شرح}{caption} +\eqcommand{کدرده}{catcode} +\eqcommand{رونوشت}{cc} +\eqcommand{نامرونوشت}{ccname} +\eqcommand{نقطهوسط}{cdot} +\eqcommand{نقاطوسط}{cdots} +\eqcommand{تنظیمازوسط}{centering} +\eqcommand{خطوسط}{centerline} +\eqcommand{چک@ن}{ch@ck} +\eqcommand{فصل}{chapter} +\eqcommand{عنوانفصل}{chaptername} +\eqcommand{نویسه}{char} +\eqcommand{تعریفنویسه}{chardef} +\eqcommand{برسیفرمان}{CheckCommand} +\eqcommand{مرجع}{cite} +\eqcommand{خطایطبقه}{ClassError} +\eqcommand{اطلاعطبقه}{ClassInfo} +\eqcommand{هشدارطبقه}{ClassWarning} +\eqcommand{هشدارطبقهبیسطر}{ClassWarningNoLine} +\eqcommand{نشانگرمرکزی}{cleaders} +\eqcommand{دوصفحهپاک}{cleardoublepage} +\eqcommand{صفحهپاک}{clearpage} +\eqcommand{خطناپر}{cline} +\eqcommand{ببندورودی}{closein} +\eqcommand{ببندخروجی}{closeout} +\eqcommand{بستن}{closing} +\eqcommand{جریمهسربند}{clubpenalty} +\eqcommand{خاج}{clubsuit} +\eqcommand{علامتپایینستوناول}{colbotmark} +\eqcommand{علامتاولستوناول}{colfirstmark} +\eqcommand{رنگ}{color} +\eqcommand{کادررنگ}{colorbox} +\eqcommand{علامتبالایستوناول}{coltopmark} +\eqcommand{رنگستون}{columncolor} +\eqcommand{بینستون}{columnsep} +\eqcommand{پهنایستون}{columnwidth} +\eqcommand{خطبینستون}{columnseprule} +\eqcommand{سطرفهرست}{contentsline} +\eqcommand{عنوانفهرستمطالب}{contentsname} +\eqcommand{کپی}{copy} +\eqcommand{حقتالیف}{copyright} +\eqcommand{شمار}{count} +\eqcommand{شمار@}{count@} +\eqcommand{تعریفشمار}{countdef} +\eqcommand{سخ}{cr} +\eqcommand{سخسخ}{crcr} +\eqcommand{نامفرمان}{csname} +\eqcommand{گزینهجاری}{CurrentOption} +\eqcommand{کادربینابین}{dashbox} +\eqcommand{بینابینع}{dashv} +\eqcommand{@تاریخ}{@date} +\eqcommand{تاریخ}{date} +\eqcommand{روز}{day} +\eqcommand{خطپایینشناورپهن}{dblbotfigrule} +\eqcommand{نسبتپهنپایین}{dblbottomfraction} +\eqcommand{خطبالایشناورپهن}{dblfigrule} +\eqcommand{نسبتصفحهشناورپهن}{dblfloatpagefraction} +\eqcommand{فاصلهبینشناورپهن}{dblfloatsep} +\eqcommand{کدمکانغیرهمانطور}{dblfntlocatecode} +\eqcommand{فاصلهمتنوشناورپهن}{dbltextfloatsep} +\eqcommand{نسبتپهنبالا}{dbltopfraction} +\eqcommand{اعلانقلمثابت}{DeclareFixedFont} +\eqcommand{اعلانپسوندگرافیک}{DeclareGraphicsExtensions} +\eqcommand{اعلاندستورگرافیک}{DeclareGraphicsRule} +\eqcommand{اعلانفرمانقلمقدیمی}{DeclareOldFontCommand} +\eqcommand{اعلانگزینه}{DeclareOption} +\eqcommand{اعلانفرمانقوی}{DeclareRobustCommand} +\eqcommand{اعلانقلمعلائم}{DeclareSymbolFont} +\eqcommand{دوربسته}{deadcycles} +\eqcommand{تر}{def} +\eqcommand{تعریف@کلید}{define@key} +\eqcommand{تعریفرنگ}{definecolor} +\eqcommand{درجه}{deg} +\eqcommand{کدجداساز}{delcode} +\eqcommand{جداساز}{delimiter} +\eqcommand{ضریبجداساز}{delimiterfactor} +\eqcommand{گودی}{depth} +\eqcommand{خشت}{diamondsuit} +\eqcommand{ابعاد}{dim} +\eqcommand{بعد}{dimen} +\eqcommand{بعد@}{dimen@} +\eqcommand{بعد@یک}{dimen@i} +\eqcommand{بعد@دو}{dimen@ii} +\eqcommand{تعریفبعد}{dimendef} +\eqcommand{تیرهگذاری}{discretionary} +\eqcommand{شکستنمایش}{displaybreak} +\eqcommand{تورفتگینمایش}{displayindent} +\eqcommand{سبکنمایش}{displaystyle} +\eqcommand{عرضنمایش}{displaywidth} +\eqcommand{تقسیم}{divide} +\eqcommand{طبقهنوشتار}{documentclass} +\eqcommand{کن}{do} +\eqcommand{تعویضکدها}{dospecials} +\eqcommand{نقطه}{dot} +\eqcommand{نقطهمساوی}{doteq} +\eqcommand{پرنقطها}{dotfill} +\eqcommand{نقاط}{dots} +\eqcommand{کادردولا}{doublebox} +\eqcommand{رنگفاصلهدوخطجدول}{doublerulesepcolor} +\eqcommand{فاصلهبیندوخط}{doublerulesep} +\eqcommand{فلشپایین}{downarrow} +\eqcommand{عمق}{dp} +\eqcommand{تخلیه}{dump} +\eqcommand{ترگ}{edef} +\eqcommand{پاگروه}{egroup} +\eqcommand{انتهایفاصله}{eject} +\eqcommand{گرنه}{else} +\eqcommand{تاکید}{em} +\eqcommand{کششلاجرم}{emergencystretch} +\eqcommand{موکد}{emph} +\eqcommand{@پوچ}{@empty} +\eqcommand{پوچ}{empty} +\eqcommand{مجموعهپوچ}{emptyset} +\eqcommand{پایان}{end} +\eqcommand{پایانچپ}{endL} +\eqcommand{پایانراست}{endR} +\eqcommand{پایاننامفرمان}{endcsname} +\eqcommand{پایاناولینسر}{endfirsthead} +\eqcommand{پایانپا}{endfoot} +\eqcommand{تهبند}{endgraf} +\eqcommand{پایانگروه}{endgroup} +\eqcommand{پایانسر}{endhead} +\eqcommand{پایانورودی}{endinput} +\eqcommand{پایانآخرینپا}{endlastfoot} +\eqcommand{گسترشاینصفحه}{enlargethispage} +\eqcommand{تهسطر}{endline} +\eqcommand{نویسهتهسطر}{endlinechar} +\eqcommand{اندوری}{enspace} +\eqcommand{انفاصله}{enskip} +\eqcommand{فرمانجانشین}{eqcommand} +\eqcommand{محیطجانشین}{eqenvironment} +\eqcommand{ارجاعفر}{eqref} +\eqcommand{کمکخطا}{errhelp} +\eqcommand{پیامخطا}{errmessage} +\eqcommand{سطرمتنخطا}{errorcontextlines} +\eqcommand{پردازشتوقفخطا}{errorstopmode} +\eqcommand{نویسهویژه}{escapechar} +\eqcommand{یورو}{euro} +\eqcommand{حاشیهزوج}{evensidemargin} +\eqcommand{هرسخ}{everycr} +\eqcommand{هرنمایش}{everydisplay} +\eqcommand{هرکادرا}{everyhbox} +\eqcommand{هرکار}{everyjob} +\eqcommand{هرریاضی}{everymath} +\eqcommand{هربند}{everypar} +\eqcommand{هرکادرو}{everyvbox} +\eqcommand{اجرایگزینهها}{ExecuteOptions} +\eqcommand{جریمهاضافیتیرهبندی}{exhyphenpenalty} +\eqcommand{بگسترپساز}{expandafter} +\eqcommand{فاصلهاضافیبینستونها}{extracolsep} +\eqcommand{@اولیازیک}{@firstofone} +\eqcommand{@اولیازدو}{@firstoftwo} +\eqcommand{چ@ار}{f@ur} +\eqcommand{خانواده}{fam} +\eqcommand{صفحهتجملی}{fancypage} +\eqcommand{کادربا}{fbox} +\eqcommand{ضخامتکادربا}{fboxrule} +\eqcommand{حاشیهکادربا}{fboxsep} +\eqcommand{کادربارنگ}{fcolorbox} +\eqcommand{رگ}{fi} +\eqcommand{عنوانشکل}{figurename} +\eqcommand{پرشکن}{filbreak} +\eqcommand{پر}{fill} +\eqcommand{علامتاول}{firstmark} +\eqcommand{پهن}{flat} +\eqcommand{نسبتصفحهشناور}{floatpagefraction} +\eqcommand{جریمهشناور}{floatingpenalty} +\eqcommand{فاصلهبینشناور}{floatsep} +\eqcommand{تنظیمازپایین}{flushbottom} +\eqcommand{شکلبندی}{fmtname} +\eqcommand{ردهشکلبندی}{fmtversion} +\eqcommand{نشانه}{fnsymbol} +\eqcommand{قلم}{font} +\eqcommand{بعدقلم}{fontdimen} +\eqcommand{رمزینهقلم}{fontencoding} +\eqcommand{فامیلقلم}{fontfamily} +\eqcommand{نامقلم}{fontname} +\eqcommand{شمایلقلم}{fontseries} +\eqcommand{شکلقلم}{fontshape} +\eqcommand{اندازهقلم}{fontsize} +\eqcommand{بلندایپایینصفحه}{footheight} +\eqcommand{درجزیرنویس}{footins} +\eqcommand{زیرنویس}{footnote} +\eqcommand{علامتزیرنویس}{footnotemark} +\eqcommand{خطزیرنویس}{footnoterule} +\eqcommand{فاصلهتازیرنویس}{footnotesep} +\eqcommand{اندازهزیرنویس}{footnotesize} +\eqcommand{متنزیرنویس}{footnotetext} +\eqcommand{فاصلهتاپایینصفحه}{footskip} +\eqcommand{فریم}{frame} +\eqcommand{کادرباخط}{framebox} +\eqcommand{فواصلیکنواختلاتین}{frenchspacing} +\eqcommand{مطلبپیش}{frontmatter} +\eqcommand{بعدبگذار}{futurelet} +\eqcommand{@خورحریصانه}{@gobble} +\eqcommand{@خورحریصانهدو}{@gobbletwo} +\eqcommand{@خورحریصانهچهار}{@gobblefour} +\eqcommand{@عاقتآ}{@gtempa} +\eqcommand{@عاقتب}{@gtempb} +\eqcommand{ترع}{gdef} +\eqcommand{الگویاطلاع}{GenericInfo} +\eqcommand{الگویهشدار}{GenericWarning} +\eqcommand{الگویخطا}{GenericError} +\eqcommand{عام}{global} +\eqcommand{تعاریفعام}{globaldefs} +\eqcommand{لغتنامه}{glossary} +\eqcommand{فقرهفرهنگ}{glossaryentry} +\eqcommand{خوششکن}{goodbreak} +\eqcommand{کاغذگراف}{graphpaper} +\eqcommand{گیومهچپ}{guillemotleft} +\eqcommand{گیومهراست}{guillemotright} +\eqcommand{گیومهتکیچپ}{guilsinglleft} +\eqcommand{گیومهتکیراست}{guilsinglright} +\eqcommand{ردیفا}{halign} +\eqcommand{بروتو}{hang} +\eqcommand{بعدازسطر}{hangafter} +\eqcommand{تورفتگیثابت}{hangindent} +\eqcommand{بدنماییا}{hbadness} +\eqcommand{کادرا}{hbox} +\eqcommand{بلندایسرصفحه}{headheight} +\eqcommand{فاصلهازسرصفحه}{headsep} +\eqcommand{سربهنام}{headtoname} +\eqcommand{دل}{heartsuit} +\eqcommand{بلندا}{height} +\eqcommand{پرا}{hfil} +\eqcommand{پررا}{hfill} +\eqcommand{رفعپرا}{hfilneg} +\eqcommand{پرزافقی}{hfuzz} +\eqcommand{فاصلهمخفی}{hideskip} +\eqcommand{عرضپنهان}{hidewidth} +\eqcommand{خطپر}{hline} +\eqcommand{حاشیها}{hoffset} +\eqcommand{حفظدرج}{holdinginserts} +\eqcommand{فاصلهاگرد}{hrboxsep} +\eqcommand{خطا}{hrule} +\eqcommand{پرخطا}{hrulefill} +\eqcommand{طولسطر}{hsize} +\eqcommand{فاصلها}{hskip} +\eqcommand{فضایا}{hspace} +\eqcommand{هردوا}{hss} +\eqcommand{ارتفاع}{ht} +\eqcommand{بزرگ}{huge} +\eqcommand{بزرگتر}{Huge} +\eqcommand{ابرپیوند}{hyperlink} +\eqcommand{بارگذاریابر}{hypersetup} +\eqcommand{هدفابر}{hypertarget} +\eqcommand{تیرهبندی}{hyphenation} +\eqcommand{نویسهتیره}{hyphenchar} +\eqcommand{جریمهتیرهبندی}{hyphenpenalty} +\eqcommand{@گرکلاسفراخوانیشده}{@ifclassloaded} +\eqcommand{@گرترشدنی}{@ifdefinable} +\eqcommand{@گرنویسهبعدی}{@ifnextchar} +\eqcommand{@گرسبکفراخوانیشده}{@ifpackageloaded} +\eqcommand{@گرستاره}{@ifstar} +\eqcommand{@گرتعریفنشده}{@ifundefined} +\eqcommand{گر}{if} +\eqcommand{گر@سواقتآ}{if@tempswa} +\eqcommand{گرانواع}{ifcase} +\eqcommand{گررده}{ifcat} +\eqcommand{گرتعریفشده}{ifdefined} +\eqcommand{گربعد}{ifdim} +\eqcommand{گرتهپرونده}{ifeof} +\eqcommand{گرر}{iff} +\eqcommand{گرنادرست}{iffalse} +\eqcommand{گرپروندهموجود}{IfFileExists} +\eqcommand{گرکادرا}{ifhbox} +\eqcommand{گرحالتا}{ifhmode} +\eqcommand{گردرونی}{ifinner} +\eqcommand{گرحالتریاضی}{ifmmode} +\eqcommand{گرعدد}{ifnum} +\eqcommand{گرفرد}{ifodd} +\eqcommand{گرآنگاهدیگر}{ifthenelse} +\eqcommand{گردرست}{iftrue} +\eqcommand{گرکادرو}{ifvbox} +\eqcommand{گرحالتو}{ifvmode} +\eqcommand{گرتهی}{ifvoid} +\eqcommand{گرتام}{ifx} +\eqcommand{فاصلهخالیراندیدهبگیر}{ignorespaces} +\eqcommand{فوری}{immediate} +\eqcommand{شامل}{include} +\eqcommand{درجتصویر}{includegraphics} +\eqcommand{مشمولین}{includeonly} +\eqcommand{تورفتگی}{indent} +\eqcommand{درنمایه}{index} +\eqcommand{استعلام}{indexentry} +\eqcommand{عنواننمایه}{indexname} +\eqcommand{فاصلهرهنما}{indexspace} +\eqcommand{ورودی}{input} +\eqcommand{ورودپروندهگرموجود}{InputIfFileExists} +\eqcommand{شمارهسطرورودی}{inputlineno} +\eqcommand{درج}{insert} +\eqcommand{جریمهدرج}{insertpenalties} +\eqcommand{جریمهبینسطرهایزیرنویس}{interfootnotelinepenalty} +\eqcommand{جریمهبینسطرهاینمایش}{interdisplaylinepenalty} +\eqcommand{جریمهبینسطرها}{interlinepenalty} +\eqcommand{متنداخلی}{intertext} +\eqcommand{فاصلهشناوردرمتن}{intertextsep} +\eqcommand{مخفی}{invisible} +\eqcommand{پیشفرضای}{itdefault} +\eqcommand{شکلایتالیک}{itshape} +\eqcommand{فقره}{item} +\eqcommand{تورفتگیفقره}{itemindent} +\eqcommand{فاصلهفقره}{itemsep} +\eqcommand{تکرارکن}{iterate} +\eqcommand{شکلای}{itshape} +\eqcommand{نامکار}{jobname} +\eqcommand{قلپ}{jot} +\eqcommand{دوری}{kern} +\eqcommand{الگو}{kill} +\eqcommand{برچسب}{label} +\eqcommand{برچسبشمارشیک}{labelenumi} +\eqcommand{برچسبشمارشدو}{labelenumii} +\eqcommand{برچسبشمارشسه}{labelenumiii} +\eqcommand{برچسبشمارشچهار}{labelenumiv} +\eqcommand{برچسبفقرهیک}{labelitemi} +\eqcommand{برچسبفقرهدو}{labelitemii} +\eqcommand{برچسبفقرهسه}{labelitemiii} +\eqcommand{برچسبفقرهچهار}{labelitemiv} +\eqcommand{فاصلهازبرچسب}{labelsep} +\eqcommand{پهنایبرچسب}{labelwidth} +\eqcommand{زبان}{language} +\eqcommand{درشت}{large} +\eqcommand{درشتتر}{Large} +\eqcommand{درشتدرشت}{LARGE} +\eqcommand{آخرینکادر}{lastbox} +\eqcommand{آخریندوری}{lastkern} +\eqcommand{آخرینجریمه}{lastpenalty} +\eqcommand{آخرینفاصله}{lastskip} +\eqcommand{لاتک}{LaTeX} +\eqcommand{لاتکای}{LaTeXe} +\eqcommand{کدکوچک}{lccode} +\eqcommand{نقاطخ}{ldots} +\eqcommand{نشانگر}{leaders} +\eqcommand{ترکو}{leavevmode} +\eqcommand{چپ}{left} +\eqcommand{حاشیهچپ}{leftmargin} +\eqcommand{حاشیهچپیک}{leftmargini} +\eqcommand{حاشیهچپدو}{leftmarginii} +\eqcommand{حاشیهچپسه}{leftmarginiii} +\eqcommand{حاشیهچپچهار}{leftmarginiv} +\eqcommand{حاشیهچپپنج}{leftmarginv} +\eqcommand{حاشیهچپشش}{leftmarginvi} +\eqcommand{علامتچپ}{leftmark} +\eqcommand{کادرتاچپ}{leftpageskip} +\eqcommand{فاصلهابتدایسطر}{leftskip} +\eqcommand{بگذار}{let} +\eqcommand{سطر}{line} +\eqcommand{سطرشکن}{linebreak} +\eqcommand{جریمهسطر}{linepenalty} +\eqcommand{فاصلهسطرها}{lineskip} +\eqcommand{حدفاصلهسطر}{lineskiplimit} +\eqcommand{کششفاصلهسطر}{linespread} +\eqcommand{ضخامتخط}{linethickness} +\eqcommand{پهنایسطر}{linewidth} +\eqcommand{عنوانفهرستاشکال}{listfigurename} +\eqcommand{لیستپروندهها}{listfiles} +\eqcommand{فهرستاشکال}{listoffigures} +\eqcommand{فهرستجداول}{listoftables} +\eqcommand{تورفتگیبندلیست}{listparindent} +\eqcommand{عنوانفهرستجداول}{listtablename} +\eqcommand{بارکنطبقه}{LoadClass} +\eqcommand{بارکنطبقهباگزینه}{LoadClassWithOptions} +\eqcommand{مکان}{location} +\eqcommand{بلند}{long} +\eqcommand{گسیختگی}{looseness} +\eqcommand{انتقالبپایین}{lower} +\eqcommand{@دیگر}{@makeother} +\eqcommand{@زار}{@m} +\eqcommand{ده@زار}{@M} +\eqcommand{ده@زاریک}{@Mi} +\eqcommand{ده@زاردو}{@Mii} +\eqcommand{ده@زارسه}{@Miii} +\eqcommand{ده@زارچهار}{@Miv} +\eqcommand{بیس@زار}{@MM} +\eqcommand{من@ا}{m@ne} +\eqcommand{بزرگنمایی}{mag} +\eqcommand{گام}{magstep} +\eqcommand{نیمگام}{magstephalf} +\eqcommand{مطلباصلی}{mainmatter} +\eqcommand{اتحرف}{makeatletter} +\eqcommand{اتدیگر}{makeatother} +\eqcommand{کادربیخط}{makebox} +\eqcommand{ساختفرهنگ}{makeglossary} +\eqcommand{تهیهنمایه}{makeindex} +\eqcommand{ساختبرچسب}{makelabel} +\eqcommand{ساختبرچسبها}{makelabels} +\eqcommand{ساختحروفکوچک}{MakeLowercase} +\eqcommand{عنوانساز}{maketitle} +\eqcommand{ساختحروفبزرگ}{MakeUppercase} +\eqcommand{درحاشیه}{marginpar} +\eqcommand{فاصلهدوحاشیه}{marginparpush} +\eqcommand{فاصلهتاحاشیه}{marginparsep} +\eqcommand{پهنایحاشیه}{marginparwidth} +\eqcommand{علامت}{mark} +\eqcommand{علامتدردوطرف}{markboth} +\eqcommand{علامتدرراست}{markright} +\eqcommand{اعرابریاضی}{mathaccent} +\eqcommand{نویسهریاضی}{mathchar} +\eqcommand{تعریفنویسهریاضی}{mathchardef} +\eqcommand{کدریاضی}{mathcode} +\eqcommand{ریاضیرومن}{mathrm} +\eqcommand{حداکثرتکرار}{maxdeadcycles} +\eqcommand{حداکثرعمقصفحه}{maxdepth} +\eqcommand{بعدبیشین}{maxdimen} +\eqcommand{کادربی}{mbox} +\eqcommand{شمایلنازک}{mdseries} +\eqcommand{معنا}{meaning} +\eqcommand{نازک}{mediumseries} +\eqcommand{فاصلهمتوسطریاضی}{medmuskip} +\eqcommand{پرشمتوسط}{medskip} +\eqcommand{مقدارپرشمتوسط}{medskipamount} +\eqcommand{فضایمتوسط}{medspace} +\eqcommand{پیام}{message} +\eqcommand{پیامشکن}{MessageBreak} +\eqcommand{حداقلفاصلهردیف}{minrowclearance} +\eqcommand{دوریریاضی}{mkern} +\eqcommand{ماه}{month} +\eqcommand{انتقالبچپ}{moveleft} +\eqcommand{انتقالبراست}{moveright} +\eqcommand{فاصلهریاضی}{mskip} +\eqcommand{ری@ضی}{m@th} +\eqcommand{چندستونی}{multicolumn} +\eqcommand{ضرب}{multiply} +\eqcommand{چندادغام}{multispan} +\eqcommand{میوفاصله}{muskip} +\eqcommand{تعریفمیوفاصله}{muskipdef} +\eqcommand{@ترنام}{@namedef} +\eqcommand{@کاربردنام}{@nameuse} +\eqcommand{یک@}{@ne} +\eqcommand{نام}{name} +\eqcommand{طبیعی}{natural} +\eqcommand{باریک}{nearrow} +\eqcommand{باریکتر}{nearrower} +\eqcommand{شکلبندیموردنیاز}{NeedsTeXFormat} +\eqcommand{منفی}{neg} +\eqcommand{فضایمتوسطمنفی}{negmedspace} +\eqcommand{فضایضخیممنفی}{negthickspace} +\eqcommand{دوریکوچکمنفی}{negthinspace} +\eqcommand{بولینو}{newboolean} +\eqcommand{کادرجدید}{newbox} +\eqcommand{فرماننو}{newcommand} +\eqcommand{شمارجدید}{newcount} +\eqcommand{شمارندهجدید}{newcounter} +\eqcommand{بعدجدید}{newdimen} +\eqcommand{محیطنو}{newenvironment} +\eqcommand{خانوادهجدید}{newfam} +\eqcommand{قلمنو}{newfont} +\eqcommand{کمکجدید}{newhelp} +\eqcommand{درججدید}{newinsert} +\eqcommand{برچسبجدید}{newlabel} +\eqcommand{تعریفبعدجدید}{newlength} +\eqcommand{سطرجدید}{newline} +\eqcommand{نویسهسطرجدید}{newlinechar} +\eqcommand{میوفاصلهجدید}{newmuskip} +\eqcommand{صفحهجدید}{newpage} +\eqcommand{بخوانجدید}{newread} +\eqcommand{تعریفکادرجدید}{newsavebox} +\eqcommand{فاصلهجدید}{newskip} +\eqcommand{قضیهجدید}{newtheorem} +\eqcommand{جزءجدید}{newtoks} +\eqcommand{بنویسجدید}{newwrite} +\eqcommand{بیردیف}{noalign} +\eqcommand{نشکن}{nobreak} +\eqcommand{فاصلهنشکستنی}{nobreakspace} +\eqcommand{بدونسند}{nocite} +\eqcommand{نگستر}{noexpand} +\eqcommand{بدونپرونده}{nofiles} +\eqcommand{بدونتورفتگی}{noindent} +\eqcommand{بیفاصلهسطر}{nointerlineskip} +\eqcommand{بدونحد}{nolimits} +\eqcommand{سطرنشکن}{nolinebreak} +\eqcommand{پردازشبدونتوقف}{nonstopmode} +\eqcommand{فواصلمتعارفلاتین}{nonfrenchspacing} +\eqcommand{بدونشماره}{nonumber} +\eqcommand{صفحهنشکن}{nopagebreak} +\eqcommand{کرسیهایمتعارف}{normalbaselines} +\eqcommand{فاصلهکرسیمتعارف}{normalbaselineskip} +\eqcommand{رنگعادی}{normalcolor} +\eqcommand{قلمعادی}{normalfont} +\eqcommand{فاصلهسطرمتعارف}{normallineskip} +\eqcommand{حدفاصلهسطرمتعارف}{normallineskiplimit} +\eqcommand{درحاشیهعادی}{normalmarginpar} +\eqcommand{اندازهعادی}{normalsize} +\eqcommand{بدوناتیکت}{notag} +\eqcommand{نول}{null} +\eqcommand{قلمتهی}{nullfont} +\eqcommand{عدد}{number} +\eqcommand{سطرعددی}{numberline} +\eqcommand{شمارهمطابق}{numberwithin} +\eqcommand{پایینصفحهزوج}{@evenfoot} +\eqcommand{بالایصفحهزوج}{@evenhead} +\eqcommand{پایینصفحهفرد}{@oddfoot} +\eqcommand{بالایصفحهفرد}{@oddhead} +\eqcommand{شمارهبیروندرست}{@outeqntrue} +\eqcommand{شمارهبیروننادرست}{@outeqnfalse} +\eqcommand{سطربهسطر}{obeylines} +\eqcommand{فضافعال}{obeyspaces} +\eqcommand{حاشیهفرد}{oddsidemargin} +\eqcommand{سطوربیفاصله}{offinterlineskip} +\eqcommand{حذف}{omit} +\eqcommand{@تنهادرپیشدرآمد}{@onlypreamble} +\eqcommand{یکستون}{onecolumn} +\eqcommand{تنهایادداشتها}{onlynotes} +\eqcommand{تنهااسلایدها}{onlyslides} +\eqcommand{بازکنورودی}{openin} +\eqcommand{بازکنخروجی}{openout} +\eqcommand{گزینهمصرفنشده}{OptionNotUsed} +\eqcommand{یا}{or} +\eqcommand{برونی}{outer} +\eqcommand{صفحهبندی}{output} +\eqcommand{جریمهصفحهبندی}{outputpenalty} +\eqcommand{علامتسرریز}{overfullrule} +\eqcommand{@فرمانهایپیشدرآمد}{@preamblecmds} +\eqcommand{@پو}{p@} +\eqcommand{خطایسبک}{PackageError} +\eqcommand{اطلاعسبک}{PackageInfo} +\eqcommand{هشدارسبک}{PackageWarning} +\eqcommand{هشدارسبکبیسطر}{PackageWarningNoLine} +\eqcommand{صفحهشکن}{pagebreak} +\eqcommand{رنگصفحه}{pagecolor} +\eqcommand{عمقصفحه}{pagedepth} +\eqcommand{کششپرررصفحه}{pagefilllstretch} +\eqcommand{کششپررصفحه}{pagefillstretch} +\eqcommand{کششپرصفحه}{pagefilstretch} +\eqcommand{غایتصفحه}{pagegoal} +\eqcommand{نامصفحه}{pagename} +\eqcommand{شمارهگذاریصفحه}{pagenumbering} +\eqcommand{رجوعصفحه}{pageref} +\eqcommand{ضخامتخطصفحه}{pagerulewidth} +\eqcommand{فشردگیصفحه}{pageshrink} +\eqcommand{کششصفحه}{pagestretch} +\eqcommand{سبکصفحه}{pagestyle} +\eqcommand{جمعصفحه}{pagetotal} +\eqcommand{بلندایکاغذ}{paperheight} +\eqcommand{پهنایکاغذ}{paperwidth} +\bidi@csdefcs{بند}{par}% this is an exception since \par is redefined only in some circumstances +\eqcommand{پاراگراف}{paragraph} +\eqcommand{موازی}{parallel} +\eqcommand{کادرپار}{parbox} +\eqcommand{فاصلهتهبند}{parfillskip} +\eqcommand{تورفتگیسربند}{parindent} +\eqcommand{فاصلهبندلیست}{parsep} +\eqcommand{شکلبند}{parshape} +\eqcommand{فاصلهبند}{parskip} +\eqcommand{بخش}{part} +\eqcommand{عنوانبخش}{partname} +\eqcommand{فاصلهبالایلیستبند}{partopsep} +\eqcommand{ارسالگزینهبهکلاس}{PassOptionToClass} +\eqcommand{ارسالگزینهبهپکیج}{PassOptionToPackage} +\eqcommand{مسیر}{path} +\eqcommand{الگوها}{patterns} +\eqcommand{مکث}{pausing} +\eqcommand{جریمه}{penalty} +\eqcommand{غیب}{phantom} +\eqcommand{الگویقبلی}{poptabs} +\eqcommand{جریمهپسنمایش}{postdisplaypenalty} +\eqcommand{جهتپیشنمایش}{predisplaydirection} +\eqcommand{جریمهپیشنمایش}{predisplaypenalty} +\eqcommand{اندازهپیشنمایش}{predisplaysize} +\eqcommand{پیشحدبدنمایی}{pretolerance} +\eqcommand{عمققبلی}{prevdepth} +\eqcommand{بندقبلی}{prevgraf} +\eqcommand{نمایهدراینجا}{printindex} +\eqcommand{پردازشگزینهها}{ProcessOptions} +\eqcommand{تامین}{protect} +\eqcommand{تهیهفرمان}{providecommand} +\eqcommand{آمادهسازیطبقه}{ProvidesClass} +\eqcommand{آمادهسازیپرونده}{ProvidesFile} +\eqcommand{آمادهسازیسبک}{ProvidesPackage} +\eqcommand{ثبتالگو}{pushtabs} +\eqcommand{کواد}{quad} +\eqcommand{کوکواد}{qquad} +\eqcommand{@بازآییخروجصفحه}{@outputpagerestore} +\eqcommand{رادیکال}{radical} +\eqcommand{پایینبیتنظیم}{raggedbottom} +\eqcommand{تنظیمازراست}{raggedleft} +\eqcommand{تنظیمازچپ}{raggedright} +\eqcommand{انتقالببالا}{raise} +\eqcommand{بالابر}{raisebox} +\eqcommand{ترفیعاتیکت}{raisetag} +\eqcommand{زاویهر}{rangle} +\eqcommand{سقفر}{rceil} +\eqcommand{بخوان}{read} +\eqcommand{رجوع}{ref} +\eqcommand{کادرقرینه}{reflectbox} +\eqcommand{عنوانمراجع}{refname} +\eqcommand{گامشمارندهمرجع}{refstepcounter} +\eqcommand{راحت}{relax} +\eqcommand{رفعآخرینفاصله}{removelastskip} +\eqcommand{فرمانازنو}{renewcommand} +\eqcommand{محیطازنو}{renewenvironment} +\eqcommand{سبکموردنیاز}{RequirePackage} +\eqcommand{سبکموردنیازباگزینه}{RequirePackageWithOptions} +\eqcommand{کادرکشیده}{resizebox} +\eqcommand{درحاشیهمعکوس}{reversemarginpar} +\eqcommand{کفر}{rfloor} +\eqcommand{راست}{right} +\eqcommand{حاشیهراست}{rightmargin} +\eqcommand{علامتراست}{rightmark} +\eqcommand{کادرتاراست}{rightpageskip} +\eqcommand{فاصلهانتهایسطر}{rightskip} +\eqcommand{رومنعادی}{rmdefault} +\eqcommand{فامیلرومن}{rmfamily} +\eqcommand{رومنبزرگ}{Roman} +\eqcommand{رومنکوچک}{roman} +\eqcommand{عددرومی}{romannumeral} +\eqcommand{کادرچرخان}{rotatebox} +\eqcommand{رنگردیف}{rowcolor} +\eqcommand{خط}{rule} +\eqcommand{@دومیازدو}{@secondoftwo} +\eqcommand{@فضاها}{@spaces} +\eqcommand{همینصفحه}{samepage} +\eqcommand{مقدارکادر}{savebox} +\eqcommand{مقکادر}{sbox} +\eqcommand{کادراندازه}{scalebox} +\eqcommand{پیشفرضتمامبزرگ}{scdefault} +\eqcommand{شکلتمامبزرگ}{scshape} +\eqcommand{مقدارکلیدها}{setkeys} +\eqcommand{قلمتوان}{scriptfont} +\eqcommand{قلمتوانتوان}{scriptscriptfont} +\eqcommand{سبکتهنوشتتهنوشت}{scriptscriptstyle} +\eqcommand{اندازهپانویس}{scriptsize} +\eqcommand{سبکتهنوشت}{scripstyle} +\eqcommand{پردازشگذری}{scrollmode} +\eqcommand{قسمت}{section} +\eqcommand{تعریفقسمت}{secdef} +\eqcommand{ببینید}{see} +\eqcommand{نیزببینید}{seealso} +\eqcommand{نامببینید}{seename} +\eqcommand{قلمبردار}{selectfont} +\eqcommand{تنظیمبولی}{setboolean} +\eqcommand{درکادر}{setbox} +\eqcommand{مقدارشمارنده}{setcounter} +\eqcommand{مقداربعد}{setlength} +\eqcommand{تنظیممنها}{setminus} +\eqcommand{تعریفقلمعلائم}{SetSymbolFont} +\eqcommand{تنظیمبهعمق}{settodepth} +\eqcommand{تنظیمبهارتفاع}{settoheight} +\eqcommand{مقداربعدبهاندازه}{settowidth} +\eqcommand{کدضریبفاصله}{sfcode} +\eqcommand{پیشفرضسف}{sfdefault} +\eqcommand{فامیلسنسریف}{sffamily} +\eqcommand{کادرسایهدار}{shadowbox} +\eqcommand{تیز}{sharp} +\eqcommand{بفرست}{shipout} +\eqcommand{پشتهکوتاه}{shortstack} +\eqcommand{نمایشبده}{show} +\eqcommand{نمایشبدهکادر}{showbox} +\eqcommand{میزاننمایشکادر}{showboxbreadth} +\eqcommand{عمقنمایشکادر}{showboxdepth} +\eqcommand{نمایشبدهلیستها}{showlists} +\eqcommand{نمایشبدهمحتوای}{showthe} +\eqcommand{حالتسادهقلم}{simplefontmode} +\eqcommand{شانزد@}{sixt@@n} +\eqcommand{نویسهاریب}{skewchar} +\eqcommand{فاصله}{skip} +\eqcommand{فاصل@}{skip@} +\eqcommand{تعریففاصله}{skipdef} +\eqcommand{خوابیده}{sl} +\eqcommand{پیشفرضخو}{sldefault} +\eqcommand{شکلخوابیده}{slshape} +\eqcommand{راحتچین}{sloppy} +\eqcommand{شمایلخو}{slshape} +\eqcommand{کوچک}{small} +\eqcommand{پرشکوتاه}{smallskip} +\eqcommand{مقدارپرشکوتاه}{smallskipamount} +\eqcommand{کوب}{smash} +\eqcommand{لبخند}{smile} +\eqcommand{کدمکانهمانطور}{snglfntlocatecode} +\eqcommand{فضا}{space} +\eqcommand{ضریبفاصله}{spacefactor} +\eqcommand{فاصلهکلمات}{spaceskip} +\eqcommand{پیک}{spadesuit} +\eqcommand{ادغام}{span} +\eqcommand{ویژه}{special} +\eqcommand{حداکثرعمقستون}{splitmaxdepth} +\eqcommand{فاصلهبالایستون}{splittopskip} +\eqcommand{ستاره}{star} +\eqcommand{گامشمارنده}{stepcounter} +\eqcommand{کشی}{stretch} +\eqcommand{رشته}{string} +\eqcommand{شمع}{strut} +\eqcommand{کادرشمع}{strutbox} +\eqcommand{زیربند}{subitem} +\eqcommand{زیرپاراگراف}{subparagraph} +\eqcommand{زیرقسمت}{subsection} +\eqcommand{زیرپشته}{substack} +\eqcommand{زیرزیربند}{subsubitem} +\eqcommand{زیرزیرقسمت}{subsubsection} +\eqcommand{زیرمجموعه}{subset} +\eqcommand{زیرمجموعهمس}{subseteq} +\eqcommand{منتهایصفحه}{supereject} +\eqcommand{حذفمکانشناور}{suppressfloats} +\eqcommand{@موقتآ}{@tempa} +\eqcommand{@موقتب}{@tempb} +\eqcommand{@موقتپ}{@tempc} +\eqcommand{@موقتت}{@tempd} +\eqcommand{@موقتث}{@tempe} +\eqcommand{@کادرقتآ}{@tempboxa} +\eqcommand{@شماقتآ}{@tempcnta} +\eqcommand{@شماقتب}{@tempcntb} +\eqcommand{@بعدقتآ}{@tempdima} +\eqcommand{@بعدقتب}{@tempdimb} +\eqcommand{@بعدقتپ}{@tempdimc} +\eqcommand{@فاقتآ}{@tempskipa} +\eqcommand{@فاقتب}{@tempskipb} +\eqcommand{@سواقتآنادرست}{@tempswafalse} +\eqcommand{@سواقتآدرست}{@tempswatrue} +\eqcommand{@جزقتآ}{@temptokena} +\eqcommand{انگزیرنویس}{@thefnmark} +\eqcommand{@سومیازسه}{@thirdofthree} +\eqcommand{فاصلهجاگذاری}{tabbingsep} +\eqcommand{فاصلهبینستونها}{tabcolsep} +\eqcommand{فهرستمطالب}{tableofcontents} +\eqcommand{عنوانجدول}{tablename} +\eqcommand{فاصلهستونها}{tabskip} +\eqcommand{تهسطرجدول}{tabularnewline} +\eqcommand{اتیکت}{tag} +\eqcommand{تلفن}{telephone} +\eqcommand{تک}{TeX} +\eqcommand{متن}{text} +\eqcommand{گلولهمتنی}{textbullet} +\eqcommand{قلممتن}{textfont} +\eqcommand{امدشمتنی}{textemdash} +\eqcommand{اندشمتنی}{textendash} +\eqcommand{تعجبوارونهمتنی}{textexclamdown} +\eqcommand{نقطهوسطمتنی}{textperiodcentered} +\eqcommand{سوالوارونهمتنی}{textquestiondown} +\eqcommand{نقلچپمتنیدولا}{textquotedblleft} +\eqcommand{نقلراستمتنیدولا}{textquotedblright} +\eqcommand{نقلمتنیچپ}{textquoteleft} +\eqcommand{نقلمتنیراست}{textquoteright} +\eqcommand{فضاینمایانمتنی}{textvisiblespace} +\eqcommand{شکافتپشتمتنی}{textbackslash} +\eqcommand{میلهمتنی}{textbar} +\eqcommand{بزرگترمتنی}{textgreater} +\eqcommand{کمترمتنی}{textless} +\eqcommand{متنسیاه}{textbf} +\eqcommand{مدورمتنی}{textcircled} +\eqcommand{رنگمتن}{textcolor} +\eqcommand{نشانکلمهمرکبمتن}{textcompwordmark} +\eqcommand{فاصلهمتنوشناور}{textfloatsep} +\eqcommand{نسبتمتن}{textfraction} +\eqcommand{بلندایمتن}{textheight} +\eqcommand{متنتورفته}{textindent} +\eqcommand{متنایتالیک}{textit} +\eqcommand{متننازک}{textmd} +\eqcommand{متننرمال}{textnormal} +\eqcommand{ثبتیمتنی}{textregistered} +\eqcommand{متنرومن}{textrm} +\eqcommand{متنتمامبزرگ}{textsc} +\eqcommand{متنسنسریف}{textsf} +\eqcommand{متنخوابیده}{textsl} +\eqcommand{سبکمتنی}{textstyle} +\eqcommand{بالانویسمتنی}{textsuperscript} +\eqcommand{علامتتجاریمتنی}{texttrademark} +\eqcommand{متنتایپ}{texttt} +\eqcommand{متنایستاده}{textup} +\eqcommand{پهنایمتن}{textwidth} +\eqcommand{زیرنویسعنوان}{thanks} +\eqcommand{محتوای}{the} +\eqcommand{اینزیرنویس}{thempfn} +\eqcommand{خطهاضخیم}{thicklines} +\eqcommand{فاصلهزیادریاضی}{thickmuskip} +\eqcommand{فاصلهکمریاضی}{thinmuskip} +\eqcommand{فضاضخیم}{thickspace} +\eqcommand{خطهانازک}{thinlines} +\eqcommand{دوریکوچک}{thinspace} +\eqcommand{اینصفحهتجملی}{thisfancypage} +\eqcommand{سبکاینصفحه}{thispagestyle} +\eqcommand{سه@}{thr@@} +\eqcommand{مد}{tilde} +\eqcommand{ظریف}{tiny} +\eqcommand{زمان}{time} +\eqcommand{ضربدر}{times} +\eqcommand{عنوان}{title} +\eqcommand{به}{to} +\eqcommand{امروز}{today} +\eqcommand{جزء}{toks} +\eqcommand{تعریفجزء}{toksdef} +\eqcommand{حدبدنمایی}{tolerance} +\eqcommand{بالا}{top} +\eqcommand{خطبالایشناور}{topfigrule} +\eqcommand{نسبتبالا}{topfraction} +\eqcommand{حاشیهبالا}{topmargin} +\eqcommand{علامتبالا}{topmark} +\eqcommand{کادرتابالا}{toppageskip} +\eqcommand{فاصلهبالایلیست}{topsep} +\eqcommand{فاصلهبالا}{topskip} +\eqcommand{بلندایکل}{totalheight} +\eqcommand{ردگیریکل}{tracingall} +\eqcommand{ردگیریفرامین}{tracingcommands} +\eqcommand{ردگیریحروف}{tracinglostchars} +\eqcommand{ردگیریماکروها}{tracingmacros} +\eqcommand{ردگیرینمایشی}{tracingonline} +\eqcommand{ردگیریصفحهبندی}{tracingoutput} +\eqcommand{ردگیریصفحات}{tracingpages} +\eqcommand{ردگیریبندها}{tracingparagraphs} +\eqcommand{ردگیریبازگردانی}{tracingrestores} +\eqcommand{ردگیریآمارها}{tracingstats} +\eqcommand{مثلث}{triangle} +\eqcommand{پیشفرضتایپ}{ttdefault} +\eqcommand{فامیلتایپ}{ttfamily} +\eqcommand{دو@}{tw@} +\eqcommand{دوستون}{twocolumn} +\eqcommand{درنویس}{typein} +\eqcommand{برنویس}{typeout} +\eqcommand{کدبزرگ}{uccode} +\eqcommand{تیرهبندیبزرگ}{uchyph} +\eqcommand{زیرخط}{underline} +\eqcommand{بیکادرا}{unhbox} +\eqcommand{بیکپیا}{unhcopy} +\eqcommand{واحدطول}{unitlength} +\eqcommand{برگشتدوری}{unkern} +\eqcommand{برگشتجریمه}{unpenalty} +\eqcommand{برگشتفاصله}{unskip} +\eqcommand{بیکادرو}{unvbox} +\eqcommand{بیکپیو}{unvcopy} +\eqcommand{پیشفرضایستاده}{updefault} +\eqcommand{شکلایستاده}{upshape} +\eqcommand{ازکادر}{usebox} +\eqcommand{باشمارشگر}{usecounter} +\eqcommand{گزینشقلم}{usefont} +\eqcommand{سبکلازم}{usepackage} +\eqcommand{@فضاهایفعال}{@vobeyspaces} +\eqcommand{@تهی}{@void} +\eqcommand{تنظیمو}{vadjust} +\eqcommand{ردیفو}{valign} +\eqcommand{محتوایشمارنده}{value} +\eqcommand{بدنماییو}{vbadness} +\eqcommand{کادرو}{vbox} +\eqcommand{کادروسط}{vcenter} +\eqcommand{همانطور}{verb} +\eqcommand{پرو}{vfil} +\eqcommand{پررو}{vfill} +\eqcommand{رفعپرو}{vfilneg} +\eqcommand{پرزعمودی}{vfuzz} +\eqcommand{نمایان}{visible} +\eqcommand{خطعمود}{vline} +\eqcommand{حاشیهو}{voffset} +\eqcommand{ک@درتهی}{voidb@x} +\eqcommand{ارجاعصفحهع}{vpageref} +\eqcommand{فاصلهوگرد}{vrboxsep} +\eqcommand{ارجاعع}{vref} +\eqcommand{خطو}{vrule} +\eqcommand{طولصفحه}{vsize} +\eqcommand{فاصلهو}{vskip} +\eqcommand{فضایو}{vspace} +\eqcommand{شکستو}{vsplit} +\eqcommand{هردوو}{vss} +\eqcommand{کادرگود}{vtop} +\eqcommand{عرض}{wd} +\eqcommand{مادامبکن}{whiledo} +\eqcommand{کلاهپهن}{widehat} +\eqcommand{مدپهن}{widetilde} +\eqcommand{جریمهتهبند}{widowpenalty} +\eqcommand{پهنا}{width} +\eqcommand{درکارنامه}{wlog} +\eqcommand{بنویس}{write} +\eqcommand{@فضایلاتین}{@xobeysp} +\eqcommand{سی@دو}{@xxxii} +\eqcommand{ترگع}{xdef} +\eqcommand{نشانگرگسترشی}{xleaders} +\eqcommand{فاصلهاضافیکلمات}{xspaceskip} +\eqcommand{سال}{year} +\eqcommand{@فر}{z@} +\eqcommand{@فرفاصله}{z@skip} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `commands-ltx.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/commands-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/commands-xepersian.def new file mode 100644 index 00000000000..02b6727613d --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/commands-xepersian.def @@ -0,0 +1,89 @@ +%% +%% This is file `commands-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `commands-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{commands-xepersian.def}[2012/07/25 v0.2 Persian localisation of XePersian commands] +\eqcommand{خطزیرنویسخودکار}{autofootnoterule} +\eqcommand{اعدادفرمولهاخودکار}{AutoMathsDigits} +\eqcommand{اعدادفرمولهالاتین}{DefaultMathsDigits} +\eqcommand{معادل@کلید}{keyval@eq@alias@key} +\eqcommand{تعریفقلملاتین}{deflatinfont} +\eqcommand{تعریفقلمپارسی}{defpersianfont} +\eqcommand{کادراچپ}{hboxL} +\eqcommand{کادراست}{hboxR} +\eqcommand{مرجعلاتین}{Latincite} +\eqcommand{قلملاتین}{latinfont} +\eqcommand{امروزلاتین}{latintoday} +\eqcommand{خطزیرنویسچپ}{leftfootnoterule} +\eqcommand{متنلاتین}{lr} +\eqcommand{چپبراست}{LRE} +\eqcommand{دوستونیچپ}{LTRdblcol} +\eqcommand{پانویس}{LTRfootnote} +\eqcommand{متنپانویس}{LTRfootnotetext} +\eqcommand{پانویسعنوان}{LTRthanks} +\eqcommand{روزپارسی}{persianday} +\eqcommand{قلمپارسی}{persianfont} +\eqcommand{اعدادفرمولهاپارسی}{PersianMathsDigits} +\eqcommand{ماهپارسی}{persianmonth} +\eqcommand{سالپارسی}{persianyear} +\eqcommand{علامتچپنقلقولپارسی}{plq} +\eqcommand{علامتراستنقلقولپارسی}{prq} +\eqcommand{خطزیرنویسراست}{rightfootnoterule} +\eqcommand{متنپارسی}{rl} +\eqcommand{راستبچپ}{RLE} +\eqcommand{دوستونیراست}{RTLdblcol} +\eqcommand{پانوشت}{RTLfootnote} +\eqcommand{متنپانوشت}{RTLfootnotetext} +\eqcommand{پانوشتعنوان}{RTLthanks} +\eqcommand{@علامتبین}{@SepMark} +\eqcommand{علامتبین}{SepMark} +\eqcommand{بگذارمرجوعاتعادی}{setdefaultbibitems} +\eqcommand{بگذاردرحاشیهعادی}{setdefaultmarginpar} +\eqcommand{گزینشقلماعدادفرمولها}{setdigitfont} +\eqcommand{بگذارزیرنویسچپ}{setfootnoteLR} +\eqcommand{بگذارزیرنویسراست}{setfootnoteRL} +\eqcommand{گزینشقلملاتینمتن}{setlatintextfont} +\eqcommand{بگذارمتنچپ}{setLTR} +\eqcommand{بگذارمرجوعاتچپ}{setLTRbibitems} +\eqcommand{بگذاردرحاشیهچپ}{setLTRmarginpar} +\eqcommand{بگذارمتنراست}{setRTL} +\eqcommand{بگذارمرجوعاتراست}{setRTLbibitems} +\eqcommand{بگذاردرحاشیهراست}{setRTLmarginpar} +\eqcommand{گزینشقلممتن}{settextfont} +\eqcommand{خطزیرنویسپهنایمتن}{textwidthfootnoterule} +\eqcommand{فهرستمطالبدوستونی}{twocolumnstableofcontents} +\eqcommand{نگذارزیرنویسراست}{unsetfootnoteRL} +\eqcommand{نگذارمتنچپ}{unsetLTR} +\eqcommand{نگذارمتنراست}{unsetRTL} +\eqcommand{کادروازچپ}{vboxL} +\eqcommand{کادروازراست}{vboxR} +\eqcommand{زیلاتک}{XeLaTeX} +\eqcommand{زیپرشین}{XePersian} +\eqcommand{گونهزیپرشین}{xepersianversion} +\eqcommand{تاریخگونهزیپرشین}{xepersiandate} +\eqcommand{زیتک}{XeTeX} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `commands-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/empheq-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/empheq-xepersian.def new file mode 100644 index 00000000000..fb15d18a1cc --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/empheq-xepersian.def @@ -0,0 +1,32 @@ +%% +%% This is file `empheq-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `empheq-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{empheq-xepersian.def}[2011/03/01 v0.1 adaptations for empheq package] +\def\tagform@#1{\maketag@@@{\if@Latin\else\beginR\fi(\ignorespaces#1\unskip\@@italiccorr)\if@Latin\else\endR\fi}} +\def\text#1{\@@text{\if@Latin\else\beginR\fi#1\if@Latin\else\endR\fi}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `empheq-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def new file mode 100644 index 00000000000..6b6a783ec90 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def @@ -0,0 +1,46 @@ +%% +%% This is file `enumerate-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `enumerate-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{enumerate-xepersian.def}[2010/07/25 v0.1 adaptations for enumerate package] +\def\@enloop@{% + \ifx ا\@entemp \def\@tempa{\@enLabel\harfi }\else + \ifx ی\@entemp \def\@tempa{\@enLabel\adadi }\else + \ifx ت\@entemp \def\@tempa{\@enLabel\tartibi }\else + \ifx A\@entemp \def\@tempa{\@enLabel\Alph }\else + \ifx a\@entemp \def\@tempa{\@enLabel\alph }\else + \ifx i\@entemp \def\@tempa{\@enLabel\roman }\else + \ifx I\@entemp \def\@tempa{\@enLabel\Roman }\else + \ifx 1\@entemp \def\@tempa{\@enLabel\arabic}\else + \ifx \@sptoken\@entemp \let\@tempa\@enSpace \else + \ifx \bgroup\@entemp \let\@tempa\@enGroup \else + \ifx \@enum@\@entemp \let\@tempa\@gobble \else + \let\@tempa\@enOther + \@enhook + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \@tempa} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `enumerate-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/environments-ltx.def b/Master/texmf-dist/tex/xelatex/xepersian/environments-ltx.def new file mode 100644 index 00000000000..77babeda79c --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/environments-ltx.def @@ -0,0 +1,72 @@ +%% +%% This is file `environments-ltx.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `environments-ltx.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{environments-ltx.def}[2010/07/25 v0.2 Persian localisation of LaTeX2e environments] +\eqenvironment{چکیده}{abstract} +\eqenvironment{پیوست}{appendix} +\eqenvironment{آرایه}{array} +\eqenvironment{وسطچین}{center} +\eqenvironment{توضیح}{description} +\eqenvironment{ریاضینمایشی}{displaymath} +\eqenvironment{نوشتار}{document} +\eqenvironment{شمارش}{enumerate} +\eqenvironment{شکل}{figure} +\eqenvironment{شکل*}{figure*} +\eqenvironment{محتوایپرونده}{filecontents} +\eqenvironment{محتوایپرونده*}{filecontents*} +\eqenvironment{چپچین}{flushleft} +\eqenvironment{راستچین}{flushright} +\eqenvironment{فقرات}{itemize} +\eqenvironment{نامه}{letter} +\eqenvironment{لیست}{list} +\eqenvironment{جدولدراز}{longtable} +\eqenvironment{کادررچ}{lrbox} +\eqenvironment{ریاضی}{math} +\eqenvironment{ماتریس}{matrix} +\eqenvironment{صفحهکوچک}{minipage} +\eqenvironment{چندخطی}{multline} +\eqenvironment{یادداشت}{note} +\eqenvironment{انباشتن}{overlay} +\eqenvironment{تصویر}{picture} +\eqenvironment{اقتباس}{quotation} +\eqenvironment{نقل}{quote} +\eqenvironment{اسلاید}{slide} +\eqenvironment{پارنامرتب}{sloppypar} +\eqenvironment{شکافتن}{split} +\eqenvironment{زیرآرایه}{subarray} +\eqenvironment{جاگذاری}{tabbing} +\eqenvironment{لوح}{table} +\eqenvironment{لوح*}{table*} +\eqenvironment{جدول}{tabular} +\eqenvironment{جدول*}{tabular*} +\eqenvironment{مراجع}{thebibliography} +\eqenvironment{محتواینمایه}{theindex} +\eqenvironment{صفحهعنوان}{titlepage} +\eqenvironment{لیستبدوی}{trivlist} +\eqenvironment{شعر}{verse} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `environments-ltx.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/environments-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/environments-xepersian.def new file mode 100644 index 00000000000..18eb89b6274 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/environments-xepersian.def @@ -0,0 +1,40 @@ +%% +%% This is file `environments-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `environments-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{environments-xepersian.def}[2010/07/25 v0.1 Persian localisation of XePersian and bidi environments] +\eqenvironment{لاتین}{latin} +\eqenvironment{متنچپ}{LTR} +\eqenvironment{دستهبندیچپ}{LTRitems} +\eqenvironment{شعرنو}{modernpoem} +\eqenvironment{شعرنو*}{modernpoem*} +\eqenvironment{پارسی}{persian} +\eqenvironment{متنراست}{RTL} +\eqenvironment{دستهبندیراست}{RTLitems} +\eqenvironment{شعرسنتی}{traditionalpoem} +\eqenvironment{شعرسنتی*}{traditionalpoem*} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `environments-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/extarticle-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/extarticle-xepersian.def new file mode 100644 index 00000000000..cb2ea3279a4 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/extarticle-xepersian.def @@ -0,0 +1,35 @@ +%% +%% This is file `extarticle-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `extarticle-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{extarticle-xepersian.def}[2010/07/25 v0.1 adaptations for extarticle class] +\renewcommand\thepart {\@tartibi\c@part} +\renewcommand\appendix{\par + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \gdef\thesection{\@harfi\c@section}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `extarticle-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def new file mode 100644 index 00000000000..ca3c0e0eb50 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def @@ -0,0 +1,41 @@ +%% +%% This is file `extbook-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `extbook-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{extbook-xepersian.def}[2010/07/25 v0.1 adaptations for extbook class] +\renewcommand\frontmatter{% + \cleardoublepage + \@mainmatterfalse + \pagenumbering{harfi}} +\renewcommand \thepart {\@tartibi\c@part} +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter} +}%end appendix +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `extbook-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/extrafootnotefeatures-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/extrafootnotefeatures-xepersian.def new file mode 100644 index 00000000000..4f841b3345c --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/extrafootnotefeatures-xepersian.def @@ -0,0 +1,33 @@ +%% +%% This is file `extrafootnotefeatures-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `extrafootnotefeatures-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{extrafootnotefeatures-xepersian.def}[2012/01/01 v0.2 footnote macros for extrafootnotefeatures option of xepersian package] +\renewcommand{\foottextfont}{\footnotesize\if@RTL@footnote\else\latinfont\fi} +\renewcommand{\LTRfoottextfont}{\footnotesize\latinfont} +\renewcommand{\RTLfoottextfont}{\footnotesize\persianfont} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `extrafootnotefeatures-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def new file mode 100644 index 00000000000..548be1d3075 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def @@ -0,0 +1,36 @@ +%% +%% This is file `extreport-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `extreport-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{extreport-xepersian.def}[2010/07/25 v0.1 adaptations for extreport class] +\renewcommand\thepart {\@tartibi\c@part} +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `extreport-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def new file mode 100644 index 00000000000..b74c4519547 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def @@ -0,0 +1,58 @@ +%% +%% This is file `flowfram-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `flowfram-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{flowfram-xepersian.def}[2010/07/25 v0.1 adaptations for flowfram package] +\def\@outputpage{% +\begingroup + \let\protect\noexpand + \@resetactivechars + \global\let\@@if@newlist\if@newlist + \global\@newlistfalse\@parboxrestore + \shipout\vbox{\set@typeset@protect + \aftergroup + \endgroup + \aftergroup + \set@typeset@protect + \reset@font\normalsize\normalsfcodes + \let\label\@gobble + \let\index\@gobble + \let\glossary\@gobble + \baselineskip\z@skip + \lineskip\z@skip + \lineskiplimit\z@ + \vskip\topmargin\moveright\@themargin + \vbox{% + \vskip\headheight + \vskip\headsep + \box\@outputbox + }}% + \global\let\if@newlist\@@if@newlist + \stepcounter{page}% + \setcounter{displayedframe}{0}% + \let\firstmark\botmark} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `flowfram-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def new file mode 100644 index 00000000000..6da5bbf25fd --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def @@ -0,0 +1,121 @@ +%% +%% This is file `footnote-bidi-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `footnote-bidi-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{footnote-bidi-xepersian.def}[2010/07/25 v0.2 footnote macros for xepersian package] + +\long\def\@footnotetext#1{\insert\footins{% + \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \reset@font\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep + \splitmaxdepth \dp\strutbox \floatingpenalty \@MM + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark + }% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}% + \color@endgroup}}% + +\long\def\@RTLfootnotetext#1{\insert\footins{% + \@RTLtrue% + \reset@font\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep + \splitmaxdepth \dp\strutbox \floatingpenalty \@MM + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark + }% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\persianfont #1\@finalstrut\strutbox}% + \color@endgroup}}% + +\long\def\@LTRfootnotetext#1{\insert\footins{% + \@RTLfalse% + \reset@font\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep + \splitmaxdepth \dp\strutbox \floatingpenalty \@MM + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark + }% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\latinfont #1\@finalstrut\strutbox}% + \color@endgroup}}% + +\footdir@temp\footdir@ORG@xepersian@footnotetext\@footnotetext{\if@RTL@footnote R\else L\fi}% +\footdir@temp\footdir@ORG@xepersian@RTLfootnotetext\@RTLfootnotetext{R}% +\footdir@temp\footdir@ORG@xepersian@LTRfootnotetext\@LTRfootnotetext{L}% + +\long\def\@mpfootnotetext#1{% + \ifbidi@autofootnoterule\ifnum\c@mpfootnote=1\if@RTL@footnote\rightfootnoterule\else\leftfootnoterule\fi\fi\fi% + \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \unvbox\@mpfootins + \reset@font\footnotesize + \hsize\columnwidth + \@parboxrestore + \protected@edef\@currentlabel + {\csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}% + \color@endgroup}} + +\long\def\@mpRTLfootnotetext#1{% + \ifbidi@autofootnoterule\ifnum\c@mpfootnote=1\rightfootnoterule\fi\fi% + \global\setbox\@mpfootins\vbox{\@RTLtrue% + \unvbox\@mpfootins + \reset@font\footnotesize + \hsize\columnwidth + \@parboxrestore + \protected@edef\@currentlabel + {\csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\persianfont #1\@finalstrut\strutbox}% + \color@endgroup}} + +\long\def\@mpLTRfootnotetext#1{% + \ifbidi@autofootnoterule\ifnum\c@mpfootnote=1\leftfootnoterule\fi\fi% + \global\setbox\@mpfootins\vbox{\@RTLfalse% + \unvbox\@mpfootins + \reset@font\footnotesize + \hsize\columnwidth + \@parboxrestore + \protected@edef\@currentlabel + {\csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\latinfont #1\@finalstrut\strutbox}% + \color@endgroup}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `footnote-bidi-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/framed-bidi-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/framed-bidi-xepersian.def new file mode 100644 index 00000000000..dc5bc19d321 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/framed-bidi-xepersian.def @@ -0,0 +1,41 @@ +%% +%% This is file `framed-bidi-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `framed-bidi-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{framed-bidi-xepersian.def}[2012/06/05 v0.1 xepersian adaptations for framed package for XeTeX engine] +\renewenvironment{titled-frame}[1]{% + \def\FrameCommand{\fboxsep8pt\fboxrule2pt + \TitleBarFrame{\textbf{#1}}}% + \def\FirstFrameCommand{\fboxsep8pt\fboxrule2pt + \TitleBarFrame[$\if@RTL\blacktriangleleft\else\blacktriangleright\fi$]{\textbf{#1}}}% + \def\MidFrameCommand{\fboxsep8pt\fboxrule2pt + \TitleBarFrame[$\if@RTL\blacktriangleleft\else\blacktriangleright\fi$]{\textbf{#1\ (\if@RTL ادامه\else cont\fi)}}}% + \def\LastFrameCommand{\fboxsep8pt\fboxrule2pt + \TitleBarFrame{\textbf{#1\ (\if@RTL ادامه\else cont\fi)}}}% + \MakeFramed{\advance\hsize-20pt \FrameRestore}}% + {\endMakeFramed} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `framed-bidi-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def new file mode 100644 index 00000000000..0f81f2754cc --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def @@ -0,0 +1,56 @@ +%% +%% This is file `hyperref-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `hyperref-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{hyperref-xepersian.def}[2010/07/25 v0.3 bilingual captions for hyperref package] + \def\equationautorefname{\if@RTL معادله\else Equation\fi}% + \def\footnoteautorefname{\if@RTL زیرنویس\else footnote\fi}% + \def\itemautorefname{\if@RTL فقره\else item\fi}% + \def\figureautorefname{\if@RTL شکل\else Figure\fi}% + \def\tableautorefname{\if@RTL جدول\else Table\fi}% + \def\partautorefname{\if@RTL بخش\else Part\fi}% + \def\appendixautorefname{\if@RTL ضمیمه\else Appendix\fi}% + \def\chapterautorefname{\if@RTL فصل\else chapter\fi}% + \def\sectionautorefname{\if@RTL قسمت\else section\fi}% + \def\subsectionautorefname{\if@RTL زیرقسمت\else subsection\fi}% + \def\subsubsectionautorefname{\if@RTL زیرزیرقسمت\else subsubsection\fi}% + \def\paragraphautorefname{\if@RTL پاراگراف\else paragraph\fi}% + \def\subparagraphautorefname{\if@RTL زیرپاراگراف\else subparagraph\fi}% + \def\FancyVerbLineautorefname{\if@RTL سطر\else line\fi}% + \def\theoremautorefname{\if@RTL قضیه\else Theorem\fi}% + \def\pageautorefname{\if@RTL صفحه\else page\fi}% +\AtBeginDocument{% +\let\HyOrg@appendix\appendix +\def\appendix{% + \ltx@IfUndefined{chapter}% + {\gdef\theHsection{\Alph{section}}}% + {\gdef\theHchapter{\Alph{chapter}}}% + \xdef\Hy@chapapp{\Hy@appendixstring}% + \HyOrg@appendix +} +} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `hyperref-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def new file mode 100644 index 00000000000..69cc0bd8497 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def @@ -0,0 +1,159 @@ +%% +%% This is file `imsproc-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `imsproc-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{imsproc-xepersian.def}[2012/12/12 v0.1 implementation of imsproc class for xepersian package] +\newenvironment{thebibliography}[1]{% + \@bibtitlestyle + \normalfont\bibliofont\labelsep .5em\relax + \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty + \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi + \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}% + \leftmargin\labelwidth \advance\leftmargin\labelsep + \usecounter{enumiv}}% + \sloppy \clubpenalty\@M \widowpenalty\clubpenalty + \sfcode`\.=\@m +}{% + \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}% + \endlist +} +\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi + \columnseprule\z@ \columnsep 35\p@ + \@indextitlestyle + \thispagestyle{plain}% + \let\item\@idxitem + \parindent\z@ \parskip\z@\@plus.3\p@\relax + \if@RTL\raggedleft\else\raggedright\fi + \hyphenpenalty\@M + \footnotesize} +\def\@idxitem{\par\hangindent \if@RTL-\fi2em} +\def\subitem{\par\hangindent \if@RTL-\fi2em\hspace*{1em}} +\def\subsubitem{\par\hangindent \if@RTL-\fi3em\hspace*{2em}} +\renewcommand \thepart {\@tartibi\c@part} +\def\appendix{\par\c@section\z@ \c@subsection\z@ + \let\sectionname\appendixname + \def\thesection{\@harfi\c@section}} +\def\right@footnoterule{% + \hbox to \columnwidth + {\beginR \vbox{\kern-.4\p@ + \hrule\@width 5pc\kern11\p@\kern-\footnotesep}\hfil\endR}} +\def\left@footnoterule{\kern-.4\p@ + \hrule\@width 5pc\kern11\p@\kern-\footnotesep} +\def\@makefnmark{% + \leavevmode + \raise.9ex\hbox{\fontsize\sf@size\z@\normalfont\@thefnmark}% +} + +\long\def\@footnotetext#1{% + \insert\footins{% + \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \normalfont\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}} + +\long\def\@RTLfootnotetext#1{% + \insert\footins{% + \@RTLtrue% + \normalfont\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\persianfont #1\unskip\strut\par}}} + +\long\def\@LTRfootnotetext#1{% + \insert\footins{% + \@RTLfalse% + \normalfont\footnotesize + \interlinepenalty\interfootnotelinepenalty + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\latinfont #1\unskip\strut\par}}} + +\footdir@temp\footdir@ORG@xepersian@imsproc@footnotetext\@footnotetext{\if@RTL@footnote R\else L\fi}% +\footdir@temp\footdir@ORG@xepersian@imsproc@RTLfootnotetext\@RTLfootnotetext{R}% +\footdir@temp\footdir@ORG@xepersian@imsproc@LTRfootnotetext\@LTRfootnotetext{L}% + +\def\part{\@startsection{part}{0}% + \z@{\linespacing\@plus\linespacing}{.5\linespacing}% + {\normalfont\bfseries\if@RTL\raggedleft\else\raggedright\fi}} +\def\@tocline#1#2#3#4#5#6#7{\relax + \ifnum #1>\c@tocdepth % then omit + \else + \par \addpenalty\@secpenalty\addvspace{#2}% + \begingroup \hyphenpenalty\@M + \@ifempty{#4}{% + \@tempdima\csname r@tocindent\number#1\endcsname\relax + }{% + \@tempdima#4\relax + }% + \parindent\z@ \if@RTL\rightskip\else\leftskip\fi#3\relax \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima\relax + \if@RTL\leftskip\else\rightskip\fi\@pnumwidth plus4em \parfillskip-\@pnumwidth + #5\leavevmode\hskip-\@tempdima #6\nobreak\relax + \hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par + \nobreak + \endgroup + \fi} +\renewcommand\thesubsection {\thesection\@SepMark\arabic{subsection}} +\renewcommand\thesubsubsection {\thesubsection \@SepMark\arabic{subsubsection}} +\renewcommand\theparagraph {\thesubsubsection\@SepMark\arabic{paragraph}} +\renewcommand\thesubparagraph {\theparagraph\@SepMark\arabic{subparagraph}} +\def\maketitle{\par + \@topnum\z@ % this prevents figures from falling at the top of page 1 + \@setcopyright + \thispagestyle{firstpage}% this sets first page specifications + \uppercasenonmath\shorttitle + \ifx\@empty\shortauthors \let\shortauthors\shorttitle + \else \andify\shortauthors + \fi + \@maketitle@hook + \begingroup + \@maketitle + \toks@\@xp{\shortauthors}\@temptokena\@xp{\shorttitle}% + \toks4{\def\\{ \ignorespaces}}% defend against questionable usage + \edef\@tempa{% + \@nx\markboth{\the\toks4 + \@nx\MakeUppercase{\the\toks@}}{\the\@temptokena}}% + \@tempa + \endgroup + \c@footnote\z@ + \@cleartopmattertags +} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `imsproc-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def new file mode 100644 index 00000000000..697f3de2fa8 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def @@ -0,0 +1,73 @@ +%% +%% This is file `kashida-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `kashida-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{kashida-xepersian.def}[2010/07/25 v0.2 implementation of Kashida for xepersian package] +\chardef\xepersian@zwj="200D % zero-width joiner +\chardef\xepersian@ksh="0640 % kashida + +\chardef\xepersian@D=10 % dual-joiner class +\chardef\xepersian@L=11 % lam +\chardef\xepersian@R=12 % right-joiner +\chardef\xepersian@A=13 % alef +\chardef\xepersian@V=256 % vowel or other combining mark (to be ignored) + +\def\xepersian@kashida{\xepersian@zwj\nobreak \setbox0=\hbox{\xepersian@ksh}% + \leaders\hrule height\ht0 \hskip0pt plus 0.5em \xepersian@zwj} + +\def\setclass#1#2{\def\theclass{#1}\def\charlist{#2}% + \expandafter\dosetclass\charlist,\end} +\def\dosetclass#1,#2\end{% + \def\test{#1}\def\charlist{#2}% + \ifx\test\empty\let\next\finishsetclass + \else \XeTeXcharclass "\test = \theclass + \let\next\dosetclass \fi + \expandafter\next\charlist,,\end} +\def\finishsetclass#1,,\end{} + +\setclass \xepersian@A {0622,0623,0625,0627} +\setclass \xepersian@R {0624,0629,062F,0630,0631,0632,0648,0698} +\setclass \xepersian@D {0626,0628,062A,062B,062C,062D,062E} +\setclass \xepersian@D {0633,0634,0635,0636,0637,0638,0639,063A} +\setclass \xepersian@D {0640,0641,0642,0643,0645,0646,0647,0649,064A} +\setclass \xepersian@D {067E,0686,06A9,06AF,06CC} +\setclass \xepersian@L {0644} +\setclass \xepersian@V {064B,064C,064D,064E,064F,0650,0651,0652} + +\XeTeXinterchartoks \xepersian@D \xepersian@D = {\xepersian@kashida} +\XeTeXinterchartoks \xepersian@L \xepersian@D = {\xepersian@kashida} +\XeTeXinterchartoks \xepersian@D \xepersian@L = {\xepersian@kashida} +\XeTeXinterchartoks \xepersian@L \xepersian@L = {\xepersian@kashida} +\XeTeXinterchartoks \xepersian@D \xepersian@R = {\xepersian@kashida} +\XeTeXinterchartoks \xepersian@D \xepersian@A = {\xepersian@kashida} +\XeTeXinterchartoks \xepersian@L \xepersian@R = {\xepersian@kashida} +\XeTeXinterchartoks \xepersian@L \xepersian@A = {} + +\newcommand{\KashidaOn}{\XeTeXinterchartokenstate=1} +\newcommand{\KashidaOff}{\XeTeXinterchartokenstate=0} +\KashidaOn +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `kashida-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def new file mode 100644 index 00000000000..0460f4de500 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def @@ -0,0 +1,32 @@ +%% +%% This is file `listings-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `listings-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{listings-xepersian.def}[2010/07/25 v0.2 bilingual captions for listings package] +\def\lstlistingname{\if@RT برنامهٔ\else Listing\fi} +\def\lstlistlistingname{\if@RTL فهرست برنامهها\else Listings\fi} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `listings-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def new file mode 100644 index 00000000000..65d4b23c43f --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def @@ -0,0 +1,56 @@ +%% +%% This is file `loadingorder-bidi-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `loadingorder-bidi-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{loadingorder-bidi-xepersian.def}[2012/01/01 v0.3 making sure that xepersian is the last package loaded] +\bidi@isloaded{algorithmic} +\bidi@isloaded{algorithm} +\bidi@isloaded{backref} +\bidi@isloaded{enumerate} +\bidi@isloaded{tocloft} +\bidi@isloaded{url} +\AtBeginDocument{ + \if@bidi@algorithmicloaded@\else + \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package algorithmic after xepersian package. Please load package algorithmic before xepersian package, and then try to run xelatex on your document again}{}]{algorithmic} + \fi% + \if@bidi@algorithmloaded@\else + \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package algorithm after xepersian package. Please load package algorithm before xepersian package, and then try to run xelatex on your document again}{}]{algorithm} + \fi% + \if@bidi@backrefloaded@\else + \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package backref after xepersian package. Please load package backref before xepersian package, and then try to run xelatex on your document again}{}]{backref} + \fi% + \if@bidi@enumerateloaded@\else + \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package enumerate after xepersian package. Please load package enumerate before xepersian package, and then try to run xelatex on your document again}{}]{enumerate} + \fi% + \if@bidi@tocloftloaded@\else + \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package tocloft after xepersian package. Please load package tocloft before xepersian package, and then try to run xelatex on your document again}{}]{tocloft} + \fi% + \if@bidi@urlloaded@\else + \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package url after xepersian package. Please load package url before xepersian package, and then try to run xelatex on your document again}{}]{url} + \fi% +} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `loadingorder-bidi-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def new file mode 100644 index 00000000000..1f7f77c7142 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def @@ -0,0 +1,109 @@ +%% +%% This is file `localise-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `localise-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{localise-xepersian.def}[2010/07/25 v0.2a Persian localisation of LaTeX2e] +\newcommand{\makezwnjletter}{\catcode`=11\relax} +\makezwnjletter +\newcommand*{\eqcommand}[2]{\if@bidi@csprimitive{#2}{\bidi@csletcs{#1}{#2}}{\bidi@csdefcs{#1}{#2}}} +\newcommand*{\eqenvironment}[2]{\newenvironment{#1}{\csname#2\endcsname}{\csname end#2\endcsname}} +\@ifpackageloaded{keyval}{% +\newcommand*\keyval@eq@alias@key[4][KV]{% + \bidi@csletcs{#1@#2@#3}{#1@#2@#4}% + \bidi@csletcs{#1@#2@#3@default}{#1@#2@#4@default}}% +}{\@ifpackageloaded{xkeyval}{% +\newcommand*\keyval@eq@alias@key[4][KV]{% + \bidi@csletcs{#1@#2@#3}{#1@#2@#4}% + \bidi@csletcs{#1@#2@#3@default}{#1@#2@#4@default}}% +}{}} +\input{commands-ltx.def} +\input{commands-xepersian.def} +\input{environments-ltx.def} +\input{environments-xepersian.def} +\input{messages-localise.def} +\input{misc-localise-xepersian.def} +\input{packages-localise-xepersian.def} +\aliasfontfeature{ExternalLocation}{مکانخارجی} +\aliasfontfeature{ExternalLocation}{مسیر} +\aliasfontfeature{Renderer}{تحویلدهنده} +\aliasfontfeature{BoldFont}{قلمسیاه} +\aliasfontfeature{Language}{زبان} +\aliasfontfeature{Script}{خط} +\aliasfontfeature{UprightFont}{قلمعمودی} +\aliasfontfeature{ItalicFont}{قلمایتالیک} +\aliasfontfeature{BoldItalicFont}{قلمایتالیکسیاه} +\aliasfontfeature{SlantedFont}{قلمخوابیده} +\aliasfontfeature{BoldSlantedFont}{قلمخوابیدهسیاه} +\aliasfontfeature{SmallCapsFont}{قلمکلاهکوچک} +\aliasfontfeature{UprightFeatures}{ویژگیهایقلمعمودی} +\aliasfontfeature{BoldFeatures}{ویژگیهایقلمسیاه} +\aliasfontfeature{ItalicFeatures}{ویژگیهایقلمایتالیک} +\aliasfontfeature{BoldItalicFeatures}{ویژگیهایقلمایتالیکسیاه} +\aliasfontfeature{SlantedFeatures}{ویژگیهایقلمخوابیده} +\aliasfontfeature{BoldSlantedFeatures}{ویژگیهایقلمخوابیدهسیاه} +\aliasfontfeature{SmallCapsFeatures}{ویژگیهایقلمکلاهکوچک} +\aliasfontfeature{SizeFeatures}{ویژگیهایاندازه} +\aliasfontfeature{Scale}{ضریب} +\aliasfontfeature{WordSpace}{فضایکلمه} +\aliasfontfeature{PunctuationSpace}{فضاینقطهگذاری} +\aliasfontfeature{FontAdjustment}{تنظیمقلم} +\aliasfontfeature{LetterSpace}{فضایحرف} +\aliasfontfeature{HyphenChar}{نویسهتیره} +\aliasfontfeature{Color}{رنگ} +\aliasfontfeature{Opacity}{کدری} +\aliasfontfeature{Mapping}{نگاشت} +\aliasfontfeature{Weight}{سنگینی} +\aliasfontfeature{Width}{پهنا} +\aliasfontfeature{OpticalSize}{اندازهچشمی} +\aliasfontfeature{FakeSlant}{خوابیدهتقلبی} +\aliasfontfeature{FakeStretch}{کششتقلبی} +\aliasfontfeature{FakeBold}{سیاهتقلبی} +\aliasfontfeature{AutoFakeSlant}{خوابیدهتقلبیخودکار} +\aliasfontfeature{AutoFakeBold}{سیاهتقلبیخودکار} +\aliasfontfeature{Ligatures}{دویاچندحرفمتصلبههم} +\aliasfontfeature{Alternate}{متناوب} +\aliasfontfeature{Variant}{گوناگون} +\aliasfontfeature{Variant}{مجموعهسبکی} +\aliasfontfeature{CharacterVariant}{گوناگونینویسه} +\aliasfontfeature{ScriptStyle}{سبکاسکریپت} +\aliasfontfeature{ScriptScriptStyle}{سبکاسکریپتاسکریپت} +\aliasfontfeature{Style}{سبک} +\aliasfontfeature{Annotation}{یادداشت} +\aliasfontfeature{RawFeature}{ویژگیهایکال} +\aliasfontfeature{CharacterWidth}{پهناینویسه} +\aliasfontfeature{Numbers}{ارقام} +\aliasfontfeature{Contextuals}{متنی} +\aliasfontfeature{Diacritics}{تفکیککنندهها} +\aliasfontfeature{Letters}{حروف} +\aliasfontfeature{Kerning}{دوری} +\aliasfontfeature{VerticalPosition}{موقعیتعمودی} +\aliasfontfeature{Fractions}{کسر} +\aliasfontfeatureoption{Language}{Default}{پیشفرض} +\aliasfontfeatureoption{Language}{Parsi}{پارسی} +\aliasfontfeatureoption{Script}{Parsi}{پارسی} +\aliasfontfeatureoption{Script}{Latin}{لاتین} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `localise-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def new file mode 100644 index 00000000000..c09fa3bb924 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def @@ -0,0 +1,41 @@ +%% +%% This is file `memoir-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `memoir-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{memoir-xepersian.def}[2010/07/25 v0.1 adaptations for memoir class] +\renewcommand{\@memfront}{% + \@smemfront\pagenumbering{harfi}} +\renewcommand{\setthesection}{\thechapter\@SepMark\harfi{section}} +\renewcommand*{\thebook}{\@tartibi\c@book} +\renewcommand*{\thepart}{\@tartibi\c@part} +\renewcommand{\appendix}{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter}% + \anappendixtrue} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `memoir-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/messages-localise.def b/Master/texmf-dist/tex/xelatex/xepersian/messages-localise.def new file mode 100644 index 00000000000..fa38d86b626 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/messages-localise.def @@ -0,0 +1,30 @@ +%% +%% This is file `messages-localise.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `messages-localise.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\آمادهسازیپرونده{messages-localise.def}[2011/03/01 v0.1 localising LaTeX2e messages] +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `messages-localise.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def new file mode 100644 index 00000000000..f9127e532d1 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def @@ -0,0 +1,39 @@ +%% +%% This is file `minitoc-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `minitoc-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{minitoc-xepersian.def}[2010/07/25 v0.1 bilingual captions for minitoc package] +\def\ptctitle{\if@RTL فهرست مطالب\else Table of Contents\fi}% +\def\plftitle{\if@RTL فهرست تصاویر\else List of Figures\fi}% +\def\plttitle{\if@RTL فهرست جداول\else List of Tables\fi}% +\def\mtctitle{\if@RTL عناوین\else Contents\fi}% +\def\mlftitle{\if@RTL اشکال\else Figures\fi}% +\def\mlttitle{\if@RTL جداول\else Tables\fi}% +\def\stctitle{\if@RTL عناوین\else Contents\fi}% +\def\slftitle{\if@RTL اشکال\else Figures\fi}% +\def\slttitle{\if@RTL جداول\else Tables\fi}% +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `minitoc-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/misc-localise-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/misc-localise-xepersian.def new file mode 100644 index 00000000000..01933c2b55d --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/misc-localise-xepersian.def @@ -0,0 +1,397 @@ +%% +%% This is file `misc-localise-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `misc-localise-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{misc-localise-xepersian.def}[2012/01/01 v0.2 miscellaneous Persian localisation of LaTeX2e] +\تر\گرجدید#1{% +\شمار@\نویسهویژه \نویسهویژه\من@ا + \بگذار#1\گرنادرست +\@گر#1\گردرست +\@گر#1\گرنادرست +\نویسهویژه\شمار@} +\تر\@گر#1#2{% +\بگسترپساز\تر\نامفرمان\بگسترپساز\@خورحریصانهدو\رشته#1% +\بگسترپساز\@خورحریصانهدو\رشته#2\پایاننامفرمان +{\بگذار#1#2}} +\بگذار\تعریفنشده\undefined + +\تر\حلقه#1\ازنو{\تر\تکرارکن{#1\راحت\بگسترپساز\تکرارکن\رگ}% + \تکرارکن \بگذار\تکرارکن\راحت} +\بگذار\ازنو\رگ + +\بلند\تر \حلقه #1\ازنو{% + \تر\تکرارکن{#1\راحت % \راحت اضافی + \بگسترپساز\تکرارکن\رگ + }% + \تکرارکن + \بگذار\تکرارکن\راحت +} +\بگذار\ازنو=\رگ + +\@ifdefinitionfileloaded{xetex-bidi}{% +\def\@xfloat #1[#2]{% + \@nodocument + \def \@captype {#1}% + \def \@fps {#2}% + \@onelevel@sanitize \@fps + \def \reserved@b {!}% + \ifx \reserved@b \@fps + \@fpsadddefault + \else + \ifx \@fps \@empty + \@fpsadddefault + \fi + \fi + \ifhmode + \@bsphack + \@floatpenalty -\@Mii + \else + \@floatpenalty-\@Miii + \fi + \ifinner + \@parmoderr\@floatpenalty\z@ + \else + \@next\@currbox\@freelist + {% + \@tempcnta \sixt@@n + \expandafter \@tfor \expandafter \reserved@a + \expandafter :\expandafter =\@fps + \do + {% + \if \reserved@a h% + \ifodd \@tempcnta + \else + \advance \@tempcnta \@ne + \fi + \fi + \if \reserved@a ا% + \ifodd \@tempcnta + \else + \advance \@tempcnta \@ne + \fi + \fi + \if \reserved@a t% + \@setfpsbit \tw@ + \fi + \if \reserved@a ب% + \@setfpsbit \tw@ + \fi + \if \reserved@a b% + \@setfpsbit 4% + \fi + \if \reserved@a ز% + \@setfpsbit 4% + \fi + \if \reserved@a p% + \@setfpsbit 8% + \fi + \if \reserved@a ص% + \@setfpsbit 8% + \fi + \if \reserved@a !% + \ifnum \@tempcnta>15 + \advance\@tempcnta -\sixt@@n\relax + \fi + \fi + }% + \@tempcntb \csname ftype@\@captype \endcsname + \multiply \@tempcntb \@xxxii + \advance \@tempcnta \@tempcntb + \global \count\@currbox \@tempcnta + }% + \@fltovf + \fi + \global \setbox\@currbox + \color@vbox + \normalcolor + \vbox \bgroup + \hsize\columnwidth + \@parboxrestore + \@floatboxreset +} +\let\bm@و\bm@c +\let\bm@چ\bm@l +\let\bm@ر\bm@r +\let\bm@ز\bm@b +\let\bm@ب\bm@t +\let\bm@ک\bm@s +\long\def\@iiiparbox#1#2[#3]#4#5{% + \leavevmode + \@pboxswfalse + \if@RTLtab\@bidi@list@minipage@parbox@not@nobtrue\fi + \if@RTL\if#1t\@bidi@list@minipage@parboxtrue\else\if#1b\@bidi@list@minipage@parboxtrue\else\if#1ز\@bidi@list@minipage@parboxtrue\else\if#1ب\@bidi@list@minipage@parboxtrue\fi\fi\fi\fi\fi + \setlength\@tempdima{#4}% + \@begin@tempboxa\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}% + \ifx\relax#2\else + \setlength\@tempdimb{#2}% + \edef\@parboxto{to\the\@tempdimb}% + \fi + \if#1b\vbox + \else\if#1ز\vbox + \else\if #1t\vtop + \else\if #1ب\vtop + \else\ifmmode\vcenter + \else\@pboxswtrue $\vcenter + \fi\fi\fi\fi\fi + \@parboxto{\let\hss\vss\let\unhbox\unvbox + \csname bm@#3\endcsname}% + \if@pboxsw \m@th$\fi + \@end@tempboxa} +\def\@iiiminipage#1#2[#3]#4{% + \leavevmode + \@pboxswfalse + \if@RTLtab\@bidi@list@minipage@parbox@not@nobtrue\fi + \if@RTL\if#1t\@bidi@list@minipage@parboxtrue\else\if#1b\@bidi@list@minipage@parboxtrue\else\if#1ز\@bidi@list@minipage@parboxtrue\else\if#1ب\@bidi@list@minipage@parboxtrue\fi\fi\fi\fi\fi + \setlength\@tempdima{#4}% + \def\@mpargs{{#1}{#2}[#3]{#4}}% + \setbox\@tempboxa\vbox\bgroup + \color@begingroup + \hsize\@tempdima + \textwidth\hsize \columnwidth\hsize + \@parboxrestore + \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@ + \let\@footnotetext\@mpfootnotetext + \let\@LTRfootnotetext\@mpLTRfootnotetext + \let\@RTLfootnotetext\@mpRTLfootnotetext + \let\@listdepth\@mplistdepth \@mplistdepth\z@ + \@minipagerestore + \@setminipage} +\def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4 \else + \ifnum \@lastchclass=3 5 \else + \z@ \if #1c\@chnum \z@ \else + \if #1و\@chnum \z@ \else + \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else + \if \if@RTLtab#1ر\else#1چ\fi\@chnum \@ne \else + \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else + \if \if@RTLtab#1چ\else#1ر\fi\@chnum \tw@ \else + \@chclass \if #1|\@ne \else + \if #1@\tw@ \else + \if #1p3 \else + \if #1پ3 \else \z@ \@preamerr 0\fi + \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi +\fi}% +}{} +\@ifdefinitionfileloaded{array-xetex-bidi}{% +\def\@testpach{\@chclass + \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else + \ifnum \@lastchclass=7 5 \else + \ifnum \@lastchclass=8 \tw@ \else + \ifnum \@lastchclass=9 \thr@@ + \else \z@ + \ifnum \@lastchclass = 10 \else + \edef\@nextchar{\expandafter\string\@nextchar}% + \@chnum + \if \@nextchar c\z@ \else + \if \@nextchar و\z@ \else + \if \@nextchar \if@RTLtab r\else l\fi\@ne \else + \if \@nextchar \if@RTLtab ر\else چ\fi\@ne \else + \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else + \if \@nextchar \if@RTLtab چ\else ر\fi\tw@ \else + \z@ \@chclass + \if\@nextchar |\@ne \else + \if \@nextchar !6 \else + \if \@nextchar @7 \else + \if \@nextchar <8 \else + \if \@nextchar >9 \else + 10 + \@chnum + \if \@nextchar m\thr@@\else + \if \@nextchar م\thr@@\else + \if \@nextchar p4 \else + \if \@nextchar پ4 \else + \if \@nextchar b5 \else + \if \@nextchar ز5 \else + \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi \fi \fi \fi + \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}% +}{} +\@ifdefinitionfileloaded{arydshln-xetex-bidi}{ +\ifadl@usingarypkg +\def\@testpach{\@chclass + \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else + \ifnum \@lastchclass=7 5 \else + \ifnum \@lastchclass=8 \tw@ \else + \ifnum \@lastchclass=9 \thr@@ + \else \z@ + \ifnum \@lastchclass = 10 \else + \edef\@nextchar{\expandafter\string\@nextchar}% + \@chnum + \if \@nextchar c\z@ \else + \if \@nextchar و\z@ \else + \if \@nextchar \if@RTLtab r\else l\fi\@ne \else + \if \@nextchar \if@RTLtab ر\else چ\fi\@ne \else + \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else + \if \@nextchar \if@RTLtab چ\else ر\fi\tw@ \else + \z@ \@chclass + \if\@nextchar |\@ne \let\@arrayrule\adl@arrayrule \else + \if\@nextchar :\@ne \let\@arrayrule\adl@arraydashrule \else + \if\@nextchar ;\@ne \let\@arrayrule\adl@argarraydashrule \else + \if \@nextchar !6 \else + \if \@nextchar @7 \else + \if \@nextchar <8 \else + \if \@nextchar >9 \else + 10 + \@chnum + \if \@nextchar m\thr@@\else + \if \@nextchar م\thr@@\else + \if \@nextchar p4 \else + \if \@nextchar پ4 \else + \if \@nextchar b5 \else + \if \@nextchar ز5 \else + \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi \fi \fi \fi \fi \fi + \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi} + +\def\@classz{\@classx + \@tempcnta \count@ + \prepnext@tok + \@addtopreamble{\ifcase \@chnum + \hfil + \adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or + \hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or + \hfil\hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\or + \setbox\adl@box\hbox \adl@startmbox{\@nextchar}\insert@column + \adl@endmbox\or + \setbox\adl@box\vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or + \setbox\adl@box\vbox \@startpbox{\@nextchar}\insert@column \@endpbox + \fi}\prepnext@tok} +\def\adl@class@start{4} +\def\adl@class@iiiorvii{7} + +\else +\def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4\relax \else + \ifnum \@lastchclass=\thr@@ 5\relax \else + \z@ \if #1c\@chnum \z@ \else + \if #1و\@chnum\z@ \else + \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else + \if \if@RTLtab#1ر\else#1چ\fi\@chnum \@ne \else + \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else + \if \if@RTLtab#1چ\else#1ر\fi\@chnum \tw@ \else + \@chclass + \if #1|\@ne \let\@arrayrule\adl@arrayrule \else + \if #1:\@ne \let\@arrayrule\adl@arraydashrule \else + \if #1;\@ne \let\@arrayrule\adl@argarraydashrule \else + \if #1@\tw@ \else + \if #1p\thr@@ \else + \if #1پ\thr@@ \else\z@ \@preamerr 0\fi + \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi} + +\def\@arrayclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or + \or \or \@addamp \or + \@acolampacol \or \@firstampfalse \@acol \fi + \edef\@preamble{\@preamble + \ifcase \@chnum + \hfil\adl@putlrc{$\relax\@sharp$}\hfil + \or \adl@putlrc{$\relax\@sharp$}\hfil + \or \hfil\adl@putlrc{$\relax\@sharp$}\fi}} +\def\@tabclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or + \or \or \@addamp \or + \@acolampacol \or \@firstampfalse \@acol \fi + \edef\@preamble{\@preamble + \ifcase \@chnum + \hfil\adl@putlrc{\@sharp\unskip}\hfil + \or \adl@putlrc{\@sharp\unskip}\hfil + \or \hfil\hskip\z@ \adl@putlrc{\@sharp\unskip}\fi}} +\def\adl@class@start{6} +\def\adl@class@iiiorvii{3} +\fi +}{} +\@ifdefinitionfileloaded{tabulary-xetex-bidi}{% +\def\@testpach{\@chclass + \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else + \ifnum \@lastchclass=7 5 \else + \ifnum \@lastchclass=8 \tw@ \else + \ifnum \@lastchclass=9 \thr@@ + \else \z@ + \ifnum \@lastchclass = 10 \else + \edef\@nextchar{\expandafter\string\@nextchar}% + \@chnum + \if \@nextchar c\z@ \else + \if \@nextchar و\z@ \else + \if \@nextchar \if@RTLtab r\else l\fi\@ne \else + \if \@nextchar \if@RTLtab ر\else چ\fi\@ne \else + \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else + \if \@nextchar \if@RTLtab چ\else ر\fi\tw@ \else + \if \@nextchar C7 \else + \if \@nextchar س7 \else + \if \@nextchar L8 \else + \if \@nextchar ف8 \else + \if \@nextchar R9 \else + \if \@nextchar ا9 \else + \if \@nextchar J10 \else + \if \@nextchar ت10 \else + \z@ \@chclass + \if\@nextchar |\@ne \else + \if \@nextchar !6 \else + \if \@nextchar @7 \else + \if \@nextchar <8 \else + \if \@nextchar >9 \else + 10 + \@chnum + \if \@nextchar m\thr@@\else + \if \@nextchar م\thr@@\else + \if \@nextchar p4 \else + \if \@nextcharپ4 \else + \if \@nextchar b5 \else + \if \@nextchar ز5 \else + \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi\fi \fi \fi\fi \fi \fi \fi \fi \fi \fi \fi \fi + \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}% +}{} +\@ifdefinitionfileloaded{float-xetex-bidi}{% +\let\@float@Hx\@xfloat +\def\@xfloat#1[{\@ifnextchar{H}{\@float@HH{#1}[}{\@ifnextchar{آ}{\@float@آآ{#1}[}{\@float@Hx{#1}[}}} +\def\@float@HH#1[H]{% + \expandafter\let\csname end#1\endcsname\float@endH + \let\@currbox\float@box + \def\@captype{#1}\setbox\@floatcapt=\vbox{}% + \expandafter\ifx\csname fst@#1\endcsname\relax + \@flstylefalse\else\@flstyletrue\fi + \setbox\@currbox\color@vbox\normalcolor + \vbox\bgroup \hsize\columnwidth \@parboxrestore + \@floatboxreset \@setnobreak + \ignorespaces} +\def\@float@آآ#1[آ]{% + \expandafter\let\csname end#1\endcsname\float@endH + \let\@currbox\float@box + \def\@captype{#1}\setbox\@floatcapt=\vbox{}% + \expandafter\ifx\csname fst@#1\endcsname\relax + \@flstylefalse\else\@flstyletrue\fi + \setbox\@currbox\color@vbox\normalcolor + \vbox\bgroup \hsize\columnwidth \@parboxrestore + \@floatboxreset \@setnobreak + \ignorespaces} +}{} +\begingroup \catcode `|=0 \catcode `[= 1 +\catcode`]=2 \catcode `\{=12 \catcode `\}=12 +\catcode`\\=12 |gdef|@x@xepersian@localize@verbatim#1\پایان{همانطورکههست}[#1|پایان[همانطورکههست]] +|gdef|@sx@xepersian@localize@verbatim#1\پایان{همانطورکههست*}[#1|پایان[همانطورکههست*]] +|endgroup +\def\همانطورکههست{\@verbatim \frenchspacing\@vobeyspaces \@x@xepersian@localize@verbatim} +\def\endهمانطورکههست{\if@newlist \leavevmode\fi\endtrivlist} +\ExplSyntaxOn +\AtBeginDocument{\@namedef{همانطورکههست*}{\@verbatim \fontspec_print_visible_spaces: \@sx@xepersian@localize@verbatim}} +\ExplSyntaxOff +\expandafter\let\csname endهمانطورکههست*\endcsname =\endهمانطورکههست +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `misc-localise-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/natbib-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/natbib-xepersian.def new file mode 100644 index 00000000000..2ab3a2b41a2 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/natbib-xepersian.def @@ -0,0 +1,244 @@ +%% +%% This is file `natbib-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `natbib-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{natbib-xepersian.def}[2011/08/01 v0.1 adaptations for natbib package] +\renewcommand\NAT@set@cites{% + \ifNAT@numbers + \ifNAT@super \let\@cite\NAT@citesuper + \def\NAT@mbox##1{\unskip\nobreak\textsuperscript{##1}}% + \let\citeyearpar=\citeyear + \let\NAT@space\relax + \def\NAT@super@kern{\kern\p@}% + \else + \let\NAT@mbox=\mbox + \let\@cite\NAT@citenum + \let\NAT@space\NAT@spacechar + \let\NAT@super@kern\relax + \fi + \let\@citex\NAT@citexnum + \let\@Latincitex\NAT@Latin@citexnum + \let\@biblabel\NAT@biblabelnum + \let\@bibsetup\NAT@bibsetnum + \renewcommand\NAT@idxtxt{\NAT@name\NAT@spacechar\NAT@open\NAT@num\NAT@close}% + \def\natexlab##1{}% + \def\NAT@penalty{\penalty\@m}% + \else + \let\@cite\NAT@cite + \let\@citex\NAT@citex + \let\@Latincitex\NAT@Latin@citex + \let\@biblabel\NAT@biblabel + \let\@bibsetup\NAT@bibsetup + \let\NAT@space\NAT@spacechar + \let\NAT@penalty\@empty + \renewcommand\NAT@idxtxt{\NAT@name\NAT@spacechar\NAT@open\NAT@date\NAT@close}% + \def\natexlab##1{##1}% + \fi} +\newcommand\NAT@Latin@citex{} +\def\NAT@Latin@citex% + [#1][#2]#3{% + \NAT@reset@parser + \NAT@sort@cites{#3}% + \NAT@reset@citea + \@cite{\lr{\let\NAT@nm\@empty\let\NAT@year\@empty + \@for\@citeb:=\NAT@cite@list\do + {\@safe@activestrue + \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}% + \@safe@activesfalse + \@ifundefined{b@\@citeb\@extra@b@citeb}{\@citea% + {\reset@font\bfseries ?}\NAT@citeundefined + \PackageWarning{natbib}% + {Citation `\@citeb' on page \thepage \space undefined}\def\NAT@date{}}% + {\let\NAT@last@nm=\NAT@nm\let\NAT@last@yr=\NAT@year + \NAT@parse{\@citeb}% + \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{% + \let\NAT@name=\NAT@all@names + \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}% + \fi + \ifNAT@full\let\NAT@nm\NAT@all@names\else + \let\NAT@nm\NAT@name\fi + \ifNAT@swa\ifcase\NAT@ctype + \if\relax\NAT@date\relax + \@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}\NAT@date}% + \else + \ifx\NAT@last@nm\NAT@nm\NAT@yrsep + \ifx\NAT@last@yr\NAT@year + \def\NAT@temp{{?}}% + \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}% + {Multiple citation on page \thepage: same authors and + year\MessageBreak without distinguishing extra + letter,\MessageBreak appears as question mark}\fi + \NAT@hyper@{\NAT@exlab}% + \else\unskip\NAT@spacechar + \NAT@hyper@{\NAT@date}% + \fi + \else + \@citea\NAT@hyper@{% + \NAT@nmfmt{\NAT@nm}% + \hyper@natlinkbreak{% + \NAT@aysep\NAT@spacechar}{\@citeb\@extra@b@citeb + }% + \NAT@date + }% + \fi + \fi + \or\@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}% + \or\@citea\NAT@hyper@{\NAT@date}% + \or\@citea\NAT@hyper@{\NAT@alias}% + \fi \NAT@def@citea + \else + \ifcase\NAT@ctype + \if\relax\NAT@date\relax + \@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}% + \else + \ifx\NAT@last@nm\NAT@nm\NAT@yrsep + \ifx\NAT@last@yr\NAT@year + \def\NAT@temp{{?}}% + \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}% + {Multiple citation on page \thepage: same authors and + year\MessageBreak without distinguishing extra + letter,\MessageBreak appears as question mark}\fi + \NAT@hyper@{\NAT@exlab}% + \else + \unskip\NAT@spacechar + \NAT@hyper@{\NAT@date}% + \fi + \else + \@citea\NAT@hyper@{% + \NAT@nmfmt{\NAT@nm}% + \hyper@natlinkbreak{\NAT@spacechar\NAT@@open\if*#1*\else#1\NAT@spacechar\fi}% + {\@citeb\@extra@b@citeb}% + \NAT@date + }% + \fi + \fi + \or\@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}% + \or\@citea\NAT@hyper@{\NAT@date}% + \or\@citea\NAT@hyper@{\NAT@alias}% + \fi + \if\relax\NAT@date\relax + \NAT@def@citea + \else + \NAT@def@citea@close + \fi + \fi + }}\ifNAT@swa\else\if*#2*\else\NAT@cmt#2\fi + \if\relax\NAT@date\relax\else\NAT@@close\fi\fi}}{#1}{#2}} +\newcommand\NAT@Latin@citexnum{} +\def\NAT@Latin@citexnum[#1][#2]#3{% + \NAT@reset@parser + \NAT@sort@cites{#3}% + \NAT@reset@citea + \@cite{\lr{\def\NAT@num{-1}\let\NAT@last@yr\relax\let\NAT@nm\@empty + \@for\@citeb:=\NAT@cite@list\do + {\@safe@activestrue + \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}% + \@safe@activesfalse + \@ifundefined{b@\@citeb\@extra@b@citeb}{% + {\reset@font\bfseries?} + \NAT@citeundefined\PackageWarning{natbib}% + {Citation `\@citeb' on page \thepage \space undefined}}% + {\let\NAT@last@num\NAT@num\let\NAT@last@nm\NAT@nm + \NAT@parse{\@citeb}% + \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{% + \let\NAT@name=\NAT@all@names + \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}% + \fi + \ifNAT@full\let\NAT@nm\NAT@all@names\else + \let\NAT@nm\NAT@name\fi + \ifNAT@swa + \@ifnum{\NAT@ctype>\@ne}{% + \@citea + \NAT@hyper@{\@ifnum{\NAT@ctype=\tw@}{\NAT@test{\NAT@ctype}}{\NAT@alias}}% + }{% + \@ifnum{\NAT@cmprs>\z@}{% + \NAT@ifcat@num\NAT@num + {\let\NAT@nm=\NAT@num}% + {\def\NAT@nm{-2}}% + \NAT@ifcat@num\NAT@last@num + {\@tempcnta=\NAT@last@num\relax}% + {\@tempcnta\m@ne}% + \@ifnum{\NAT@nm=\@tempcnta}{% + \@ifnum{\NAT@merge>\@ne}{}{\NAT@last@yr@mbox}% + }{% + \advance\@tempcnta by\@ne + \@ifnum{\NAT@nm=\@tempcnta}{% + \ifx\NAT@last@yr\relax + \def@NAT@last@yr{\@citea}% + \else + \def@NAT@last@yr{--\NAT@penalty}% + \fi + }{% + \NAT@last@yr@mbox + }% + }% + }{% + \@tempswatrue + \@ifnum{\NAT@merge>\@ne}{\@ifnum{\NAT@last@num=\NAT@num\relax}{\@tempswafalse}{}}{}% + \if@tempswa\NAT@citea@mbox\fi + }% + }% + \NAT@def@citea + \else + \ifcase\NAT@ctype + \ifx\NAT@last@nm\NAT@nm \NAT@yrsep\NAT@penalty\NAT@space\else + \@citea \NAT@test{\@ne}\NAT@spacechar\NAT@mbox{\NAT@super@kern\NAT@@open}% + \fi + \if*#1*\else#1\NAT@spacechar\fi + \NAT@mbox{\NAT@hyper@{{\citenumfont{\NAT@num}}}}% + \NAT@def@citea@box + \or + \NAT@hyper@citea@space{\NAT@test{\NAT@ctype}}% + \or + \NAT@hyper@citea@space{\NAT@test{\NAT@ctype}}% + \or + \NAT@hyper@citea@space\NAT@alias + \fi + \fi + }% + }% + \@ifnum{\NAT@cmprs>\z@}{\NAT@last@yr}{}% + \ifNAT@swa\else + \@ifnum{\NAT@ctype=\z@}{% + \if*#2*\else\NAT@cmt#2\fi + }{}% + \NAT@mbox{\NAT@@close}% + \fi + }}{#1}{#2}% +}% +\AtBeginDocument{\NAT@set@cites} +\DeclareRobustCommand\Latincite + {\begingroup\let\NAT@ctype\z@\NAT@partrue\NAT@swatrue + \@ifstar{\NAT@fulltrue\NAT@Latin@cites}{\NAT@fullfalse\NAT@Latin@cites}} +\newcommand\NAT@Latin@cites{\@ifnextchar [{\NAT@@Latin@@citetp}{% + \ifNAT@numbers\else + \NAT@swafalse + \fi + \NAT@@Latin@@citetp[]}} +\newcommand\NAT@@Latin@@citetp{} +\def\NAT@@Latin@@citetp[#1]{\@ifnextchar[{\@Latincitex[#1]}{\@Latincitex[][#1]}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `natbib-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/packages-localise-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/packages-localise-xepersian.def new file mode 100644 index 00000000000..8ecd1c94894 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/packages-localise-xepersian.def @@ -0,0 +1,177 @@ +%% +%% This is file `packages-localise-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `packages-localise-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\آمادهسازیپرونده{packages-localise-xepersian.def}[2011/03/01 v0.1 localising LaTeX2e Packages] +\@گرسبکفراخوانیشده{color}{\ورودی{color-localise.def}}{} +\@ifpackageloaded{multicol}{% +\newenvironment{چندستونیها}{\begin{multicols}}{\end{multicols}}% +\newenvironment{چندستونیها*}{\begin{multicols*}}{\end{multicols*}}% +}{} +\@ifpackageloaded{verbatim}{% +\begingroup + \vrb@catcodes + \lccode`\!=`\\ \lccode`\[=`\{ \lccode`\]=`\} + \catcode`\~=\active \lccode`\~=`\^^M + \lccode`\C=`\C + \lowercase{\endgroup + \def\xepersian@localize@verbatim@start#1{% + \verbatim@startline + \if\noexpand#1\noexpand~% + \let\next\xepersian@localize@verbatim@ + \else \def\next{\xepersian@localize@verbatim@#1}\fi + \next}% + \def\xepersian@localize@verbatim@#1~{\xepersian@localize@verbatim@@#1!پایان\@nil}% + \def\xepersian@localize@verbatim@@#1!پایان{% + \verbatim@addtoline{#1}% + \futurelet\next\xepersian@localize@verbatim@@@}% + \def\xepersian@localize@verbatim@@@#1\@nil{% + \ifx\next\@nil + \verbatim@processline + \verbatim@startline + \let\next\xepersian@localize@verbatim@ + \else + \def\@tempa##1!پایان\@nil{##1}% + \@temptokena{!پایان}% + \def\next{\expandafter\verbatim@test\@tempa#1\@nil~}% + \fi \next}% + \def\verbatim@test#1{% + \let\next\verbatim@test + \if\noexpand#1\noexpand~% + \expandafter\verbatim@addtoline + \expandafter{\the\@temptokena}% + \verbatim@processline + \verbatim@startline + \let\next\xepersian@localize@verbatim@ + \else \if\noexpand#1 + \@temptokena\expandafter{\the\@temptokena#1}% + \else \if\noexpand#1\noexpand[% + \let\@tempc\@empty + \let\next\verbatim@testend + \else + \expandafter\verbatim@addtoline + \expandafter{\the\@temptokena}% + \def\next{\xepersian@localize@verbatim@#1}% + \fi\fi\fi + \next}% + \def\verbatim@testend#1{% + \if\noexpand#1\noexpand~% + \expandafter\verbatim@addtoline + \expandafter{\the\@temptokena[}% + \expandafter\verbatim@addtoline + \expandafter{\@tempc}% + \verbatim@processline + \verbatim@startline + \let\next\xepersian@localize@verbatim@ + \else\if\noexpand#1\noexpand]% + \let\next\verbatim@@testend + \else\if\noexpand#1\noexpand!% + \expandafter\verbatim@addtoline + \expandafter{\the\@temptokena[}% + \expandafter\verbatim@addtoline + \expandafter{\@tempc}% + \def\next{\xepersian@localize@verbatim@!}% + \else \expandafter\def\expandafter\@tempc\expandafter + {\@tempc#1}\fi\fi\fi + \next}% + \def\verbatim@@testend{% + \ifx\@tempc\@currenvir + \verbatim@finish + \edef\next{\noexpand\end{\@currenvir}% + \noexpand\verbatim@rescan{\@currenvir}}% + \else + \expandafter\verbatim@addtoline + \expandafter{\the\@temptokena[}% + \expandafter\verbatim@addtoline + \expandafter{\@tempc]}% + \let\next\xepersian@localize@verbatim@ + \fi + \next}% + \def\verbatim@rescan#1#2~{\if\noexpand~\noexpand#2~\else + \@warning{Characters dropped after `\string\end{#1}'}\fi}}% +\def\همانطورکههست{\begingroup\@verbatim \frenchspacing\@vobeyspaces + \xepersian@localize@verbatim@start} +\@namedef{همانطورکههست*}{\begingroup\@verbatim\xepersian@localize@verbatim@start} +\def\endهمانطورکههست{\endtrivlist\endgroup\@doendpe} +\expandafter\let\csname endهمانطورکههست*\endcsname =\endهمانطورکههست +}{} +\ExplSyntaxOn +\AtBeginDocument{ + \xepersian_localize_patch_verbatim: +} +\cs_set:Npn \xepersian_localize_patch_verbatim: { + \@ifpackageloaded{verbatim}{ + \cs_set:cpn {همانطورکههست*} { + \group_begin: \@verbatim \fontspec_print_visible_spaces: \xepersian@localize@verbatim@start + } + }{ + } +} +\ExplSyntaxOff +\@ifpackageloaded{graphicx}{% +\def\Gin@boolkey#1#2{% +\expandafter\@ifdefinable \csname Gin@#2درست\endcsname{% +\expandafter\let\csname Gin@#2درست\expandafter\endcsname\csname Gin@#2true\endcsname}% +\expandafter\@ifdefinable \csname Gin@#2نادرست\endcsname{% +\expandafter\let\csname Gin@#2نادرست\expandafter\endcsname\csname Gin@#2false\endcsname}% + \csname Gin@#2\ifx\relax#1\relax true\else#1\fi\endcsname} +\define@key{Grot}{origin}[c]{% + \@tfor\@tempa:=#1\do{% + \if l\@tempa \Grot@x\z@\else + \if چ\@tempa \Grot@x\z@\else + \if r\@tempa \Grot@x\width\else + \if ر\@tempa \Grot@x\width\else + \if t\@tempa \Grot@y\height\else + \if ب\@tempa \Grot@y\height\else + \if b\@tempa \Grot@y-\depth\else + \if ز\@tempa \Grot@y-\depth\else + \if B\@tempa \Grot@y\z@\else + \if ک\@tempa \Grot@y\z@\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}} +\معادل@کلید{Gin}{پیشنویس}{draft} +\معادل@کلید{Gin}{مبدا}{origin} +\معادل@کلید{Grot}{مبدا}{origin} +\معادل@کلید{Gin}{بیاضافه}{clip} +\معادل@کلید{Gin}{حفظتناسب}{keepaspectratio} +\معادل@کلید{Gin}{پهنایطبیعی}{natwidth} +\معادل@کلید{Gin}{بلندایطبیعی}{natheight} +\معادل@کلید{Gin}{مختصات}{bb} +\معادل@کلید{Gin}{محدودهنمایش}{viewport} +\معادل@کلید{Gin}{حذفاطراف}{trim} +\معادل@کلید{Gin}{زاویه}{angle} +\معادل@کلید{Gin}{پهنا}{width} +\معادل@کلید{Gin}{بلندا}{height} +\معادل@کلید{Gin}{بلندایکل}{totalheight} +\معادل@کلید{Gin}{ضریب}{scale} +\معادل@کلید{Gin}{نوع}{type} +\معادل@کلید{Gin}{پسوند}{ext} +\معادل@کلید{Gin}{خواندنی}{read} +\معادل@کلید{Gin}{فرمان}{command} +\معادل@کلید{Grot}{طول}{x} +\معادل@کلید{Grot}{عرض}{y} +\معادل@کلید{Grot}{واحد}{units} +}{} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `packages-localise-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/rapport1-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/rapport1-xepersian.def new file mode 100644 index 00000000000..b104e595e5c --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/rapport1-xepersian.def @@ -0,0 +1,36 @@ +%% +%% This is file `rapport1-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `rapport1-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{rapport1-xepersian.def}[2010/07/25 v0.1 adaptations for rapport1 class] +\renewcommand*\thepart{\@tartibi\c@part} +\renewcommand*\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `rapport1-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def new file mode 100644 index 00000000000..1f9e9c5856e --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def @@ -0,0 +1,36 @@ +%% +%% This is file `rapport3-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `rapport3-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{rapport3-xepersian.def}[2010/07/25 v0.2 adaptations for rapport3 class] +\renewcommand*\thepart{\@tartibi\c@part} +\renewcommand*\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `rapport3-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def new file mode 100644 index 00000000000..36c34029e8a --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def @@ -0,0 +1,37 @@ +%% +%% This is file `refrep-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `refrep-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{refrep-xepersian.def}[2010/07/25 v0.2 adaptations for refrep class] +\renewcommand \thepart {\@tartibi\c@part} +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter} +}%end appendix +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `refrep-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def new file mode 100644 index 00000000000..d50aabdef29 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def @@ -0,0 +1,37 @@ +%% +%% This is file `report-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `report-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{report-xepersian.def}[2010/07/25 v0.2 adaptations for standard report class] +\renewcommand \thepart {\@tartibi\c@part} +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter} +}%end appendix +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `report-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def new file mode 100644 index 00000000000..3017f7a0e4c --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def @@ -0,0 +1,58 @@ +%% +%% This is file `scrartcl-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `scrartcl-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{scrartcl-xepersian.def}[2010/07/25 v0.2 adaptations for scrartcl class] +\renewcommand*{\thepart}{\@tartibi\c@part} +\renewcommand*\appendix{\par% + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \gdef\thesection{\@harfi\c@section}% + \csname appendixmore\endcsname +} +\renewcommand*{\@@maybeautodot}[1]{% + \ifx #1\@stop\let\@@maybeautodot\relax + \else + \ifx #1\harfi \@autodottrue\fi + \ifx #1\adadi \@autodottrue\fi + \ifx #1\tartibi \@autodottrue\fi + \ifx #1\Alph \@autodottrue\fi + \ifx #1\alph \@autodottrue\fi + \ifx #1\Roman \@autodottrue\fi + \ifx #1\roman \@autodottrue\fi + \ifx #1\@harfi \@autodottrue\fi + \ifx #1\@adadi \@autodottrue\fi + \ifx #1\@tartibi \@autodottrue\fi + \ifx #1\@Alph \@autodottrue\fi + \ifx #1\@alph \@autodottrue\fi + \ifx #1\@Roman \@autodottrue\fi + \ifx #1\@roman \@autodottrue\fi + \ifx #1\romannumeral \@autodottrue\fi + \fi + \@@maybeautodot +} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `scrartcl-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def new file mode 100644 index 00000000000..419a7241aa8 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def @@ -0,0 +1,63 @@ +%% +%% This is file `scrbook-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `scrbook-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{scrbook-xepersian.def}[2010/07/25 v0.2 adaptations for scrbook class] +\renewcommand*\frontmatter{% + \if@twoside\cleardoubleoddpage\else\clearpage\fi + \@mainmatterfalse\pagenumbering{harfi}% +} +\renewcommand*{\thepart}{\@tartibi\c@part} +\renewcommand*\appendix{\par% + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter}% + \csname appendixmore\endcsname +} +\renewcommand*{\@@maybeautodot}[1]{% + \ifx #1\@stop\let\@@maybeautodot\relax + \else + \ifx #1\harfi \@autodottrue\fi + \ifx #1\adadi \@autodottrue\fi + \ifx #1\tartibi \@autodottrue\fi + \ifx #1\Alph \@autodottrue\fi + \ifx #1\alph \@autodottrue\fi + \ifx #1\Roman \@autodottrue\fi + \ifx #1\roman \@autodottrue\fi + \ifx #1\@harfi \@autodottrue\fi + \ifx #1\@adadi \@autodottrue\fi + \ifx #1\@tartibi \@autodottrue\fi + \ifx #1\@Alph \@autodottrue\fi + \ifx #1\@alph \@autodottrue\fi + \ifx #1\@Roman \@autodottrue\fi + \ifx #1\@roman \@autodottrue\fi + \ifx #1\romannumeral \@autodottrue\fi + \fi + \@@maybeautodot +} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `scrbook-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def new file mode 100644 index 00000000000..cd43fa91280 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def @@ -0,0 +1,59 @@ +%% +%% This is file `scrreprt-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `scrreprt-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{scrreprt-xepersian.def}[2010/07/25 v0.2 adaptations for scrreprt class] +\renewcommand*{\thepart}{\@tartibi\c@part} +\renewcommand*\appendix{\par% + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@harfi\c@chapter}% + \csname appendixmore\endcsname +} +\renewcommand*{\@@maybeautodot}[1]{% + \ifx #1\@stop\let\@@maybeautodot\relax + \else + \ifx #1\harfi \@autodottrue\fi + \ifx #1\adadi \@autodottrue\fi + \ifx #1\tartibi \@autodottrue\fi + \ifx #1\Alph \@autodottrue\fi + \ifx #1\alph \@autodottrue\fi + \ifx #1\Roman \@autodottrue\fi + \ifx #1\roman \@autodottrue\fi + \ifx #1\@harfi \@autodottrue\fi + \ifx #1\@adadi \@autodottrue\fi + \ifx #1\@tartibi \@autodottrue\fi + \ifx #1\@Alph \@autodottrue\fi + \ifx #1\@alph \@autodottrue\fi + \ifx #1\@Roman \@autodottrue\fi + \ifx #1\@roman \@autodottrue\fi + \ifx #1\romannumeral \@autodottrue\fi + \fi + \@@maybeautodot +} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `scrreprt-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/tkz-linknodes-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/tkz-linknodes-xepersian.def new file mode 100644 index 00000000000..c45a0427b94 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/tkz-linknodes-xepersian.def @@ -0,0 +1,49 @@ +%% +%% This is file `tkz-linknodes-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `tkz-linknodes-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{tkz-linknodes-xepersian.def}[2012/06/13 v0.1 adaptations for tkz-linknodes package] +\renewcommand*{\@SetTab}{% + \let\@alph\@latinalph% + \ifnum \value{C@NumTab}>25\relax% + \setcounter{C@NumTab}{1}% + \else% + \stepcounter{C@NumTab}% + \fi% + \setcounter{C@NumGroup}{0}% + \newcommand*{\PrefixCurrentTab}{\alph{C@NumTab}} + \setboolean{B@FirstLink}{true} + \setboolean{B@NewGroup}{false} + \setcounter{C@NumGroup}{0} + \setcounter{C@CurrentGroup}{0} + \setcounter{NumC@Node}{0} + \setcounter{NumC@Stop}{0} + \setcounter{C@NextNode}{0} + \setcounter{C@CurrentStop}{0} + \setcounter{C@CurrentNode}{0} +}% +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `tkz-linknodes-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def new file mode 100644 index 00000000000..553a08ab985 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def @@ -0,0 +1,40 @@ +%% +%% This is file `tocloft-xepersian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `tocloft-xepersian.def') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\ProvidesFile{tocloft-xepersian.def}[2010/07/25 v0.1 bilingual captions for tocloft package] +\renewcommand*{\cftchapname}{\if@RTL فصل\else chapter\fi} +\renewcommand*{\cftsecname}{\if@RTL قسمت\else section\fi} +\renewcommand*{\cftsubsecname}{\if@RTL زیرقسمت\else subsection\fi} +\renewcommand*{\cftsubsubsecname}{\if@RTL زیرزیرقسمت\else subsubsection\fi} +\renewcommand*{\cftparaname}{\if@RTL پاراگراف\else paragraph\fi} +\renewcommand*{\cftsubparaname}{\if@RTL زیرپاراگراف\else subparagraph\fi} +\renewcommand*{\cftfigname}{\if@RTL شکل\else figure\fi} +\renewcommand*{\cftsubfigname}{\if@RTL زیرشکل\else subfigure\fi} +\renewcommand*{\cfttabname}{\if@RTL جدول\else table\fi} +\renewcommand*{\cftsubtabname}{\if@RTL زیرجدول\else subtable\fi} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `tocloft-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls new file mode 100644 index 00000000000..d9b046862ce --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls @@ -0,0 +1,898 @@ +%% +%% This is file `xepersian-magazine.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `xepersian-magazine.cls') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{xepersian-magazine}[2010/07/25 v0.2 Typesetting Persian magazines in XeLaTeX] +\RequirePackage{ifthen} +\newlength{\xepersian@imgsize} +\newlength{\xepersian@coltitsize} +\newlength{\xepersian@pageneed} +\newlength{\xepersian@pageleft} +\newlength{\xepersian@indexwidth} +\newcommand{\xepersian@ncolumns}{0} +\newlength{\columnlines} +\setlength{\columnlines}{0 pt} % no lines by default +\newboolean{xepersian@hyphenatedtitles} +\setboolean{xepersian@hyphenatedtitles}{true} +\newboolean{xepersian@ninepoints} +\setboolean{xepersian@ninepoints}{false} +\newboolean{xepersian@showgrid} +\setboolean{xepersian@showgrid}{false} +\newboolean{xepersian@a3paper} +\setboolean{xepersian@a3paper}{false} +\newboolean{xepersian@insidefrontpage} +\setboolean{xepersian@insidefrontpage}{false} +\newboolean{xepersian@insideweather} +\setboolean{xepersian@insideweather}{false} +\newboolean{xepersian@insideindex} +\setboolean{xepersian@insideindex}{false} +\newcount\xepersian@gridrows +\newcount\xepersian@gridcolumns +\xepersian@gridrows=40 +\xepersian@gridcolumns=50 +\newcount\minraggedcols +\minraggedcols=5 +\DeclareOption{10pt}{\PassOptionsToClass{10pt}{article}} +\DeclareOption{11pt}{\PassOptionsToClass{11pt}{article}} +\DeclareOption{12pt}{\PassOptionsToClass{12pt}{article}} +\DeclareOption{twocolumn}% +{\ClassWarning{xepersian-magazine}{Option 'twocolumn' not available for xepersian-magazine.}} +\DeclareOption{notitlepage}% +{\ClassWarning{xepersian-magazine}{Option 'notitlepage' not available for xepersian-magazine.}} +\DeclareOption{twoside}% +{\ClassWarning{xepersian-magazine}{Option 'twoside' not available for xepersian-magazine.}} +\DeclareOption{9pt}{\setboolean{xepersian@ninepoints}{true}} +\DeclareOption{hyphenatedtitles}{\setboolean{xepersian@hyphenatedtitles}{false}} +\DeclareOption{columnlines}{\setlength{\columnlines}{0.1 pt}} +\DeclareOption{showgrid}{\setboolean{xepersian@showgrid}{true}} +\DeclareOption{a3paper}{\setboolean{xepersian@a3paper}{true}} +\ProcessOptions\relax +\LoadClass[10pt, onecolumn, titlepage, a4paper]{article} +\RequirePackage{ifxetex} +\RequirePackage{multido} +\RequirePackage{datetime} +\RequirePackage{multicol} +\RequirePackage{fancyhdr} +\RequirePackage{fancybox} +\ifthenelse{\boolean{xepersian@a3paper}}{% +\RequirePackage[a3paper,headsep=0.5cm,vmargin={2cm,2cm},hmargin={1.5cm,1.5cm}]{geometry} +}{ +\RequirePackage[headsep=0.5cm,vmargin={2cm,2cm},hmargin={1.5cm,1.5cm}]{geometry} +} +\RequirePackage[absolute]{textpos} % absoulte positioning +\RequirePackage{hyphenat} % when hyphenate +\RequirePackage{lastpage} % to know the last page number +\RequirePackage{setspace} % set space between lines +\RequirePackage{ragged2e} +\newcommand{\raggedFormat}{\RaggedLeft} +\AtEndOfClass{\xepersianInit} +\ifthenelse{\boolean{xepersian@showgrid}}{% +\AtBeginDocument{ +\grid[show]{\xepersian@gridrows}{\xepersian@gridcolumns}} +\advance\minraggedcols by -1 +}{% +\AtBeginDocument{ +\grid[]{\xepersian@gridrows}{\xepersian@gridcolumns}} +\advance\minraggedcols by -1 +} +\ifthenelse{\boolean{xepersian@ninepoints}}{ +\renewcommand{\normalsize}{% + \@setfontsize{\normalsize}{9pt}{10pt}% + \setlength{\abovedisplayskip}{5pt plus 1pt minus .5pt}% + \setlength{\belowdisplayskip}{\abovedisplayskip}% + \setlength{\abovedisplayshortskip}{3pt plus 1pt minus 2pt}% + \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}} + +\renewcommand{\tiny}{\@setfontsize{\tiny}{5pt}{6pt}} + +\renewcommand{\scriptsize}{\@setfontsize{\scriptsize}{7pt}{8pt}} + +\renewcommand{\small}{% + \@setfontsize{\small}{8pt}{9pt}% + \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt}% + \setlength{\belowdisplayskip}{\abovedisplayskip}% + \setlength{\abovedisplayshortskip}{2pt plus 1pt}% + \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}} + +\renewcommand{\footnotesize}{% + \@setfontsize{\footnotesize}{8pt}{9pt}% + \setlength{\abovedisplayskip}{4pt plus 1pt minus .5pt}% + \setlength{\belowdisplayskip}{\abovedisplayskip}% + \setlength{\abovedisplayshortskip}{2pt plus 1pt}% + \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}} + +\renewcommand{\large}{\@setfontsize{\large}{11pt}{13pt}} +\renewcommand{\Large}{\@setfontsize{\Large}{14pt}{18pt}} +\renewcommand{\LARGE}{\@setfontsize{\LARGE}{18pt}{20pt}} +\renewcommand{\huge}{\@setfontsize{\huge}{20pt}{25pt}} +\renewcommand{\Huge}{\@setfontsize{\Huge}{25pt}{30pt}} +}{} +\def\customwwwTxt#1{\gdef\@customwwwTxt{\lr{#1}}} +\newcommand{\xepersian@wwwFormat}{\sffamily} +\newcommand{\xepersian@www}{% +\raisebox{-3pt}{{\xepersian@wwwFormat\@customwwwTxt}} +} +\newcommand{\xepersian@edition}{ویرایش من} +\newcommand{\editionFormat}{\large\bfseries\texttt} +\newcommand{\xepersian@editionLogo}{% +\raisebox{-3pt}{% +{\editionFormat\xepersian@edition}% +}% +} +\newcommand{\indexFormat}{\large\bfseries} +\newcommand{\xepersian@indexFrameTitle}[1] +{\begin{flushright}{{\indexFormat #1}}\end{flushright}} + +\newcommand{\indexEntryFormat}{\normalsize} +\newcommand{\xepersian@indexEntry}[1]{\begin{minipage}{13\TPHorizModule}% +{\indexEntryFormat\noindent\ignorespaces{#1}}% +\end{minipage}} +\newcommand{\indexEntrySeparator}{\rule{\xepersian@indexwidth}{.1pt}} +\newcommand{\indexEntryPageTxt}{صفحهٔ} +\newcommand{\indexEntryPageFormat}{\footnotesize} +\newcommand{\xepersian@indexEntryPage}[1]{% +{\indexEntryPageFormat{\indexEntryPageTxt{}~#1}}% +} +\newcommand{\headDateTimeFormat}{} +\newcommand{\xepersian@headDateTime}{% +\headDateTimeFormat\date\hspace{5pt}$\parallel$\hspace{5pt}% +\currenttime % +} +\newcommand{\weatherFormat}{\bfseries} +\newcommand{\xepersian@weather}[1]{% +\noindent{\weatherFormat #1}% +} +\newcommand{\weatherTempFormat}{\small} +\newcommand{\weatherUnits}{\textdegree{}C} +\newcommand{\xepersian@section}[0]{صفحهٔ جلو} +\newcommand{\xepersian@headleft}{% +{\small\bfseries \@custommagazinename}، \date +} +\newcommand{\xepersian@headcenter}{% +\xepersian@section{} +} +\newcommand{\xepersian@headright}{% +\small\xepersian@edition% +\hspace*{5pt}\beginL\thepage\ / \pageref{LastPage}\endL +} + +\newcommand{\heading}[3]{% +\renewcommand{\xepersian@headleft}{\beginR#1\endR}% +\renewcommand{\xepersian@headcenter}{\beginR#2\endR}% +\renewcommand{\xepersian@headright}{\beginR#3\endR}% +} +\newcommand{\xepersian@footright}{% +{\footnotesize\lr{\copyright\ \@customwwwTxt{}}---تهیهشده توسط \lr{\XePersian}}% +} +\newcommand{\xepersian@footcenter}{% +} +\newcommand{\xepersian@footleft}{% +} + +\newcommand{\foot}[3]{% +\renewcommand{\xepersian@footleft}{\beginR#1\endR}% +\renewcommand{\xepersian@footcenter}{\beginR#2\endR}% +\renewcommand{\xepersian@footright}{\beginR#3\endR}% +} +\newcommand{\firstTitleFormat}{\Huge\bfseries\flushright} +\newcommand{\xepersian@firstTitle}[1]{% +{% +\begin{spacing}{2.0}{% +\noindent\ignorespaces +\ifthenelse{\boolean{xepersian@hyphenatedtitles}}% +{\nohyphens{\firstTitleFormat #1}}% +{{\firstTitleFormat #1}}% +}% +\end{spacing}% +}% +} +\newcommand{\firstTextFormat}{} +\newcommand{\xepersian@firstText}[1]{% +{\noindent\ignorespaces\firstTextFormat #1}% +} +\newcommand{\secondTitleFormat}{\LARGE\bfseries} +\newcommand{\xepersian@secondTitle}[1]{% +\begin{spacing}{1.5}{% +\noindent\ignorespaces\flushright +\ifthenelse{\boolean{xepersian@hyphenatedtitles}}% +{\nohyphens{\secondTitleFormat #1}}% +{{\secondTitleFormat #1}}% +}\end{spacing}% +} +\newcommand{\secondSubtitleFormat}{\large} +\newcommand{\xepersian@secondSubtitle}[1]{% +{\noindent\ignorespaces{\secondSubtitleFormat #1}}% +} +\newcommand{\secondTextFormat}{} +\newcommand{\xepersian@secondText}[1]{% +\begin{multicols}{2} +{\noindent\ignorespaces\secondTextFormat #1} +\end{multicols} +} +\newcommand{\thirdTitleFormat}{\Large\bfseries} +\newcommand{\xepersian@thirdTitle}[1]{% +\begin{spacing}{1.5}{% +\noindent\ignorespaces\flushright +\ifthenelse{\boolean{xepersian@hyphenatedtitles}}% +{\nohyphens{\thirdTitleFormat #1}}% +{{\thirdTitleFormat #1}}% +}\end{spacing}% +} +\newcommand{\thirdSubtitleFormat}{\large} +\newcommand{\xepersian@thirdSubtitle}[1]% +{{\noindent\ignorespaces\thirdSubtitleFormat #1}} +\newcommand{\thirdTextFormat}{} +\newcommand{\xepersian@thirdText}[1]{{\thirdTextFormat #1}} +\newcommand{\pictureCaptionFormat}{\small\bfseries} +\newcommand{\xepersian@pictureCaption}[1]{% +{\noindent\pictureCaptionFormat #1}% +} +\newcommand{\pagesFormat}{\bfseries\footnotesize} +\newcommand{\xepersian@pages}[1]% +{\noindent{\pagesFormat\MakeUppercase{#1}}} +\newcommand{\innerTitleFormat}{\Huge} +\newcommand{\xepersian@innerTitle}[1]{% +\begin{flushright}{% +\noindent +\ifthenelse{\boolean{xepersian@hyphenatedtitles}}% +{\nohyphens{\innerTitleFormat #1}}% +{{\innerTitleFormat #1}}% +}% +\\% +\end{flushright}% +} +\newcommand{\innerSubtitleFormat}{\large} +\newcommand{\xepersian@innerSubtitle}[1]{{\innerSubtitleFormat #1}} +\newcommand{\timestampTxt}{} +\newcommand{\timestampSeparator}{|} +\newcommand{\timestampFormat}{\small} +\newcommand{\timestamp}[1]{% +{\timestampFormat% +#1~\timestampTxt{}% +}~\timestampSeparator{}% +} +\newcommand{\innerAuthorFormat}{\footnotesize} +\newcommand{\innerPlaceFormat}{\footnotesize\bfseries} +\newcommand{\innerTextFinalMark}{\rule{0.65em}{0.65em}} +\newcommand{\editorialTitleFormat}{\LARGE\textit} +\newcommand{\xepersian@editorialTitle}[1]{\editorialTitleFormat{#1}} +\newcommand{\editorialAuthorFormat}{\textsc} +\newcommand{\shortarticleTitleFormat}{\LARGE\bfseries} +\newcommand{\xepersian@shortarticleTitle}[1]{{\shortarticleTitleFormat #1}} +\newcommand{\shortarticleSubtitleFormat}{\Large} +\newcommand{\xepersian@shortarticleSubtitle}[1]{{\shortarticleSubtitleFormat #1}} +\newcommand{\shortarticleItemTitleFormat}{\large\bfseries} +\newcommand{\xepersian@shortarticleItemTitle}[1]{{\shortarticleItemTitleFormat #1}} +\renewcommand{\maketitle}{\begin{titlepage}% + \let\footnotesize\small + \let\footnoterule\relax + \let \footnote \thanks + \null\vfil + \vskip 60\p@ + \begin{center}% + {\LARGE \@title \par}% + \vskip 1em% + {\LARGE «\xepersian@edition» \par}% + \vskip 3em% + {\large + \lineskip .75em% + \begin{tabular}[t]{c}% + \@author + \end{tabular}\par}% + \vskip 1.5em% + {\large \@date \par}% + \end{center}\par + \@thanks + \vfil\null + \end{titlepage}% + \setcounter{footnote}{0}% + \global\let\thanks\relax + \global\let\maketitle\relax + \global\let\@thanks\@empty + \global\let\@author\@empty + \global\let\@date\@empty + \global\let\@title\@empty + \global\let\title\relax + \global\let\author\relax + \global\let\date\relax + \global\let\and\relax +} +\newcommand{\xepersian@say}[1]{\typeout{#1}} +\newsavebox{\xepersian@fmbox} +\newenvironment{xepersian@fmpage}[1] + {\begin{lrbox}{\xepersian@fmbox}\begin{minipage}{#1}} + {\end{minipage}\end{lrbox}\fbox{\usebox{\xepersian@fmbox}}} +\newcommand{\image}[2]{ +\vspace{5pt} +\setlength{\fboxsep}{1pt} +\addtolength{\xepersian@imgsize}{\columnwidth} +\addtolength{\xepersian@imgsize}{-1\columnsep} +\ifxetex +\setlength{\xepersian@pageneed}{1.5\xepersian@imgsize} +\addtolength{\xepersian@pageneed}{50pt} +\ClassWarning{xepersian-magazine}{% +Image #1 needs: \the\xepersian@pageneed \space % +and there is left: \the\page@free\space% +} +\ifdim \xepersian@pageneed < \page@free + +{\centering\fbox{% +\includegraphics[width = \xepersian@imgsize, +height = \xepersian@imgsize, +keepaspectratio ]{#1}}} +\xepersian@pictureCaption{#2} + +\vspace{5pt} +\else +\ClassWarning{Image #1 needs more space!% + It was not inserted!} +\fi +\fi +} +\textblockorigin{1cm}{1cm} +\newdimen\xepersian@dx +\newdimen\xepersian@dy +\newcount\xepersian@cx +\newcount\xepersian@cy +\newcommand{\grid}[3][]{ +\xepersian@dx=\textwidth% +\xepersian@dy=\textheight% +\xepersian@cx=#3% %columns +\xepersian@cy=#2% %rows + +\count1=#3% +\advance\count1 by 1 + +\count2=#2% +\advance\count2 by 1 + +\divide\xepersian@dx by #3 +\divide\xepersian@dy by #2 + +\setlength{\TPHorizModule}{\xepersian@dx} +\setlength{\TPVertModule}{\xepersian@dy} + +\ifthenelse{\equal{#1}{show}}{ +\multido{\xepersian@nrow=0+1}{\count2}{ +\begin{textblock}{\xepersian@cx}(0,\xepersian@nrow) +\rule[0pt]{\textwidth}{.1pt} +\end{textblock} +} + +\multido{\xepersian@ncol=0+1}{\count1}{ +\begin{textblock}{\xepersian@cy}(\xepersian@ncol,0) +\rule[0pt]{.1pt}{\textheight} +\end{textblock} +} +}{} +} +\newcommand{\xepersianInit}{ +\setlength{\headheight}{14pt} +\renewcommand{\headrulewidth}{0.4pt} + +\pagestyle{fancy} + +\setlength{\columnseprule}{\columnlines} +\setlength{\fboxrule}{0.1 pt} + +} + +\def\customlogo#1{\gdef\@customlogo{\beginR#1\endR}} +\def\customminilogo#1{\gdef\@customminilogo{\beginR#1\endR}} +\def\custommagazinename#1{\gdef\@custommagazinename{\beginR#1\endR}} +\newcommand{\logo}[0]{ +%% Heading %% +\noindent\hrulefill\hspace{10pt}\xepersian@editionLogo\hspace{5pt}\xepersian@www + +\vspace*{-3pt} + +{\Large\bfseries \@customlogo} +\hrulefill +\hspace{10pt}\xepersian@headDateTime + +} +\newcommand{\minilogo}[0]{ +{\large\bfseries \@customminilogo} + +\vspace*{5pt} +} +\newcommand{\mylogo}[1]{ +{\beginR#1\endR} + +\noindent +\xepersian@editionLogo\hspace{5pt} +\hrulefill +\hspace{5pt}\xepersian@headDateTime +} +\newcommand{\edition}[1]{\renewcommand{\xepersian@edition}{#1}} +\newenvironment{frontpage}[0] +{ +\setboolean{xepersian@insidefrontpage}{true} +\thispagestyle{empty} +\logo + +}% +{ +\thispagestyle{empty} +\clearpage +\newpage +\fancyhead{} + \fancyfoot{} +\fancyhead[RO,LE]{\beginR\xepersian@headright\endR} +\fancyhead[LO,RE]{\beginR\xepersian@headleft\endR} + \fancyhead[C]{\beginR\xepersian@headcenter\endR} + \fancyfoot[RO,LE]{\beginR\xepersian@footright\endR} + \fancyfoot[LO,RE]{\beginR\xepersian@footleft\endR} +\fancyfoot[C]{\beginR\xepersian@footcenter\endR} +\renewcommand{\headrulewidth}{0.4pt} +\setboolean{xepersian@insidefrontpage}{false} + +} +\newcommand{\firstarticle}[3] +{ +\ifthenelse{\boolean{xepersian@insidefrontpage}}{% +\ifthenelse{\boolean{xepersian@hyphenatedtitles}}{% +\begin{textblock}{24}(22,5) +} +{ +\begin{textblock}{28}(22,5) +} +\vspace{-7pt} +\xepersian@firstTitle{#1} +\end{textblock} +\begin{textblock}{29}(22,10) +\vspace{5pt plus 2pt minus 2pt} + +\xepersian@firstText{\timestamp{#3}~#2} + +\end{textblock} + +\begin{textblock}{50}(0,15) +\rule{50\TPHorizModule}{.3pt} +\end{textblock} +}{%else +\ClassError{xepersian-magazine}{% +\protect\firstarticle\space in a wrong place.\MessageBreak +\protect\firstarticle\space may only appear inside frontpage environment. +}{% +\protect\firstarticle\space may only appear inside frontpage environment. +}% +} +} +\newcommand{\secondarticle}[5] +{ +\ifthenelse{\boolean{xepersian@insidefrontpage}}{% +\begin{textblock}{33}(2,16) +\xepersian@pages{#4} +\vspace{-5pt} +\xepersian@secondTitle{#1} + +\vspace*{5pt} + +\xepersian@secondSubtitle{#2} + +\vspace*{-7pt} + +\xepersian@secondText{\timestamp{#5}~#3} + +\end{textblock} + +\begin{textblock}{33}(2,25) +\vspace{5pt plus 2pt minus 2pt} + +\noindent\ignorespaces\rule{33\TPHorizModule}{.3pt} +\end{textblock} +}{%else +\ClassError{xepersian-magazine}{% +\protect\secondarticle\space in a wrong place.\MessageBreak +\protect\secondarticle\space may only appear inside frontpage environment. +}{% +\protect\secondarticle\space may only appear inside frontpage environment. +}% +} +} +\newcommand{\thirdarticle}[6] +{ +\ifthenelse{\boolean{xepersian@insidefrontpage}}{% +\begin{textblock}{32}(2,26) +\xepersian@pages{#5} +\vspace{-5pt} +\setlength{\fboxsep}{1pt} +\xepersian@thirdTitle{#1} + +\vspace*{5pt} + +\xepersian@thirdSubtitle{#2} + +\vspace*{5pt} + +{\noindent\ignorespaces % +\ifthenelse{\equal{#4}{}}{} + +\xepersian@thirdText{\timestamp{#6}~#3} + +} + +\vspace*{5pt} + +\end{textblock} +}{%else +\ClassError{xepersian-magazine}{% +\protect\thirdarticle\space in a wrong place.\MessageBreak +\protect\thirdarticle\space may only appear inside frontpage environment. +}{% +\protect\thirdarticle\space may only appear inside frontpage environment. +}% +} +} +\newcommand{\firstimage}[2] +{ +\ifthenelse{\boolean{xepersian@insidefrontpage}}{% +\begin{textblock}{18}(2,5) +\setlength{\fboxsep}{1pt} +\ifxetex % only in PDF +\noindent\fbox{\includegraphics[width = 18\TPHorizModule ]{#1}} +\fi + +\xepersian@pictureCaption{#2} +\end{textblock}% +} +{\ClassError{xepersian-magazine}{% +\protect\firstimage\space in a wrong place.\MessageBreak +\protect\firstimage\space may only appear inside frontpage environment. +}{% +\protect\firstimage\space may only appear inside frontpage environment. +}} +}% +\newcommand{\weatheritem}[5]{% +\ifthenelse{\boolean{xepersian@insideweather}}{ +\begin{minipage}{45pt} +\ifxetex +\includegraphics[width=40pt]{#1} +\fi +\end{minipage} +\begin{minipage}{50pt} +\weatherTempFormat +#2\\ +\beginL#3 $\|$ #4 \lr{\weatherUnits{}}\endL\\ +#5 +\end{minipage} +}{%else +\ClassError{xepersian-magazine}{% +\protect\weatheritem\space in a wrong place.\MessageBreak +\protect\weatheritem\space may only appear inside weatherblock environment. +}{% +\protect\weatheritem\space may only appear inside weatherblock environment.\MessageBreak +weatherblock environment may only appear inside frontpage environment. +}% +} +} +\newenvironment{weatherblock}[1] +{ +\ifthenelse{\boolean{xepersian@insidefrontpage}}{% +\setboolean{xepersian@insideweather}{true} +\begin{textblock}{32}(2,38) +\vspace*{-15pt} + +\xepersian@weather{\beginR#1\endR} + +\vspace*{5pt} + +\noindent\begin{xepersian@fmpage}{32\TPHorizModule} +\begin{minipage}{32\TPHorizModule} +\hspace{5pt} + +}{% +\ClassError{xepersian-magazine}{% +weatherblock in a wrong place.\MessageBreak +weatherblock may only appear inside frontpage environment. +}{% +weatherblock may only appear inside frontpage environment. +} +} +}% +{ +\end{minipage} +\end{xepersian@fmpage} +\end{textblock} +\setboolean{xepersian@insideweather}{false} +} +\newenvironment{authorblock}[0] +{ +\ifthenelse{\boolean{xepersian@insidefrontpage}}{% +\begin{textblock}{15}(36,35) +\setlength{\fboxsep}{5pt} +\begin{xepersian@fmpage}{13\TPHorizModule} +\begin{minipage}{13\TPHorizModule} +\centering +\minilogo + +}{%else +\ClassError{xepersian-magazine}{% +authorblock in a wrong place.\MessageBreak +authorblock may only appear inside frontpage environment. +}{% +authorblock may only appear inside frontpage environment. +} +} +} +{ +\end{minipage} +\end{xepersian@fmpage} +\end{textblock} +} +\newenvironment{indexblock}[1] +{ +\ifthenelse{\boolean{xepersian@insidefrontpage}}{% +\setboolean{xepersian@insideindex}{true}%let's in +\begin{textblock}{15}(36,16) +\setlength{\xepersian@indexwidth}{13\TPHorizModule} +\xepersian@indexFrameTitle{#1} + +\setlength{\fboxsep}{5pt} %espacio entre el frame y la imagen +\begin{xepersian@fmpage}{\xepersian@indexwidth} +\begin{minipage}{\xepersian@indexwidth} +\vspace*{10pt} +}{%else +\ClassError{xepersian-magazine}{% +indexblock in a wrong place.\MessageBreak +indexblock may only appear inside frontpage environment. +}{% +indexblock may only appear inside frontpage environment. +} +} +}% +{ +\end{minipage} +\end{xepersian@fmpage} +\end{textblock} +\setboolean{xepersian@insideindex}{false}%let's out +} +\newcommand{\indexitem}[2] +{ +\ifthenelse{\boolean{xepersian@insideindex}}{ +\xepersian@indexEntry{#1، \xepersian@indexEntryPage{\pageref{#2}}} + +\vspace{0.5cm} + +\noindent\ignorespaces\indexEntrySeparator{} +}{%else +\ClassError{xepersian-magazine}{% +\protect\indexitem\space in a wrong place.\MessageBreak +\protect\indexitem\space may only appear inside indexblock environment. +}{% +\protect\indexitem\space may only appear inside indexblock environment.\MessageBreak +indexblock environment may only appear inside frontpage environment. +}% +} +} +\newcommand{\xepersian@inexpandedtitle}[1]{ +\begin{minipage}{.95\textwidth} +\begin{center} +\noindent\Large\textbf{\beginR#1\endR} +\end{center} +\end{minipage} +} +\newcommand{\expandedtitle}[2]{ +\end{multicols} + +\begin{center} +\setlength{\fboxsep}{5pt} +\setlength{\shadowsize}{2pt} +\ifthenelse{\equal{#1}{shadowbox}}{% +\shadowbox{% +\xepersian@inexpandedtitle{#2}% +}% +}{} +\ifthenelse{\equal{#1}{doublebox}}{% +\doublebox{% +\xepersian@inexpandedtitle{#2}% +}% +}{} +\ifthenelse{\equal{#1}{ovalbox}}{% +\ovalbox{% +\xepersian@inexpandedtitle{#2}% +}% +}{} +\ifthenelse{\equal{#1}{Ovalbox}}{% +\Ovalbox{% +\xepersian@inexpandedtitle{#2}% +}% +}{} +\ifthenelse{\equal{#1}{lines}}{ +\hrule +\vspace*{8pt} +\begin{center} +\noindent\Large\textbf{#2} +\end{center} +\vspace*{8pt} +\hrule +}{} +\end{center} + +\begin{multicols}{\xepersian@ncolumns{}} +\ifnum \xepersian@ncolumns > \minraggedcols +\raggedFormat +\fi +} +\newcommand{\xepersian@incolumntitle}[2]{ +\begin{minipage}{#1} +\begin{center} +\noindent\normalsize\textbf{#2} +\end{center} +\end{minipage} +} + +\newcommand{\columntitle}[2]{ +\vspace*{5pt} +\begin{center} +\setlength{\fboxsep}{5pt} +\setlength{\shadowsize}{2pt} +\addtolength{\xepersian@coltitsize}{\columnwidth} +\addtolength{\xepersian@coltitsize}{-1\columnsep} +\addtolength{\xepersian@coltitsize}{-5pt} +\addtolength{\xepersian@coltitsize}{-1\shadowsize} +\ifthenelse{\equal{#1}{shadowbox}}{% +\shadowbox{% +\xepersian@incolumntitle{\xepersian@coltitsize}{#2}% +}% +}{} +\ifthenelse{\equal{#1}{doublebox}}{% +\doublebox{% +\xepersian@incolumntitle{\xepersian@coltitsize}{#2}% +}% +}{} +\ifthenelse{\equal{#1}{ovalbox}}{% +\ovalbox{% +\xepersian@incolumntitle{\xepersian@coltitsize}{#2}% +}% +}{} +\ifthenelse{\equal{#1}{Ovalbox}}{% +\Ovalbox{% +\xepersian@incolumntitle{\xepersian@coltitsize}{#2}% +}% +}{} +\ifthenelse{\equal{#1}{lines}}{ +\hrule +\vspace*{5pt} +\begin{center} +\noindent\normalsize\textbf{#2} +\end{center} +\vspace*{5pt} +\hrule +}{} +\end{center} +} +\renewcommand{\date}{% +\longdate{\today}% +} +\newcommand{\authorandplace}[2]{% +\rightline{% +{\innerAuthorFormat #1},\space{}{\innerPlaceFormat #2}% +}% +\par % +} +\newcommand{\newsection}[1]{ +\renewcommand{\xepersian@section}{#1} +} +\newenvironment{article}[5] +{ +\xepersian@say{Adding a new piece of article} +\renewcommand{\xepersian@ncolumns}{#1} +\begin{multicols}{#1}[ +\xepersian@pages{#4} +\xepersian@innerTitle{#2}% +\xepersian@innerSubtitle{#3}% +][4cm]% +\label{#5} +\ifnum #1 > \minraggedcols +\raggedFormat +\fi +} +{~\innerTextFinalMark{} +\end{multicols} +} +\newcommand{\articlesep}{% +\setlength{\xepersian@pageneed}{16000pt} +\setlength\xepersian@pageleft{\pagegoal} +\addtolength\xepersian@pageleft{-\pagetotal} + +\xepersian@say{How much left \the\xepersian@pageleft} + +\ifdim \xepersian@pageneed < \xepersian@pageleft +\xepersian@say{Not enough space} +\else +\xepersian@say{Adding sep line between articles} +\vspace*{10pt plus 10pt minus 5pt} +\hrule +\vspace*{10pt plus 5pt minus 5pt} +\fi + +} +\newcommand{\xepersian@editorialTit}[2]{ +\setlength{\arrayrulewidth}{.1pt} +\begin{center} +\begin{tabular}{c} +\noindent +\xepersian@editorialTitle{#1} +\vspace{2pt plus 1pt minus 1pt} +\\ +\hline +\vspace{2pt plus 1pt minus 1pt} +\\ +\editorialAuthorFormat{#2} +\end{tabular} +\end{center} +} +\newenvironment{editorial}[4] +{ +\xepersian@say{Adding a new editorial} +\begin{multicols}{#1}[% +\xepersian@editorialTit{#2}{#3}% +][4cm] +\label{#4} +\ifnum #1 > \minraggedcols +\raggedFormat +\fi +} +{ +\end{multicols} +} +\newcommand{\xepersian@shortarticleTit}[2]{ +\begin{center} +\vbox{% +\noindent +\xepersian@shortarticleTitle{#1} +\vspace{4pt plus 2pt minus 2pt} +\hrule +\vspace{4pt plus 2pt minus 2pt} +\xepersian@shortarticleSubtitle{#2} +} +\end{center} +} +\newenvironment{shortarticle}[4] +{ +\xepersian@say{Adding a short article block} +\begin{multicols}{#1}[\xepersian@shortarticleTit{#2}{#3}][4cm] % + \label{#4} +\par % +\ifnum #1 > \minraggedcols +\raggedFormat +\fi +} +{ +\end{multicols} +} +\newcommand{\shortarticleitem}[2]{ +\goodbreak +\vspace{5pt plus 3pt minus 3pt} +{\vbox{\noindent\xepersian@shortarticleItemTitle{#1}}} +\vspace{5pt plus 3pt minus 3pt} +{\noindent #2}\\ +} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `xepersian-magazine.cls'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty new file mode 100644 index 00000000000..dbddd850a1f --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty @@ -0,0 +1,237 @@ +%% +%% This is file `xepersian-mathsdigitspec.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `xepersian-mathsdigitspec.sty') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{xepersian-mathsdigitspec} + [2013/04/04 v1.0.3 Unicode Persian maths digits in XeLaTeX] +\@ifundefined{Umathcode}{\let\Umathcode\XeTeXmathcode}{} +\@ifundefined{Umathchardef}{\let\Umathchardef\XeTeXmathchardef}{} +\def\new@mathgroup{\alloc@8\mathgroup\chardef\@cclvi} +\let\newfam\new@mathgroup +\def\select@group#1#2#3#4{% + \ifx\math@bgroup\bgroup\else\relax\expandafter\@firstofone\fi + {% + \ifmmode + \ifnum\csname c@mv@\math@version\endcsname<\@cclvi + \begingroup + \escapechar\m@ne + \getanddefine@fonts{\csname c@mv@\math@version\endcsname}#3% + \globaldefs\@ne \math@fonts + \endgroup + \init@restore@version + \xdef#1{\noexpand\use@mathgroup\noexpand#2% + {\number\csname c@mv@\math@version\endcsname}}% + \global\advance\csname c@mv@\math@version\endcsname\@ne + \else + \let#1\relax + \@latex@error{Too many math alphabets used in + version \math@version}% + \@eha + \fi + \else \expandafter\non@alpherr\fi + #1{#4}% + }% +} +\def\document@select@group#1#2#3#4{% + \ifx\math@bgroup\bgroup\else\relax\expandafter\@firstofone\fi + {% + \ifmmode + \ifnum\csname c@mv@\math@version\endcsname<\@cclvi + \begingroup + \escapechar\m@ne + \getanddefine@fonts{\csname c@mv@\math@version\endcsname}#3% + \globaldefs\@ne \math@fonts + \endgroup + \expandafter\extract@alph@from@version + \csname mv@\math@version\expandafter\endcsname + \expandafter{\number\csname + c@mv@\math@version\endcsname}% + #1% + \global\advance\csname c@mv@\math@version\endcsname\@ne + \else + \let#1\relax + \@latex@error{Too many math alphabets used + in version \math@version}% + \@eha + \fi + \else \expandafter\non@alpherr\fi + #1{#4}% + }% +} +\ExplSyntaxOn +\bool_set_false:N \g_fontspec_math_bool +\ExplSyntaxOff +\def\@preamblecmds{} +\newcommand\xepersian@not@onlypreamble[1]{{% + \def\do##1{\ifx#1##1\else\noexpand\do\noexpand##1\fi}% + \xdef\@preamblecmds{\@preamblecmds}}} +\xepersian@not@onlypreamble\@preamblecmds +\def\xepersian@notprerr{ can be used only in preamble (\on@line)} +\AtBeginDocument{% + \def\do#1{\noexpand\do\noexpand#1}% + \edef\@preamblecmds{% + \def\noexpand\do##1{% + \def##1{\noexpand\xepersian@NotprerrMessage##1}\noexpand\@eha}}% + \@preamblecmds} +\def\xepersian@NotprerrMessage#1{% + \PackageError{xepersian}% + {\noexpand\string#1 \noexpand\xepersian@notprerr}{}% +} +\def\nocite#1{% + \@bsphack{\setbox0=\hbox{\cite{#1}}}\@esphack} +\newcommand\xepersian@PackageInfo[1]{\PackageInfo{xepersian-mathsdigitspec}{#1}} +\newcommand\SetMathCode[4]{% + \Umathcode#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax} +\newcommand\SetMathCharDef[4]{% + \Umathchardef#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax} +\ExplSyntaxOn +\cs_new_eq:NN \orig_mathbf:n \mathbf +\cs_new_eq:NN \orig_mathit:n \mathit +\cs_new_eq:NN \orig_mathrm:n \mathrm +\cs_new_eq:NN \orig_mathsf:n \mathsf +\cs_new_eq:NN \orig_mathtt:n \mathtt +\NewDocumentCommand \new@mathbf { m } { + \orig_mathbf:n { + \int_step_inline:nnnn { `0 } { \c_one } { `9 } { + \mathcode ##1 = \numexpr "100 * \symnew@mathbf@font@digits + ##1 \relax + } + #1 + } +} +\NewDocumentCommand \new@mathit { m } { + \orig_mathit:n { + \int_step_inline:nnnn { `0 } { \c_one } { `9 } { + \mathcode ##1 = \numexpr "100 * \symnew@mathit@font@digits + ##1 \relax + } + #1 + } +} +\NewDocumentCommand \new@mathrm { m } { + \orig_mathrm:n { + \int_step_inline:nnnn { `0 } { \c_one } { `9 } { + \mathcode ##1 = \numexpr "100 * \symnew@mathrm@font@digits + ##1 \relax + } + #1 + } +} +\NewDocumentCommand \new@mathsf{ m } { + \orig_mathsf:n { + \int_step_inline:nnnn { `0 } { \c_one } { `9 } { + \mathcode ##1 = \numexpr "100 * \symnew@mathsf@font@digits + ##1 \relax + } + #1 + } +} +\NewDocumentCommand \new@mathtt{ m } { + \orig_mathtt:n { + \int_step_inline:nnnn { `0 } { \c_one } { `9 } { + \mathcode ##1 = \numexpr "100 * \symnew@mathtt@font@digits + ##1 \relax + } + #1 + } +} +\newcommand\setdigitfont[2][]{% + \let\glb@currsize\relax + \fontspec_set_family:Nnn \xepersian@digits@family {Mapping=parsidigits,#1}{#2} + \xepersian@PackageInfo{Defining the default Persian maths digits font as '#2'} + \DeclareSymbolFont{OPERATORS} {EU1}{\xepersian@digits@family} {m}{n} + \DeclareSymbolFont{new@mathbf@font@digits}{EU1}{\xepersian@digits@family}{bx}{n} + \DeclareSymbolFont{new@mathit@font@digits}{EU1}{\xepersian@digits@family}{m}{it} + \DeclareSymbolFont{new@mathrm@font@digits}{EU1}{\xepersian@digits@family}{m}{n} + \def\persianmathsdigits{% + \SetMathCode{`0}{\mathalpha}{OPERATORS}{`0} + \SetMathCode{`1}{\mathalpha}{OPERATORS}{`1} + \SetMathCode{`2}{\mathalpha}{OPERATORS}{`2} + \SetMathCode{`3}{\mathalpha}{OPERATORS}{`3} + \SetMathCode{`4}{\mathalpha}{OPERATORS}{`4} + \SetMathCode{`5}{\mathalpha}{OPERATORS}{`5} + \SetMathCode{`6}{\mathalpha}{OPERATORS}{`6} + \SetMathCode{`7}{\mathalpha}{OPERATORS}{`7} + \SetMathCode{`8}{\mathalpha}{OPERATORS}{`8} + \SetMathCode{`9}{\mathalpha}{OPERATORS}{`9} + \SetMathCharDef{\%}{\mathbin}{OPERATORS}{`٪} + \SetMathCharDef{\decimalseparator}{\mathpunct}{OPERATORS}{"066B} + \cs_set_eq:NN \mathbf \new@mathbf + \cs_set_eq:NN \mathit \new@mathit + \cs_set_eq:NN \mathrm \new@mathrm} +} +\DeclareDocumentCommand \setmathsfdigitfont { O{} m } { + \fontspec_set_family:Nnn \g_fontspec_mathsf_tl {Mapping=parsidigits,#1}{#2} + \DeclareSymbolFont{new@mathsf@font@digits}{EU1}{\g_fontspec_mathsf_tl}{m}{n} + \def\persianmathsfdigits{\cs_set_eq:NN \mathsf \new@mathsf} +} +\DeclareDocumentCommand \setmathttdigitfont { O{} m } { + \fontspec_set_family:Nnn \g_fontspec_mathtt_tl {Mapping=parsidigits,#1}{#2} + \DeclareSymbolFont{new@mathtt@font@digits}{EU1}{\g_fontspec_mathtt_tl}{m}{n} + \def\persianmathttdigits{\cs_set_eq:NN \mathtt \new@mathtt} +} +\ExplSyntaxOff +\ifx\newcommand\undefined\else + \newcommand{\ZifferAn}{} +\fi +\mathchardef\ziffer@DotOri="013A +{\ZifferAn + \catcode`\.=\active\gdef.{\begingroup\obeyspaces\futurelet\n\ziffer@dcheck}} +\def\ziffer@dcheck{\ziffer@check\ZifferLeer\ziffer@DotOri} +\def\ziffer@check#1#2{% + \ifx\n1\endgroup#1\else + \ifx\n2\endgroup#1\else + \ifx\n3\endgroup#1\else + \ifx\n4\endgroup#1\else + \ifx\n5\endgroup#1\else + \ifx\n6\endgroup#1\else + \ifx\n7\endgroup#1\else + \ifx\n8\endgroup#1\else + \ifx\n9\endgroup#1\else + \ifx\n0\endgroup#1\else + \endgroup#2% + \fi + \fi + \fi + \fi + \fi + \fi + \fi + \fi + \fi + \fi} +\mathcode`.="8000\relax +\def\ZifferLeer{\ifx\decimalseparator\undefied .\else \decimalseparator\fi} +\def\DefaultMathsDigits{\def\SetMathsDigits{}} +\def\PersianMathsDigits{\def\SetMathsDigits{% +\ifx\persianmathsdigits\undefied\else\persianmathsdigits\fi% +\ifx\persianmathsfdigits\undefied\else\persianmathsfdigits\fi% +\ifx\persianmathttdigits\undefied\else\persianmathttdigits\fi}} +\def\AutoMathsDigits{\def\SetMathsDigits{% +\ifx\persianmathsdigits\undefied\else\if@Latin\else\persianmathsdigits\fi\fi% +\ifx\persianmathsfdigits\undefied\else\if@Latin\else\persianmathsfdigits\fi\fi% +\ifx\persianmathttdigits\undefied\else\if@Latin\else\persianmathttdigits\fi\fi}} +\AutoMathsDigits +\everymath\expandafter{\the\everymath\SetMathsDigits} +\g@addto@macro\document{\everydisplay\expandafter{\the\everydisplay\SetMathsDigits}} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `xepersian-mathsdigitspec.sty'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty new file mode 100644 index 00000000000..311d670f2a4 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty @@ -0,0 +1,166 @@ +%% +%% This is file `xepersian-multiplechoice.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `xepersian-multiplechoice.sty') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{xepersian-multiplechoice}[2010/07/25 v0.2 + Multiple Choice Questionnaire class for Persian in XeLaTeX] +\RequirePackage{pifont} +\RequirePackage{fullpage} +\RequirePackage{ifthen} +\RequirePackage{calc} +\RequirePackage{verbatim} +\RequirePackage{tabularx} +\def\@headerfont{\bfseries} +\newcommand\headerfont[1]{\gdef\@headerfont{#1}} +\def\@X{X} +\newcommand\X[1]{\gdef\@X{#1}} +\def\pbs#1{\let\tmp=\\#1\let\\=\tmp} +\newcolumntype{D}{>{\pbs\centering}X} +\newcolumntype{Q}{>{\@headerfont}X} + +\renewcommand\tabularxcolumn[1]{m{#1}} +\newcommand\makeform@nocorrection{% + \addtocontents{frm}{\protect\end{tabularx}} + \@starttoc{frm}} +\newcommand\makeform@correction{% + \addtocontents{frm}{\protect\end{tabularx}}} +\newcommand\makemask@nocorrection{% + \addtocontents{msk}{\protect\end{tabularx}} + \@starttoc{msk}} +\newcommand\makemask@correction{% + \addtocontents{msk}{\protect\end{tabularx}}} +\newlength\questionspace +\setlength\questionspace{0pt} +\newcommand\answerstitle[1]{\gdef\@answerstitle{#1}} +\def\@answerstitlefont{\bfseries} +\newcommand\answerstitlefont[1]{\gdef\@answerstitlefont{#1}} +\def\@answernumberfont{\bfseries} +\newcommand\answernumberfont[1]{\gdef\@answernumberfont{#1}} +\newcounter{question}\stepcounter{question} +\newcounter{@choice} +\def\@initorcheck{% + \xdef\@choices{\the@choice}% + \setcounter{@choice}{1}% + \gdef\@arraydesc{|Q||}% + \gdef\@headerline{}% + \whiledo{\not{\value{@choice}>\@choices}}{ + \xdef\@arraydesc{\@arraydesc D|} + \def\@appendheader{\g@addto@macro\@headerline} + \@appendheader{&\protect\@headerfont} + \edef\@the@choice{{\alph{@choice}}} + \expandafter\@appendheader\@the@choice + \stepcounter{@choice}}% + \addtocontents{frm}{% + \protect\begin{tabularx}{\protect\linewidth}{\@arraydesc} + \protect\hline + \@headerline\protect\\\protect\hline\protect\hline}% + \addtocontents{msk}{% + \protect\begin{tabularx}{\protect\linewidth}{\@arraydesc} + \protect\hline + \@headerline\protect\\\protect\hline\protect\hline}% + \gdef\@initorcheck{% + \ifthenelse{\value{@choice} = \@choices}{}{% + \ClassError{xepersian-multiplechoice}{Question \thequestion: wrong number of choices + (\the@choice\space instead of \@choices)}{% + Questions must all have the same number of proposed answers.% + \MessageBreak + Type X <return> to quit, fix your MCQ (multiple choice question) and rerun XeLaTeX.}}}} +\newenvironment{question}[1]{% + %% \begin{question} + \begin{minipage}{\textwidth} + \xdef\@formanswerline{\@questionheader}% + \xdef\@maskanswerline{\@questionheader}% + \fbox{\parbox[c]{\linewidth}{#1}} + \vspace\questionspace\par + {\@answerstitlefont\@answerstitle} + \begin{list}{\@answernumberfont\alph{@choice})~}{\usecounter{@choice}}}{% + %% \end{question} + \end{list} + \@initorcheck% + \addtocontents{frm}{\@formanswerline\protect\\\protect\hline}% + \addtocontents{msk}{\@maskanswerline\protect\\\protect\hline}% + \end{minipage} + \stepcounter{question}} +\def\@truesymbol{\ding{52}~} +\def\@falsesymbol{\ding{56}~} +\newcommand\truesymbol[1]{\gdef\@truesymbol{#1}} +\newcommand\falsesymbol[1]{\gdef\@falsesymbol{#1}} +\def\@true@nocorrection{\item} +\def\@false@nocorrection{\item} +\def\@true@correction{\item[\@truesymbol\refstepcounter{@choice}]} +\def\@false@correction{\item[\@falsesymbol\refstepcounter{@choice}]} +\newcommand\true{% + \xdef\@formanswerline{\@formanswerline&}% + \xdef\@maskanswerline{\@maskanswerline&\@X}% + \@true}% +\newcommand\false{% + \xdef\@formanswerline{\@formanswerline&}% + \xdef\@maskanswerline{\@maskanswerline&}% + \@false}% +\def\@correctionstyle{\itshape} +\newcommand\correctionstyle[1]{\gdef\@correctionstyle{#1}} +\newenvironment{@correction}{\@correctionstyle}{} + \def\@questionheader{سؤال \thequestion} + \answerstitle{جوابهای ممکن:} +\DeclareOption{nocorrection}{% + \let\@true\@true@nocorrection + \let\@false\@false@nocorrection + \let\correction\comment + \let\endcorrection\endcomment + \def\makeform{\makeform@nocorrection} + \def\makemask{\makemask@nocorrection}} +\DeclareOption{correction}{% + \let\@true\@true@correction + \let\@false\@false@correction + \let\correction\@correction + \let\endcorrection\end@correction + \def\makeform{\makeform@correction} + \def\makemask{\makemask@correction}} +\ExecuteOptions{nocorrection} +\newcommand\questiontitle[1]{\gdef\@questiontitle{#1}} +\def\@questiontitlefont{\bfseries} +\newcommand\questiontitlefont[1]{\gdef\@questiontitlefont{#1}} +\newlength\questiontitlespace +\setlength\questiontitlespace{5pt} +\newlength\questionsepspace +\setlength\questionsepspace{20pt} +\gdef\@questionsepspace{0pt} +\let\old@question\question +\let\old@endquestion\endquestion +\renewenvironment{question}[1]{% + %% \begin{question} + \vspace\@questionsepspace + \fbox{\parbox[c]{0.25\linewidth}{\@questiontitlefont\@questiontitle}} + \nopagebreak\vspace\questiontitlespace\par + \old@question{#1}}{% + %% \end{question} + \old@endquestion + \gdef\@questionsepspace{\questionsepspace}} + \questiontitle{سؤال \thequestion:} +\ProcessOptions +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `xepersian-multiplechoice.sty'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty new file mode 100644 index 00000000000..c284a0a1602 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty @@ -0,0 +1,200 @@ +%% +%% This is file `xepersian-persiancal.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `xepersian-persiancal.sty') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{xepersian-persiancal}[2012/07/25 v0.2 provides Persian calendar] + +\newif\ifXePersian@leap \newif\ifXePersian@kabiseh +\newcount\XePersian@i \newcount\XePersian@y \newcount\XePersian@m \newcount\XePersian@d +\newcount\XePersian@latini \newcount\XePersian@persiani +\newcount\XePersian@latinii \newcount\XePersian@persianii +\newcount\XePersian@latiniii \newcount\XePersian@persianiii +\newcount\XePersian@latiniv \newcount\XePersian@persianiv +\newcount\XePersian@latinv \newcount\XePersian@persianv +\newcount\XePersian@latinvi \newcount\XePersian@persianvi +\newcount\XePersian@latinvii \newcount\XePersian@persianvii +\newcount\XePersian@latinviii \newcount\XePersian@persianviii +\newcount\XePersian@latinix \newcount\XePersian@persianix +\newcount\XePersian@latinx \newcount\XePersian@persianx +\newcount\XePersian@latinxi \newcount\XePersian@persianxi +\newcount\XePersian@latinxii \newcount\XePersian@persianxii + \newcount\XePersian@persianxiii + +\newcount\XePersian@temp +\newcount\XePersian@temptwo +\newcount\XePersian@tempthree +\newcount\XePersian@yModHundred +\newcount\XePersian@thirtytwo +\newcount\XePersian@dn +\newcount\XePersian@sn +\newcount\XePersian@mminusone + +\XePersian@y=\year \XePersian@m=\month \XePersian@d=\day +\XePersian@temp=\XePersian@y +\divide\XePersian@temp by 100\relax +\multiply\XePersian@temp by 100\relax +\XePersian@yModHundred=\XePersian@y +\advance\XePersian@yModHundred by -\XePersian@temp\relax +\ifodd\XePersian@yModHundred + \XePersian@leapfalse +\else + \XePersian@temp=\XePersian@yModHundred + \divide\XePersian@temp by 2\relax + \ifodd\XePersian@temp\XePersian@leapfalse + \else + \ifnum\XePersian@yModHundred=0% + \XePersian@temp=\XePersian@y + \divide\XePersian@temp by 400\relax + \multiply\XePersian@temp by 400\relax + \ifnum\XePersian@y=\XePersian@temp\XePersian@leaptrue\else\XePersian@leapfalse\fi + \else\XePersian@leaptrue + \fi + \fi +\fi +\XePersian@latini=31\relax +\ifXePersian@leap + \XePersian@latinii = 29\relax +\else + \XePersian@latinii = 28\relax +\fi +\XePersian@latiniii = 31\relax +\XePersian@latiniv = 30\relax +\XePersian@latinv = 31\relax +\XePersian@latinvi = 30\relax +\XePersian@latinvii = 31\relax +\XePersian@latinviii = 31\relax +\XePersian@latinix = 30\relax +\XePersian@latinx = 31\relax +\XePersian@latinxi = 30\relax +\XePersian@latinxii = 31\relax +\XePersian@thirtytwo=32\relax +\XePersian@temp=\XePersian@y +\advance\XePersian@temp by -17\relax +\XePersian@temptwo=\XePersian@temp +\divide\XePersian@temptwo by 33\relax +\multiply\XePersian@temptwo by 33\relax +\advance\XePersian@temp by -\XePersian@temptwo +\ifnum\XePersian@temp=\XePersian@thirtytwo\XePersian@kabisehfalse +\else + \XePersian@temptwo=\XePersian@temp + \divide\XePersian@temptwo by 4\relax + \multiply\XePersian@temptwo by 4\relax + \advance\XePersian@temp by -\XePersian@temptwo + \ifnum\XePersian@temp=\z@\XePersian@kabisehtrue\else\XePersian@kabisehfalse\fi +\fi +\XePersian@tempthree=\XePersian@y % Number of Leap years +\advance\XePersian@tempthree by -1 +\XePersian@temp=\XePersian@tempthree % T := (MY-1) div 4 +\divide\XePersian@temp by 4\relax +\XePersian@temptwo=\XePersian@tempthree % T := T - ((MY-1) div 100) +\divide\XePersian@temptwo by 100\relax +\advance\XePersian@temp by -\XePersian@temptwo +\XePersian@temptwo=\XePersian@tempthree % T := T + ((MY-1) div 400) +\divide\XePersian@temptwo by 400\relax +\advance\XePersian@temp by \XePersian@temptwo +\advance\XePersian@tempthree by -611 % Number of Kabise years +\XePersian@temptwo=\XePersian@tempthree % T := T - ((SY+10) div 33) * 8 +\divide\XePersian@temptwo by 33\relax +\multiply\XePersian@temptwo by 8\relax +\advance\XePersian@temp by -\XePersian@temptwo +\XePersian@temptwo=\XePersian@tempthree % +\divide\XePersian@temptwo by 33\relax +\multiply\XePersian@temptwo by 33\relax +\advance\XePersian@tempthree by -\XePersian@temptwo +\ifnum\XePersian@tempthree=32\advance\XePersian@temp by 1\fi % if (SY+10) mod 33=32 then Inc(T); +\divide\XePersian@tempthree by 4\relax % T := T - ((SY+10) mod 33) div 4 +\advance\XePersian@temp by -\XePersian@tempthree +\advance\XePersian@temp by -137 % T := T - 137 Adjust the value +\XePersian@persiani=31 +\advance\XePersian@persiani by -\XePersian@temp % now 31 - T is the persiani +\XePersian@persianii = 30\relax +\ifXePersian@kabiseh + \XePersian@persianiii = 30\relax +\else + \XePersian@persianiii = 29\relax +\fi +\XePersian@persianiv = 31\relax +\XePersian@persianv = 31\relax +\XePersian@persianvi = 31\relax +\XePersian@persianvii = 31\relax +\XePersian@persianviii= 31\relax +\XePersian@persianix = 31\relax +\XePersian@persianx = 30\relax +\XePersian@persianxi = 30\relax +\XePersian@persianxii = 30\relax +\XePersian@persianxiii= 30\relax +\XePersian@dn= 0\relax +\XePersian@sn= 0\relax +\XePersian@mminusone=\XePersian@m +\advance\XePersian@mminusone by -1\relax +\XePersian@i=0\relax +\ifnum\XePersian@i < \XePersian@mminusone +\loop +\advance \XePersian@i by 1\relax +\advance\XePersian@dn by \csname XePersian@latin\romannumeral\the\XePersian@i\endcsname +\ifnum\XePersian@i<\XePersian@mminusone \repeat +\fi +\advance \XePersian@dn by \XePersian@d +\XePersian@i=1\relax +\XePersian@sn = \XePersian@persiani +\ifnum \XePersian@sn<\XePersian@dn +\loop +\advance \XePersian@i by 1\relax +\advance\XePersian@sn by \csname XePersian@persian\romannumeral\the\XePersian@i\endcsname +\ifnum \XePersian@sn<\XePersian@dn \repeat +\fi +\ifnum \XePersian@i < 4 + \XePersian@m = 9 \advance\XePersian@m by \XePersian@i + \advance \XePersian@y by -622\relax +\else + \XePersian@m = \XePersian@i \advance \XePersian@m by -3\relax + \advance \XePersian@y by -621\relax +\fi +\advance\XePersian@sn by -\csname XePersian@persian\romannumeral\the\XePersian@i% +\endcsname +\ifnum\XePersian@i = 1 + \XePersian@d = \XePersian@dn \advance \XePersian@d by 30 \advance\XePersian@d by -\XePersian@persiani +\else + \XePersian@d = \XePersian@dn \advance \XePersian@d by -\XePersian@sn +\fi +\newcommand*{\persiantoday}{% +\number\XePersian@d\space% +\XePersian@persian@month{\XePersian@m}\space\number\XePersian@y% +} +\let\persianyear\XePersian@y +\let\persianmonth\XePersian@m +\let\persianday\XePersian@d +\def\XePersian@persian@month#1{\ifcase#1\or فروردین\or +اردیبهشت\or +خرداد\or تیر\or +مرداد\or +شهریور\or مهر\or +آبان\or آذر\or +دی\or بهمن\or +اسفند\fi} +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `xepersian-persiancal.sty'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty new file mode 100644 index 00000000000..faaa91f92af --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty @@ -0,0 +1,621 @@ +%% +%% This is file `xepersian.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `xepersian.sty') +%% +%% ______________________________________ +%% Copyright © 2008–2013 Persian TeX Group +%% +%% License information appended. +%% +%% + +\NeedsTeXFormat{LaTeX2e} +\def\xepersianversion{v12.1} +\def\xepersiandate{2013/04/04} +\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space +Persian typesetting in XeLaTeX] +\RequirePackage{fontspec} +\RequirePackage{xepersian-persiancal} +\RequirePackage{xepersian-mathsdigitspec} +\RequirePackage[RTLdocument]{bidi} +\edef\xepersianinfo{% +xepersian package (Persian for LaTeX over XeTeX)^^J +Description: The package supports Persian^^J +typesetting, using fonts provided in the distribution.^^J +Copyright © 2008–2013 Persian TeX Group^^J +\xepersianversion, \xepersiandate^^J +License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J +Location on CTAN: /macros/xetex/latex/xepersian} +\typeout{\xepersianinfo} +\edef\xepersian@everyjob{\the\everyjob} +\everyjob{\xepersian@everyjob\typeout{\xepersianinfo}} +\def\prq{«} +\def\plq{»} +\def\xepersian@cmds@temp#1{% + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname xepersian@#1\endcsname\relax + \begingroup + \escapechar=-1 % + \edef\x{\expandafter\meaning\csname#1\endcsname}% + \def\y{#1}% + \def\z##1->{}% + \edef\y{\expandafter\z\meaning\y}% + \expandafter\endgroup + \ifx\x\y + \expandafter\def\csname xepersian@#1\expandafter\endcsname + \expandafter{% + \csname#1\endcsname + }% + \fi + \fi +}% +\xepersian@cmds@temp{shellescape} +\newif\ifwritexviii +\ifnum\xepersian@shellescape=1\relax + \writexviiitrue +\else +\writexviiifalse +\fi +\newfontscript{Parsi}{arab} +\newfontlanguage{Parsi}{FAR} +\ExplSyntaxOn +\DeclareDocumentCommand \settextfont { O{} m } { + \fontspec_select:nn{Script=Parsi,Language=Parsi,Mapping=parsidigits,#1}{#2} + \use:x { + \exp_not:N \DeclareRobustCommand \exp_not:N \persianfont { + \exp_not:N \fontencoding {\g_fontspec_encoding_tl} + \exp_not:N \fontfamily {\l_fontspec_family_tl} \exp_not:N \selectfont + } + } + \cs_set_eq:NN \rmdefault \l_fontspec_family_tl + \normalfont +} +\settextfont[ExternalLocation,BoldFont={persian-modern-bold},BoldItalicFont={persian-modern-bolditalic},ItalicFont={persian-modern-italic},SlantedFont={persian-modern-oblique},BoldSlantedFont={persian-modern-boldoblique}]{persian-modern-regular} +\setdigitfont[ExternalLocation,BoldFont={persian-modern-bold},BoldItalicFont={persian-modern-bolditalic},ItalicFont={persian-modern-italic},SlantedFont={persian-modern-oblique},BoldSlantedFont={persian-modern-boldoblique}]{persian-modern-regular} +\DeclareDocumentCommand \setlatintextfont { O{} m } { + \fontspec_select:nn{Mapping=tex-text,#1}{#2} + \use:x { + \exp_not:N \DeclareRobustCommand \exp_not:N \latinfont { + \exp_not:N \fontencoding {\g_fontspec_encoding_tl} + \exp_not:N \fontfamily {\l_fontspec_family_tl} \exp_not:N \selectfont + } + } +} +\setlatintextfont[ExternalLocation,BoldFont={lmroman10-bold},BoldItalicFont={lmroman10-bolditalic},ItalicFont={lmroman10-italic},SmallCapsFont={lmromancaps10-regular},SlantedFont={lmromanslant10-regular},BoldSlantedFont={lmromanslant10-bold}]{lmroman10-regular} +\cs_set_eq:NN \setlatinsansfont \setsansfont +\cs_set_eq:NN \setlatinmonofont \setmonofont +\DeclareDocumentCommand \defpersianfont { m O{} m } { + \fontspec_select:nn{Script=Parsi,Language=Parsi,Mapping=parsidigits,#2}{#3} + \use:x { + \exp_not:N \DeclareRobustCommand \exp_not:N #1 { + \exp_not:N \fontencoding {\g_fontspec_encoding_tl} + \exp_not:N \fontfamily {\l_fontspec_family_tl} \exp_not:N \selectfont + } + } +} +\DeclareDocumentCommand \deflatinfont { m O{} m } { + \fontspec_select:nn{Mapping=tex-text,#2}{#3} + \use:x { + \exp_not:N \DeclareRobustCommand \exp_not:N #1 { + \exp_not:N \fontencoding {\g_fontspec_encoding_tl} + \exp_not:N \fontfamily {\l_fontspec_family_tl} \exp_not:N \selectfont + } + } +} +\newcommand\persiansfdefault{} +\newcommand\persianttdefault{} +\newcommand\iranicdefault{} +\newcommand\navardefault{} +\newcommand\pookdefault{} +\newcommand\sayehdefault{} +\DeclareRobustCommand\persiansffamily + {\not@math@alphabet\persiansffamily\mathpersiansf + \fontfamily\persiansfdefault\selectfont} +\DeclareRobustCommand\persianttfamily + {\not@math@alphabet\persianttfamily\mathpersiantt + \fontfamily\persianttdefault\selectfont} +\DeclareRobustCommand\iranicfamily + {\not@math@alphabet\iranicfamily\mathiranic + \fontfamily\iranicdefault\selectfont} +\DeclareRobustCommand\navarfamily + {\not@math@alphabet\navarfamily\mathnavar + \fontfamily\navardefault\selectfont} +\DeclareRobustCommand\pookfamily + {\not@math@alphabet\pookfamily\mathpook + \fontfamily\pookdefault\selectfont} +\DeclareRobustCommand\sayehfamily + {\not@math@alphabet\sayehfamily\mathsayeh + \fontfamily\sayehdefault\selectfont} +\DeclareTextFontCommand{\textpersiansf}{\persiansffamily} +\DeclareTextFontCommand{\textpersiantt}{\persianttfamily} +\DeclareTextFontCommand{\textiranic}{\iranicfamily} +\DeclareTextFontCommand{\textnavar}{\navarfamily} +\DeclareTextFontCommand{\textpook}{\pookfamily} +\DeclareTextFontCommand{\textsayeh}{\sayehfamily} +\DeclareDocumentCommand \setpersiansansfont { O{} m } { + \fontspec_set_family:Nnn \persiansfdefault {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1}{#2} + \normalfont +} +\DeclareDocumentCommand \setpersianmonofont { O{} m } { + \fontspec_set_family:Nnn \persianttdefault {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1}{#2} + \normalfont +} +\DeclareDocumentCommand \setnavarfont { O{} m } { + \fontspec_set_family:Nnn \navardefault {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1}{#2} + \normalfont +} +\DeclareDocumentCommand \setpookfont { O{} m } { + \fontspec_set_family:Nnn \pookdefault {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1}{#2} + \normalfont +} +\setpookfont[ExternalLocation,ItalicFont={persian-modern-italicoutline},SlantedFont={persian-modern-obliqueoutline}]{persian-modern-outline} +\DeclareDocumentCommand \setsayehfont { O{} m } { + \fontspec_set_family:Nnn \sayehdefault {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1}{#2} + \normalfont +} +\setsayehfont[ExternalLocation,ItalicFont={persian-modern-italicshadow},SlantedFont={persian-modern-obliqueshadow}]{persian-modern-shadow} +\DeclareDocumentCommand \setiranicfont { O{} m } { + \fontspec_set_family:Nnn \iranicdefault {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1}{#2} + \normalfont +} +\ExplSyntaxOff +\setiranicfont[ExternalLocation,BoldFont={persian-modern-boldoblique}]{persian-modern-oblique} +\def\resetlatinfont{% +\let\normalfont\latinfont% +\let\reset@font\normalfont% +\latinfont} +\def\setpersianfont{% +\let\normalfont\persianfont% +\let\reset@font\normalfont% +\persianfont} +\bidi@newrobustcmd*{\lr}[1]{\LRE{\@Latintrue\latinfont#1}} +\bidi@newrobustcmd*{\rl}[1]{\RLE{\@Latinfalse\persianfont#1}} +\def\latin{\LTR\LatinAlphs\@Latintrue\@RTL@footnotefalse\resetlatinfont} +\def\endlatin{\endLTR} +\def\persian{\RTL\PersianAlphs\@RTL@footnotetrue\setpersianfont} +\def\endpersian{\endRTL} +\let\originaltoday=\today +\def\latintoday{\lr{\originaltoday}} +\def\today{\rl{\persiantoday}} +\def \@LTRmarginparreset {% + \reset@font + \latinfont + \normalsize + \@minipagetrue + \everypar{\@minipagefalse\everypar{}\beginL}% +} +\DeclareRobustCommand\Latincite{% + \@ifnextchar [{\@tempswatrue\@Latincitex}{\@tempswafalse\@Latincitex[]}} +\def\@Latincitex[#1]#2{\leavevmode + \let\@citea\@empty + \@cite{\lr{\@for\@citeb:=#2\do + {\@citea\def\@citea{,\penalty\@m\ }% + \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}% + \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi + \@ifundefined{b@\@citeb}{\hbox{\reset@font\bfseries ?}% + \G@refundefinedtrue + \@latex@warning + {Citation `\@citeb' on page \thepage \space undefined}}% + {\@cite@ofmt{\csname b@\@citeb\endcsname}}}}}{#1}} +\def\@outputpage{% +\begingroup % the \endgroup is put in by \aftergroup + \let \protect \noexpand + \@resetactivechars + \global\let\@@if@newlist\if@newlist + \global\@newlistfalse + \@parboxrestore + \shipout \vbox{% + \set@typeset@protect + \aftergroup \endgroup + \aftergroup \set@typeset@protect + % correct? or just restore by ending + % the group? + \if@specialpage + \global\@specialpagefalse\@nameuse{ps@\@specialstyle}% + \fi + \if@twoside + \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot + \let\@themargin\oddsidemargin + \else \let\@thehead\@evenhead + \let\@thefoot\@evenfoot \let\@themargin\evensidemargin + \fi + \ifx\@thehead\@empty \let\@thehead\hfil \fi + \ifx\@thefoot\@empty \let\@thefoot\hfil \fi + \else %% not @twoside + \ifx\@oddhead\@empty \let\@thehead\hfil \fi + \ifx\@oddfoot\@empty \let\@thefoot\hfil \fi + \fi + \reset@font + \normalsize + \if@RTLmain\setpersianfont\else\resetlatinfont\fi + \normalsfcodes + \let\label\@gobble + \let\index\@gobble + \let\glossary\@gobble + \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@ + \@begindvi + \vskip \topmargin + \moveright\@themargin \vbox {% + \setbox\@tempboxa \vbox to\headheight{% + \vfil + \color@hbox + \normalcolor + \hb@xt@\textwidth{\if@RTLmain\@RTLtrue\beginR\else\@RTLfalse\beginL\fi\@thehead\if@RTLmain\endR\else\endL\fi}% + \color@endbox + }% %% 22 Feb 87 + \dp\@tempboxa \z@ + \box\@tempboxa + \vskip \headsep + \box\@outputbox + \baselineskip \footskip + \color@hbox + \normalcolor + \hb@xt@\textwidth{\if@RTLmain\@RTLtrue\beginR\else\@RTLfalse\beginL\fi\@thefoot\if@RTLmain\endR\else\endL\fi}% + \color@endbox + }% + }% + \global\let\if@newlist\@@if@newlist + \global \@colht \textheight + \stepcounter{page}% + \let\firstmark\botmark +} +\newcommand\twocolumnstableofcontents{% +\@ifpackageloaded{multicol}{% + \begin{multicols}{2}[\section*{\contentsname}]% + \small + \@starttoc{toc}% + \end{multicols}} +{\PackageError{xepersian}{Oops! you should load multicol package before xepersian package for being able to use this command}{}}} +\def\XePersian{\leavevmode$\smash{\hbox{X\lower.5ex + \hbox{\kern-.125em\reflect{E}}Persian}}$} +\def\figurename{\if@RTL شکل\else Figure\fi} +\def\tablename{\if@RTL جدول\else Table\fi} +\def\contentsname{\if@RTL فهرست مطالب\else Contents\fi} +\def\listfigurename{\if@RTL فهرست تصاویر\else List of Figures\fi} +\def\listtablename{\if@RTL فهرست جداول\else List of Tables\fi} +\def\appendixname{\if@RTL پیوست\else Appendix\fi} +\def\indexname{\if@RTL نمایه\else Index\fi} +\def\refname{\if@RTL مراجع\else References\fi} +\def\abstractname{\if@RTL چکیده\else Abstract\fi} +\def\partname{\if@RTL بخش\else Part\fi} +\def\datename{\if@RTL تاریخ:\else Date:\fi} +\def\@@and{\if@RTL و\else and\fi} +\def\bibname{\if@RTL کتابنامه\else Bibliography\fi} +\def\chaptername{\if@RTL فصل\else Chapter\fi} +\def\ccname{\if@RTL رونوشت\else cc\fi} +\def\enclname{\if@RTL پیوست\else encl\fi} +\def\pagename{\if@RTL صفحه\else Page\fi} +\def\headtoname{\if@RTL به\else To\fi} +\def\proofname{\if@RTL اثبات\else Proof\fi} +\def\@harfi#1{\ifcase#1\or آ\or ب\or پ\or ت\or ث\or +ج\or چ\or ح\or خ\or د\or ذ\or ر\or ز\or ژ\or س\or ش\or ص\or ض\or ط\or ظ\or ع\or غ\or +ف\or ق\or ک\or گ\or ل\or م\or ن\or و\or ه\or ی\else\@ctrerr\fi} +\def\harfi#1{\expandafter\@harfi\csname c@#1\endcsname} +\let\harfinumeral\@harfi +\newcommand{\adadi}[1]{% +\expandafter\@adadi\csname c@#1\endcsname% +} +\newcommand{\@adadi}[1]{% +\xepersian@numberstring{#1}\xepersian@yekanii{صفر}{}% +} +\let\adadinumeral\@adadi% +\def\xepersian@numberoutofrange#1#2{% +\PackageError{xepersian}{The number `#1' is too large % +to be formatted using xepersian}{The largest possible % +number is 999,999,999.}% +} +\def\xepersian@numberstring#1#2#3#4{% +\ifnum\number#1<\@ne% +#3% +\else\ifnum\number#1<1000000000 % +\expandafter\xepersian@adadi\expandafter{\number#1}#2% +\else% +\xepersian@numberoutofrange{#1}{#4}% +\fi\fi% +} +\def\xepersian@adadi#1#2{% +\expandafter\xepersian@@adadi% +\ifcase% +\ifnum#1<10 1% +\else\ifnum#1<100 2% +\else\ifnum#1<\@m 3% +\else\ifnum#1<\@M 4% +\else\ifnum#1<100000 5% +\else\ifnum#1<1000000 6% +\else\ifnum#1<10000000 7% +\else\ifnum#1<100000000 8% +\else9% +\fi\fi\fi\fi\fi\fi\fi\fi % +\or00000000#1% case 1: Add 8 leading zeros +\or0000000#1% case 2: Add 7 leading zeros +\or000000#1% case 3: Add 6 leading zeros +\or00000#1% case 4: Add 5 leading zeros +\or0000#1% case 5: Add 4 leading zeros +\or000#1% case 6: Add 3 leading zeros +\or00#1% case 7: Add 2 leading zeros +\or0#1% case 8: Add 1 leading zero +\or#1% case 9: Add no leading zeros +\or% +\@nil#2% +\fi% +} +\def\xepersian@@adadi#1#2#3#4#5#6#7\or#8\@nil#9{% +\ifnum#1#2#3>\z@ +\xepersian@milyoongan#1#2#3% +\ifnum#7>\z@\ifnum#4#5#6>\z@\ و \else\ و \fi\else\ifnum#4#5#6>\z@\ و \fi\fi% +\fi% +\ifnum#4#5#6>\z@% +\xepersian@sadgan#4#5#6{#1#2#3}{#4#5}\xepersian@yekani% +\ifnum#4#5#6>\@ne\fi% +هزار% +\ifnum#7>\z@\ و \fi% +\fi% +\xepersian@sadgan#7{#4#5#6}1#9% +} +\def\xepersian@milyoongan#1#2#3{% +\ifnum#1#2#3=\@ne% +\xepersian@sadgan#1#2#301\xepersian@yekaniii% +% +میلیون% +\else% +\xepersian@sadgan#1#2#301\xepersian@yekanii% +% +میلیون% +\fi% +} +\def\xepersian@sadgan#1#2#3#4#5#6{% +\ifnum#1>\z@% +\ifnum#4#1>\@ne\xepersian@yekaniv#1\fi% +صد% +\ifnum#2#3>\z@\ و \fi% +\fi% +\ifnum#2#3<20% +\ifnum#5#2#3>\@ne#6{#2#3}\fi% +\else% +\xepersian@dahgan#2% +\ifnum#3>\z@\ و \xepersian@yekani#3\fi% +#60% +\fi% +} +\def\xepersian@yekani#1{% +\ifcase#1\@empty\or یک\or دو\or سه\or چهار\or پنج\or شش% +\or هفت\or هشت\or نه\or ده\or یازده\or دوازده\or سیزده% +\or چهارده\or پانزده\or شانزده\or هفده% +\or هجده\or نوزده\fi% +} +\def\xepersian@yekanii#1{% +\ifcase#1\@empty\or یک\else\xepersian@yekani{#1}\fi% +} +\def\xepersian@yekaniii#1{% +\ifcase#1\@empty\or یک\else\xepersian@yekani{#1}\fi% +} +\def\xepersian@yekaniv#1{% +\ifcase#1\@empty\or\or دوی\or سی\or چهار\or پان\or شش% +\or هفت\or هشت\or نه\fi% +} +\def\xepersian@dahgan#1{% +\ifcase#1\or\or بیست\or سی\or چهل% +\or پنجاه\or شصت\or هفتاد\or هشتاد% +\or نود\fi% +} +\newcommand{\tartibi}[1]{% +\expandafter\@tartibi\csname c@#1\endcsname% +} +\newcommand{\@tartibi}[1]{% +\xepersian@numberstring@tartibi{#1}\xepersian@tartibi{صفرم}{م}% +} +\let\tartibinumeral\@tartibi% +\def\xepersian@numberstring@tartibi#1#2#3#4{% +\ifnum\number#1<\@ne% +#3% +\else\ifnum\number#1<1000000000 % +\expandafter\xepersian@adadi@tartibi\expandafter{\number#1}#2% +\else% +\xepersian@numberoutofrange{#1}{#4}% +\fi\fi% +} +\def\xepersian@adadi@tartibi#1#2{% +\expandafter\xepersian@@adadi@tartibi% +\ifcase% +\ifnum#1<10 1% +\else\ifnum#1<100 2% +\else\ifnum#1<\@m 3% +\else\ifnum#1<\@M 4% +\else\ifnum#1<100000 5% +\else\ifnum#1<1000000 6% +\else\ifnum#1<10000000 7% +\else\ifnum#1<100000000 8% +\else9% +\fi\fi\fi\fi\fi\fi\fi\fi % +\or00000000#1% case 1: Add 8 leading zeros +\or0000000#1% case 2: Add 7 leading zeros +\or000000#1% case 3: Add 6 leading zeros +\or00000#1% case 4: Add 5 leading zeros +\or0000#1% case 5: Add 4 leading zeros +\or000#1% case 6: Add 3 leading zeros +\or00#1% case 7: Add 2 leading zeros +\or0#1% case 8: Add 1 leading zero +\or#1% case 9: Add no leading zeros +\or% +\@nil#2% +\fi% +} +\def\xepersian@@adadi@tartibi#1#2#3#4#5#6#7\or#8\@nil#9{% +\ifnum#1#2#3>\z@ +\xepersian@milyoongan@tartibi#1#2#3% +\ifnum#7>\z@\ifnum#4#5#6>\z@\ و \else\ و \fi\else\ifnum#4#5#6>\z@\ و \fi\fi% +\fi% +\ifnum#4#5#6>\z@% +\xepersian@sadgan#4#5#6{#1#2#3}{#4#5}\xepersian@yekani% +\ifnum#4#5#6>\@ne \fi% +هزار% +\ifnum#7>\z@\ و \fi% +\fi% +\xepersian@sadgan@tartibi#7{#4#5#6}1#9% +} +\def\xepersian@milyoongan@tartibi#1#2#3{% +\ifnum#1#2#3=\@ne% +\xepersian@sadgan@tartibi#1#2#301\xepersian@yekaniii% +% +میلیون% +\else% +\xepersian@sadgan#1#2#301\xepersian@yekanii% +% +میلیون% +\fi% +} +\def\xepersian@sadgan@tartibi#1#2#3#4#5#6{% +\ifnum#1>\z@% +\ifnum#4#1>\@ne\xepersian@yekaniv#1\fi% +صد% +\ifnum#2#3>\z@\ و \fi% +\fi% +\ifnum#2#3<20% +\ifnum#5#2#3>\@ne\ifnum#1#2#3#4#5=10001 اول\else#6{#2#3}\fi\fi% +\else% +\xepersian@dahgan#2% +\ifnum#3>\z@\ و \xepersian@yekanv#3\fi% +#60% +\fi% +} +\def\xepersian@tartibi#1{% +\ifcase#1م\or یکم\or دوم\or سوم\or چهارم% +\or پنجم\or ششم\or هفتم\or هشتم\or نهم% +\or دهم\or یازدهم\or دوازدهم\or سیزدهم% +\or چهاردهم\or پانزدهم\or شانزدهم% +\or هفدهم\or هجدهم\or نوزدهم\fi% +} +\def\xepersian@yekanv#1{% +\ifcase#1\@empty\or یک\or دو\or سو\or چهار\or پنج\or شش% +\or هفت\or هشت\or نه\or ده\or یازده\or دوازده\or سیزده% +\or چهارده\or پانزده\or شانزده\or هفده% +\or هجده\or نوزده\fi% +} +\providecommand*{\xpg@warning}[1]{% + \PackageWarning{XePersian}% + {#1}} +\if@bidi@csundef{abjadnumeral}{% +\def\abjadnumeral#1{% +\ifnum#1>1999 \xpg@warning{Illegal value (#1) for abjad numeral} {#1} +\else + \ifnum#1<\z@\space\xpg@warning{Illegal value (#1) for abjad numeral}% + \else + \ifnum#1<10\expandafter\abj@num@i\number#1% + \else + \ifnum#1<100\expandafter\abj@num@ii\number#1% + \else + \ifnum#1<\@m\expandafter\abj@num@iii\number#1% + \else + \ifnum#1<\@M\expandafter\abj@num@iv\number#1%since #1<2000, we must have 1000 + \fi + \fi + \fi + \fi + \fi +\fi +} +\def\abjad@zero{} +\def\abj@num@i#1{% + \ifcase#1\or آ\or ب\or ج\or د% + \or ه\or و\or ز\or ح\or ط\fi + \ifnum#1=\z@\abjad@zero\fi} +\def\abj@num@ii#1{% + \ifcase#1\or ی\or ک\or ل\or م\or ن% + \or س\or ع\or ف\or ص\fi + \ifnum#1=\z@\fi\abj@num@i} +\def\abj@num@iii#1{% + \ifcase#1\or ق\or ر\or ش\or ت\or ث% + \or خ\or ذ\or ض\or ظ\fi + \ifnum#1=\z@\fi\abj@num@ii} +\def\abj@num@iv#1{% + \ifcase#1\or غ\fi + \ifnum#1=\z@\fi\abj@num@iii} +}{} + \let\@latinalph\@alph% + \let\@latinAlph\@Alph% +\def\PersianAlphs{% + \let\@alph\abjadnumeral% + \let\@Alph\abjadnumeral% +} +\def\LatinAlphs{% + \let\@alph\@latinalph% + \let\@Alph\@latinAlph% +} +\PersianAlphs +\@ifdefinitionfileloaded{loadingorder-bidi}{\input{loadingorder-bidi-xepersian.def}}{} +\@ifpackageloaded{listings}{\input{listings-xepersian.def}}{} +\@ifpackageloaded{algorithmic}{\input{algorithmic-xepersian.def}}{} +\@ifpackageloaded{algorithm}{\input{algorithm-xepersian.def}}{} +\@ifpackageloaded{backref}{\input{backref-xepersian.def}}{} +\@ifpackageloaded{flowfram}{\input{flowfram-xepersian.def}}{} +\@ifpackageloaded{bidi}{\input{footnote-bidi-xepersian.def}}{} +\@ifpackageloaded{bidituftesidenote}{\input{bidituftesidenote-xepersian.def}}{} +\@ifpackageloaded{bidicode}{\input{bidicode-xepersian.def}}{} +\@ifpackageloaded{breqn}{\input{breqn-xepersian.def}}{} +\@ifpackageloaded{enumerate}{\input{enumerate-xepersian.def}}{} +\@ifpackageloaded{empheq}{\input{empheq-xepersian.def}}{} +\@ifpackageloaded{framed}{\input{framed-bidi-xepersian.def}}{} +\@ifpackageloaded{hyperref}{\input{hyperref-xepersian.def}}{} +\@ifpackageloaded{minitoc}{\input{minitoc-xepersian.def}}{} +\@ifpackageloaded{natbib}{\input{natbib-xepersian.def}}{} +\@ifpackageloaded{tkz-linknodes}{\input{tkz-linknodes-xepersian.def}}{} +\@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xepersian.def}}}{} +\@ifclassloaded{article}{\input{article-xepersian.def}}{} +\@ifclassloaded{extarticle}{\input{extarticle-xepersian.def}}{} +\@ifclassloaded{artikel1}{\input{artikel1-xepersian.def}}{} +\@ifclassloaded{artikel2}{\input{artikel2-xepersian.def}}{} +\@ifclassloaded{artikel3}{\input{artikel3-xepersian.def}}{} +\@ifclassloaded{amsart}{\input{amsart-xepersian.def}}{} +\@ifclassloaded{bidimoderncv}{\input{bidimoderncv-xepersian.def}}{} +\@ifclassloaded{report}{\input{report-xepersian.def}}{} +\@ifclassloaded{extreport}{\input{extreport-xepersian.def}}{} +\@ifclassloaded{rapport1}{\input{rapport1-xepersian.def}}{} +\@ifclassloaded{rapport3}{\input{rapport3-xepersian.def}}{} +\@ifclassloaded{scrartcl}{\input{scrartcl-xepersian.def}}{} +\@ifclassloaded{scrbook}{\input{scrbook-xepersian.def}}{} +\@ifclassloaded{scrreprt}{\input{scrreprt-xepersian.def}}{} +\@ifclassloaded{amsbook}{\input{amsbook-xepersian.def}}{} +\@ifclassloaded{boek3}{\input{boek3-xepersian.def}}{} +\@ifclassloaded{boek}{\input{boek-xepersian.def}}{} +\@ifclassloaded{bookest}{\input{bookest-xepersian.def}}{} +\@ifclassloaded{extbook}{\input{extbook-xepersian.def}}{} +\@ifclassloaded{book}{\input{book-xepersian.def}}{} +\@ifclassloaded{refrep}{\input{refrep-xepersian.def}}{} +\@ifclassloaded{memoir}{\input{memoir-xepersian.def}}{} +\@ifclassloaded{imsproc}{\input{imsproc-xepersian.def}}{} +\DeclareOption{Kashida}{\input{kashida-xepersian.def}} +\DeclareOption{localise}{\input{localise-xepersian.def}} +\DeclareOption{extrafootnotefeatures}{% +\input{extrafootnotefeatures.def}% +\input{extrafootnotefeatures-xepersian.def}% +} +\DeclareOption{quickindex}{% +\ifwritexviii% +\@ifclassloaded{memoir}{\PackageError{xepersian}{This feature does not yet work with the memoir class}{}}{% +\renewcommand\printindex{\newpage% +\immediate\closeout\@indexfile +\immediate\write18{xindy -L persian -C utf8 -M texindy -M page-ranges \jobname.idx} +\@input@{\jobname.ind}}}% +\else +\PackageError{xepersian}{“shell escape” (or “write18”) is not enabled. You need to run “xelatex --shell-escape” on your TeX document for this feature to work}{} +\fi} +\ExecuteOptions{localise} +\ProcessOptions +%% +%% Copyright © 2008–2013 Persian TeX Group <persiantexdev@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `xepersian.sty'. |