diff options
author | Karl Berry <karl@freefriends.org> | 2011-11-28 23:55:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-11-28 23:55:48 +0000 |
commit | 742f4f1a4aaa198a58126a947336a746c892f027 (patch) | |
tree | 8c082e9c9df56c797ca3725aa7450be12e9e6921 /Master/texmf-dist/tex/xelatex | |
parent | c204e102aa12e127fb7b52b3e893a49d3ab75ea8 (diff) |
xepersian (22nov11)
git-svn-id: svn://tug.org/texlive/trunk@24687 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex')
3 files changed, 52 insertions, 116 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/multicol-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/multicol-xepersian.def deleted file mode 100644 index f8a9091c540..00000000000 --- a/Master/texmf-dist/tex/xelatex/xepersian/multicol-xepersian.def +++ /dev/null @@ -1,113 +0,0 @@ -%% -%% This is file `multicol-xepersian.def', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% xepersian.dtx (with options: `multicol-xepersian.def') -%% -%% ______________________________________ -%% Copyright © 2008–2012 Vafa Khalighi -%% -%% License information appended. -%% -%% -\ProvidesFile{multicol-xepersian.def}[2010/07/25 v0.1 adaptations for multicol package] -\long\def\@footnotetext#1{% - \begingroup - \setbox\footins - \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize - \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\textwidth \@parboxrestore - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\strut}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} -\long\def\@RTLfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLtrue\reset@font\footnotesize - \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\textwidth \@parboxrestore - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\persianfont #1\strut}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} -\long\def\@LTRfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLfalse\reset@font\footnotesize - \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\textwidth \@parboxrestore - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\latinfont #1\strut}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} -\long\def\@mpfootnotetext#1{% - \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \unvbox\@mpfootins - \reset@font\footnotesize - \hsize\textwidth - \@parboxrestore - \protected@edef\@currentlabel - {\csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \bidi@footnotetext@dir{#1} - \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi - \@makefntext{% - \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}% - \color@endgroup}} -\long\def\@mpRTLfootnotetext#1{% - \global\setbox\@mpfootins\vbox{\@RTLtrue% - \unvbox\@mpfootins - \reset@font\footnotesize - \hsize\textwidth - \@parboxrestore - \protected@edef\@currentlabel - {\csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \bidi@footnotetext@dir{#1} - \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi - \@makefntext{% - \rule\z@\footnotesep\ignorespaces\persianfont#1\@finalstrut\strutbox}% - \color@endgroup}} -\long\def\@mpLTRfootnotetext#1{% - \global\setbox\@mpfootins\vbox{\@RTLfalse% - \unvbox\@mpfootins - \reset@font\footnotesize - \hsize\textwidth - \@parboxrestore - \protected@edef\@currentlabel - {\csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \bidi@footnotetext@dir{#1} - \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi - \@makefntext{% - \rule\z@\footnotesep\ignorespaces\latinfont#1\@finalstrut\strutbox}% - \color@endgroup}} -%% -%% Copyright © 2008–2012 Vafa Khalighi <vafaklg@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 “author-maintained” (as per LPPL maintenance status) -%% by Vafa Khalighi. -%% -%% -%% -%% -%% End of file `multicol-xepersian.def'. diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty index 412b5d20b77..46d34c76723 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty @@ -14,9 +14,59 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{xepersian-mathsdigitspec} - [2012/01/01 v1.0.1 Unicode Persian maths digits in XeLaTeX] + [2012/01/01 v1.0.2 Unicode Persian maths digits in XeLaTeX] \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 diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty index 3ac0c7f9e56..4a4e86d5020 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty @@ -13,7 +13,7 @@ %% %% \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v1.3.4} +\def\xepersianversion{v11.136} \def\xepersiandate{2012/01/01} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] @@ -558,7 +558,6 @@ number is 999,999,999.}% \@ifpackageloaded{empheq}{\input{empheq-xepersian.def}}{} \@ifpackageloaded{hyperref}{\input{hyperref-xepersian.def}}{} \@ifpackageloaded{minitoc}{\input{minitoc-xepersian.def}}{} -\@ifpackageloaded{multicol}{\input{multicol-xepersian.def}}{} \@ifpackageloaded{natbib}{\input{natbib-xepersian.def}}{} \@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xepersian.def}}}{} \@ifclassloaded{article}{\input{article-xepersian.def}}{} |