diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def index 89a6c900316..d2b02de67f0 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def +++ b/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{47525} +%% \CheckSum{47539} %% \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{listings-xetex-bidi.def}[2016/10/11 v1.2 bidi adaptations for listings package for XeTeX engine] +\ProvidesFile{listings-xetex-bidi.def}[2016/11/08 v1.3 bidi adaptations for listings package for XeTeX engine] \lst@Key{captiondirection}{textdirection}{% \lstKV@SwitchCases{#1}% {textdirection&\\% @@ -109,6 +109,16 @@ }{}{}% } \@ifpackageloaded{caption}{% + \AtBeginCaption{% + \ifnum\bidi@lst@caption@script=\z@% + \@nonlatintrue% + \else% + \ifnum\bidi@lst@caption@script=\@ne% + \@nonlatinfalse% + \fi% + \fi% + \bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLtrue}% +} \let\@bidi@lst@makecaption\caption@makecaption% \def\lst@makecaption{\caption@starfalse\@bidi@lst@makecaption}% \def\lst@maketitle{\caption@startrue\@bidi@lst@makecaption\@empty}% |