diff options
author | Karl Berry <karl@freefriends.org> | 2012-04-20 23:23:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-04-20 23:23:42 +0000 |
commit | 009ac769b6be11474341188733262e8b22529610 (patch) | |
tree | 76ff02ab2d0dc109b43e3fbbd6c5764c415d2023 /Master/texmf-dist/tex | |
parent | ef035dc84f3184df9fe30b4566203da2b8eee254 (diff) |
bidi (20apr12)
git-svn-id: svn://tug.org/texlive/trunk@26076 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
5 files changed, 25 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def index 08426e444f1..905b3e49dbd 100644 --- a/Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def +++ b/Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def @@ -12,7 +12,9 @@ %% License information appended. %% %% -\ProvidesFile{amsmath-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for amsmath package for XeTeX engine] +\ProvidesFile{amsmath-xetex-bidi.def}[2012/04/20 v0.3 bidi adaptations for amsmath package for XeTeX engine] +\let\veqno=\eqno +\iftagsleft@ \let\veqno=\leqno \fi \renewcommand{\numberwithin}[3][\arabic]{% \@ifundefined{c@#2}{\@nocounterr{#2}}{% \@ifundefined{c@#3}{\@nocnterr{#3}}{% diff --git a/Master/texmf-dist/tex/latex/bidi/bidi.sty b/Master/texmf-dist/tex/latex/bidi/bidi.sty index cdefeb600e0..d5a762e2fb3 100644 --- a/Master/texmf-dist/tex/latex/bidi/bidi.sty +++ b/Master/texmf-dist/tex/latex/bidi/bidi.sty @@ -14,7 +14,7 @@ %% \NeedsTeXFormat{LaTeX2e} \def\bididate{2012/05/01} -\def\bidiversion{v11.153} +\def\bidiversion{v11.154} \ProvidesPackage{bidi}[\bididate\space \bidiversion\space Bidirectional typesetting in plain TeX and LaTeX] \edef\bidiinfo{% diff --git a/Master/texmf-dist/tex/latex/bidi/biditools.sty b/Master/texmf-dist/tex/latex/bidi/biditools.sty index f02a25179ef..0831a5a1186 100644 --- a/Master/texmf-dist/tex/latex/bidi/biditools.sty +++ b/Master/texmf-dist/tex/latex/bidi/biditools.sty @@ -14,6 +14,18 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{biditools}[2012/05/01 v0.1 Programming tools for bidi package] +\providecommand{\@bidi@saveprimitive}[2]{\begingroup\escapechar`\\\relax + \edef\@tempa{\string#1}\edef\@tempb{\meaning#1}% + \ifx\@tempa\@tempb \global\let#2#1% + \else + \edef\@tempb{\meaning#2}% + \ifx\@tempa\@tempb + \else + \@latex@error{Unable to properly define \string#2; primitive + \noexpand#1no longer primitive}\@eha + \fi + \fi + \endgroup} \def\@tagsextension{clo} \def\@definitionfileextension{def} \def\@iftagsloaded{\@ifl@aded\@tagsextension} diff --git a/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def index 6c33a02f37a..32c31c74d1b 100644 --- a/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def +++ b/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def @@ -88,7 +88,10 @@ \let\setRL=\setRTL \let\setLR=\setLTR \let\unsetRL=\setLTR -\everydisplay{\predisplaydirection=0 } +\let\bidi@saved@eqno=\eqno +\let\bidi@saved@leqno=\leqno +\def\eqno{\ifnum\predisplaydirection<\z@ \bidi@saved@leqno \else \bidi@saved@eqno \fi} +\def\leqno{\ifnum\predisplaydirection<\z@ \bidi@saved@eqno \else \bidi@saved@leqno \fi} \def\centerline#1{\line{\hss\if@RTL\beginR\fi#1\if@RTL\endR\fi\hss}} \def\leftline#1{\line{\if@RTL\beginR\fi#1\if@RTL\endR\fi\hss}} \def\rightline#1{\line{\hss\if@RTL\beginR\fi#1\if@RTL\endR\fi}} diff --git a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def index 4910e1cec33..a7007b5dcfe 100644 --- a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def +++ b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def @@ -12,7 +12,7 @@ %% License information appended. %% %% -\ProvidesFile{xetex-bidi.def}[2012/05/01 v1.0.1 bidi adaptations for XeTeX engine] +\ProvidesFile{xetex-bidi.def}[2012/05/01 v1.0.3 bidi adaptations for XeTeX engine] \newcommand{\TeXXeTOn}{\TeXXeTstate=1 } \newcommand{\TeXXeTOff}{\TeXXeTstate=0 } \TeXXeTOn @@ -648,7 +648,10 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi} \hb@xt@\hsize{\if@RTL\beginR\fi\hfil\box\@tempboxa\hfil\if@RTL\endR\fi}% \fi \vskip\belowcaptionskip} -\everydisplay\expandafter{\the\everydisplay\if@bidi@list@minipage@parbox\predisplaydirection=1\else\if@RTLtab\predisplaydirection=1\else\predisplaydirection=0\fi\fi } +\let\bidi@saved@eqno=\eqno +\let\bidi@saved@leqno=\leqno +\def\eqno{\ifnum\predisplaydirection<\z@ \bidi@saved@leqno \else \bidi@saved@eqno \fi} +\def\leqno{\ifnum\predisplaydirection<\z@ \bidi@saved@eqno \else \bidi@saved@leqno \fi} \def\@eqnnum{{\normalfont \normalcolor \if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi}} \input{footnote-xetex-bidi.def} \@ifclassloaded{article}{\@ifclassloaded{svmult}{}{\input{article-xetex-bidi.def}}}{} |