From 502071d0488246e2f4ffb33f4a0ef2e7fb6d5517 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 21 Jan 2018 00:45:35 +0000 Subject: xepersian (20jan18) git-svn-id: svn://tug.org/texlive/trunk@46396 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty') diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty index 103fd695399..ca71daabd66 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{10566} +%% \CheckSum{10588} %% \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\xepersian@version{20.7} -\def\xepersiandate{2018/01/17} +\def\xepersian@version{20.8} +\def\xepersiandate{2018/01/21} \ProvidesPackage{xepersian}[\xepersiandate\space v\xepersian@version\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} @@ -68,7 +68,8 @@ Persian typesetting in XeLaTeX] \typeout{\@xepersian@info} \edef\xepersian@everyjob{\the\everyjob} \everyjob{\xepersian@everyjob\typeout{\@xepersian@info}} -\newcommand*{\xepersianversion}{$\xepersian@version$} +\newcommand*{\xepersianversion} + {\ensuremath\xepersian@version} \newcommand*{\IfxepersianPackageVersionLater}[1]{% \ifdim\xepersian@version pt > #1 pt % \expandafter\@firstoftwo @@ -803,6 +804,9 @@ Persian typesetting in XeLaTeX] \xepersian@setlength{\partopsep}{.2\@tempdimb}{.1\@tempdimb}{.1\@tempdimb}% } +\renewcommand*{\@bidi@logo@}{\@bidi@logo@hb@xt@\textwidth{\hss\bfseries +حروف‌چینی شده توسط نرم‌افزار زی‌پرشین}} + \newcommand\twocolumnstableofcontents{% \if@bidi@csundef{multi@column@out}{% \PackageError{xepersian}{Oops! you should load multicol package before xepersian package for being able to use this command}{}}{% @@ -1350,6 +1354,13 @@ number is 999,999,999.}% \def\xepersian@@latin@baselineskip@scale{#1}% } +\define@choicekey{xepersian.sty}{logo}[\xepersian@tempa\xepersian@tempb]{on,off}[on]{% + \ifcase\xepersian@tempb\relax + \relax + \or + \let\@bidi@logo@\@empty \let\@bidi@inslogo@\@empty + \fi} + \define@choicekey{xepersian.sty}{computeautoilg}[\xepersian@tempa\xepersian@tempb]{on,off}[on]{% \ifcase\xepersian@tempb\relax \@xepersian@@computeautoilgtrue -- cgit v1.2.3