diff options
author | Karl Berry <karl@freefriends.org> | 2010-05-14 18:38:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-05-14 18:38:35 +0000 |
commit | afc4f8ea64aab19792d8dfc601c957eea844ff13 (patch) | |
tree | 79617fdeaf2681333f816d72a959abb6257da592 /Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty | |
parent | 7d90c1647c043c87a58609fbc1f9a5fe179dd916 (diff) |
xepersian update (12may10)
git-svn-id: svn://tug.org/texlive/trunk@18262 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty index be84093a13e..29be7643a9f 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty @@ -10,7 +10,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{xepersian-mathsdigitspec} - [2009/04/22 v1.0.1 Unicode Persian maths digits in XeLaTeX (Author: Vafa Khalighi)] + [2010/07/25 v0.6 Unicode Persian maths digits in XeLaTeX] \@zf@mathfalse \def\@preamblecmds{} \newcommand\not@onlypreamble[1]{{% @@ -38,21 +38,17 @@ \XKV@rm}{#2}}\@tempa \xepersian@PackageInfo{Defining the default Persian maths digits font as '#2'} \DeclareSymbolFont{OPERATORS} {EU1}{\zf@family} {m}{n} - \SetSymbolFont{OPERATORS}{bold}{EU1}{\zf@family} {bx}{n} - \DeclareMathAlphabet {\mathit}{EU1}{\zf@family}{m}{it} - \DeclareSymbolFontAlphabet{\mathrm} {OPERATORS} - \DeclareMathAlphabet {\mathbf}{EU1}{\zf@family}{bx}{n} \def\persianmathsdigits{% - \SetMathCode{`0}{\mathalpha}{OPERATORS}{"06F0} - \SetMathCode{`1}{\mathalpha}{OPERATORS}{"06F1} - \SetMathCode{`2}{\mathalpha}{OPERATORS}{"06F2} - \SetMathCode{`3}{\mathalpha}{OPERATORS}{"06F3} - \SetMathCode{`4}{\mathalpha}{OPERATORS}{"06F4} - \SetMathCode{`5}{\mathalpha}{OPERATORS}{"06F5} - \SetMathCode{`6}{\mathalpha}{OPERATORS}{"06F6} - \SetMathCode{`7}{\mathalpha}{OPERATORS}{"06F7} - \SetMathCode{`8}{\mathalpha}{OPERATORS}{"06F8} - \SetMathCode{`9}{\mathalpha}{OPERATORS}{"06F9} + \SetMathCode{`0}{\mathord}{OPERATORS}{"06F0} + \SetMathCode{`1}{\mathord}{OPERATORS}{"06F1} + \SetMathCode{`2}{\mathord}{OPERATORS}{"06F2} + \SetMathCode{`3}{\mathord}{OPERATORS}{"06F3} + \SetMathCode{`4}{\mathord}{OPERATORS}{"06F4} + \SetMathCode{`5}{\mathord}{OPERATORS}{"06F5} + \SetMathCode{`6}{\mathord}{OPERATORS}{"06F6} + \SetMathCode{`7}{\mathord}{OPERATORS}{"06F7} + \SetMathCode{`8}{\mathord}{OPERATORS}{"06F8} + \SetMathCode{`9}{\mathord}{OPERATORS}{"06F9} \SetMathCode{`\%}{\mathbin}{OPERATORS}{`٪} \SetMathCharDef{\decimalseparator}{\mathpunct}{OPERATORS}{"066B}} } @@ -92,9 +88,10 @@ \def\AutoMathsDigits{\def\SetMathsDigits{\ifx\persianmathsdigits\undefied\else\if@Latin\else\persianmathsdigits\fi\fi}} \AutoMathsDigits \everymath{\SetMathsDigits} -\everydisplay{\SetMathsDigits} +\g@addto@macro\document{\everydisplay{\predisplaydirection=0\SetMathsDigits} +\@ifpackageloaded{amsmath}{\everydisplay\@xp{\the\everydisplay \@displaytrue}}{}} %% -%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de> +%% Copyright © 2008-2010 by Vafa Khalighi <vafakh84@gmail.com> %% %% Distributable under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of |