diff options
author | Karl Berry <karl@freefriends.org> | 2015-01-30 22:05:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-01-30 22:05:00 +0000 |
commit | a04af1e584e145aa0d1de018320a27555ff07076 (patch) | |
tree | 5d20c984a1013004752d0d7dd88e69f09c29c521 /Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def | |
parent | 5c7ee9668e182200a4b14b9395a510b4706a0d70 (diff) |
bidi (30jan15)
git-svn-id: svn://tug.org/texlive/trunk@36172 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def index 25caf649033..3078a3cae9b 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def +++ b/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def @@ -7,7 +7,7 @@ %% bidi.dtx (with options: `table,latex-xetex-bidi.def') %% %% __________________________________________________ -%% Copyright © 2009–2014 Vafa Khalighi <persian-tex@tug.org> +%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org> %% %% It may be distributed and/or modified under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{43075} +%% \CheckSum{43241} %% \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 @@ -34,7 +34,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} %% -\ProvidesFile{latex-xetex-bidi.def}[2014/11/29 v1.1.8 bidi adaptations for `latex.ltx' for XeTeX engine] +\ProvidesFile{latex-xetex-bidi.def}[2015/02/01 v1.1.9 bidi adaptations for `latex.ltx' for XeTeX engine] \newcommand{\TeXXeTOn}{\TeXXeTstate=1 } \newcommand{\TeXXeTOff}{\TeXXeTstate=0 } \TeXXeTOn @@ -256,6 +256,18 @@ \csname bm@#3\endcsname}% \if@pboxsw \m@th$\fi \@end@tempboxa} +\def\bidi@lrbox#1{% + \edef\reserved@a{% + \endgroup + \setbox#1\hbox{% + \begingroup\aftergroup}% + \def\noexpand\@currenvir{\@currenvir}% + \def\noexpand\@currenvline{\on@line}}% + \reserved@a + \@endpefalse + \color@begingroup + \ignorespaces} +\def\endbidi@lrbox{\unskip\color@endgroup} \newenvironment{LTRitems} {\par\@RTLfalse \if@bidi@list@minipage@parbox @@ -707,6 +719,13 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi} \@ifpackageloaded{crop}{\RequirePackage{graphicx}}{} \@ifpackageloaded{sidecap}{\RequirePackage{ragged2e}}{} \@ifpackageloaded{floatrow}{\RequirePackage{color}}{} +\@ifpackageloaded{algorithm2e}{\input{algorithm2e-xetex-bidi.def}}{} +\@ifpackagewith{algorithm2e}{algonl}{% +\renewcommand{\theAlgoLine}{\expandafter\csname the\algocf@float\endcsname\@SepMark\arabic{AlgoLine}}% +}{} +\@ifpackagewith{algorithm2e}{algopart}{\renewcommand{\algocf@within}{part}}{} +\@ifpackagewith{algorithm2e}{algochapter}{\renewcommand{\algocf@within}{chapter}}{} +\@ifpackagewith{algorithm2e}{algosection}{\renewcommand{\algocf@within}{section}}{} \@ifpackageloaded{amsmath}{\input{amsmath-xetex-bidi.def}}{} \@ifpackageloaded{amstext}{\input{amstext-xetex-bidi.def}}{} \@ifpackageloaded{amsthm}{\input{amsthm-xetex-bidi.def}}{} |