diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty index a1c11f9cfb9..bfaa076e8c6 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{10112} +%% \CheckSum{10160} %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z @@ -35,8 +35,8 @@ %% Right brace \} Tilde \~} %% \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v17} -\def\xepersiandate{2016/11/25} +\def\xepersianversion{v17.1} +\def\xepersiandate{2016/11/30} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} @@ -60,7 +60,7 @@ Persian typesetting in XeLaTeX] * ^^J% * Location on CTAN: /macros/xetex/latex/xepersian^^J% * ^^J% -* Issue tracker: https://github.com/vafa/xepersian/issues^^J% +* Issue tracker: https://github.com/tex-xet/xepersian/issues^^J% * ^^J% * Support: persian-tex@tug.org^^J% ****************************************************} @@ -271,6 +271,7 @@ Persian typesetting in XeLaTeX] \def\today{\rl{\persiantoday}} \def \@LTRmarginparreset {% \reset@font + \@nonlatinfalse \latinfont \normalsize \@minipagetrue @@ -319,7 +320,7 @@ Persian typesetting in XeLaTeX] \fi \reset@font \normalsize - \if@RTLmain\setpersianfont\else\resetlatinfont\fi + \if@RTLmain\@nonlatintrue\setpersianfont\else\@nonlatinfalse\resetlatinfont\fi \normalsfcodes \let\label\@gobble \let\index\@gobble @@ -711,6 +712,20 @@ number is 999,999,999.}% \@RTLfalse \fi} +\define@choicekey{xepersian.sty}{documentdirection}[\xepersian@tempa\xepersian@tempb]{righttoleft,lefttoright}{% + \ifcase\xepersian@tempb\relax + \@RTLtrue + \or + \@RTLfalse + \fi} + +\define@choicekey{xepersian.sty}{tabledirection}[\xepersian@tempa\xepersian@tempb]{righttoleft,lefttoright}{% + \ifcase\xepersian@tempb\relax + \@RTLtabtrue + \or + \@RTLtabfalse + \fi} + \define@choicekey{xepersian.sty}{script}[\xepersian@tempa\xepersian@tempb]{latin,nonlatin}[latin]{% \ifcase\xepersian@tempb\relax \@nonlatinfalse @@ -818,7 +833,8 @@ number is 999,999,999.}% } \ExecuteOptionsX{% - RTLdocument=on, + documentdirection=righttoleft, + tabledirection=righttoleft, script=nonlatin, footnotedirection=righttoleft, footnoterule=automatic, |