diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty index eca7da9bb04..9b49d05765b 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty @@ -7,14 +7,17 @@ %% xepersian.dtx (with options: `xepersian-mathsdigitspec.sty') %% %% ______________________________________ -%% Copyright © 2008–2012 Vafa Khalighi +%% Copyright © 2008–2013 Vafa Khalighi %% %% License information appended. %% %% + \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{xepersian-mathsdigitspec} - [2012/01/01 v1.0.2 Unicode Persian maths digits in XeLaTeX] + [2013/04/01 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{% @@ -90,9 +93,9 @@ \@bsphack{\setbox0=\hbox{\cite{#1}}}\@esphack} \newcommand\xepersian@PackageInfo[1]{\PackageInfo{xepersian-mathsdigitspec}{#1}} \newcommand\SetMathCode[4]{% - \XeTeXmathcode#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax} + \Umathcode#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax} \newcommand\SetMathCharDef[4]{% - \XeTeXmathchardef#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax} + \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 @@ -101,7 +104,7 @@ \cs_new_eq:NN \orig_mathtt:n \mathtt \NewDocumentCommand \new@mathbf { m } { \orig_mathbf:n { - \prg_stepwise_inline:nnnn { `0 } { \c_one } { `9 } { + \int_step_inline:nnnn { `0 } { \c_one } { `9 } { \mathcode ##1 = \numexpr "100 * \symnew@mathbf@font@digits + ##1 \relax } #1 @@ -109,7 +112,7 @@ } \NewDocumentCommand \new@mathit { m } { \orig_mathit:n { - \prg_stepwise_inline:nnnn { `0 } { \c_one } { `9 } { + \int_step_inline:nnnn { `0 } { \c_one } { `9 } { \mathcode ##1 = \numexpr "100 * \symnew@mathit@font@digits + ##1 \relax } #1 @@ -117,7 +120,7 @@ } \NewDocumentCommand \new@mathrm { m } { \orig_mathrm:n { - \prg_stepwise_inline:nnnn { `0 } { \c_one } { `9 } { + \int_step_inline:nnnn { `0 } { \c_one } { `9 } { \mathcode ##1 = \numexpr "100 * \symnew@mathrm@font@digits + ##1 \relax } #1 @@ -125,7 +128,7 @@ } \NewDocumentCommand \new@mathsf{ m } { \orig_mathsf:n { - \prg_stepwise_inline:nnnn { `0 } { \c_one } { `9 } { + \int_step_inline:nnnn { `0 } { \c_one } { `9 } { \mathcode ##1 = \numexpr "100 * \symnew@mathsf@font@digits + ##1 \relax } #1 @@ -133,7 +136,7 @@ } \NewDocumentCommand \new@mathtt{ m } { \orig_mathtt:n { - \prg_stepwise_inline:nnnn { `0 } { \c_one } { `9 } { + \int_step_inline:nnnn { `0 } { \c_one } { `9 } { \mathcode ##1 = \numexpr "100 * \symnew@mathtt@font@digits + ##1 \relax } #1 @@ -219,7 +222,7 @@ \everymath\expandafter{\the\everymath\SetMathsDigits} \g@addto@macro\document{\everydisplay\expandafter{\the\everydisplay\SetMathsDigits}} %% -%% Copyright © 2008–2012 Vafa Khalighi <vafak12@gmail.com> +%% Copyright © 2008–2013 Vafa Khalighi <vafa[dot]kgh[at]gmail[dot]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 |