summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def
diff options
context:
space:
mode:
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.def12
1 files changed, 3 insertions, 9 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 ae2a0535a28..3149dac03a3 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{44160}
+%% \CheckSum{44308}
%% \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}[2015/02/01 v0.7 bidi adaptations for listings package for XeTeX engine]
+\ProvidesFile{listings-xetex-bidi.def}[2015/04/25 v0.8 bidi adaptations for listings package for XeTeX engine]
\lst@Key{captiondirection}{textdirection}{%
\lstKV@SwitchCases{#1}%
{textdirection&\\%
@@ -73,13 +73,7 @@
{\protect\numberline{\thelstlisting}\lst@@caption}%
}{%
\begingroup%
-\ifnum\bidi@lst@caption@direction=\z@%
- \@RTLfalse%
-\else%
- \ifnum\bidi@lst@caption@direction=\@ne%
- \@RTLtrue%
- \fi%
-\fi%
+ \bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLtrue}%
\addcontentsline{lol}{lstlisting}%
{\protect\numberline{\thelstlisting}\lst@@caption}%
\endgroup%