diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def index d4c3abc598c..ef3233c5ff4 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def +++ b/Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def @@ -20,7 +20,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{58641} +%% \CheckSum{57381} %% \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 @@ -37,12 +37,12 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} %% -\ProvidesFile{algorithm2e-xetex-bidi.def}[2018/09/23 v0.2 bidi adaptations for algorithm2e package for XeTeX engine] +\ProvidesFile{algorithm2e-xetex-bidi.def}[2025/01/03 v0.3 bidi adaptations for algorithm2e package for XeTeX engine] \expandafter\ifx\csname algocf@within\endcsname\relax% if \algocf@within doesn't exist \else% else \renewcommand\thealgocf{\csname the\algocf@within\endcsname\@SepMark\@arabic\c@algocf}% \fi -\@ifpackageloaded{color}{}{% +\ApplyPatchIfPackageLoadedF{color}{% \bidi@patchcmd{\@algocf@start}{\bgroup}{% \bgroup \if@RTL @@ -68,6 +68,16 @@ \fi }{}{} } + +\@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}}{} \endinput %% %% End of file `algorithm2e-xetex-bidi.def'. |