diff options
author | Karl Berry <karl@freefriends.org> | 2016-10-09 22:59:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-10-09 22:59:44 +0000 |
commit | bffbb7aafe332195431f5901c54138da5d46fc37 (patch) | |
tree | 6241378d3a1371a68d8a9355bce8171a154ceb21 /Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def | |
parent | dacab4037dae4b592f76377ca74cae50af672ef5 (diff) |
bidi (9oct16)
git-svn-id: svn://tug.org/texlive/trunk@42244 c570f23f-e606-0410-a88d-b1316a301751
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 | 9 |
1 files changed, 7 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 c2de28b1c05..d17729ca751 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{47498} +%% \CheckSum{47521} %% \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/09/12 v1.0 bidi adaptations for listings package for XeTeX engine] +\ProvidesFile{listings-xetex-bidi.def}[2016/10/09 v1.1 bidi adaptations for listings package for XeTeX engine] \lst@Key{captiondirection}{textdirection}{% \lstKV@SwitchCases{#1}% {textdirection&\\% @@ -106,11 +106,16 @@ {\protect\numberline{\thelstlisting}\lst@@caption}% \endgroup% }{}{} +\@ifpackageloaded{caption}{% + \def\lst@makecaption{\caption@starfalse\@bidi@lst@makecaption}% + \def\lst@maketitle{\caption@startrue\@bidi@lst@makecaption\@empty}% +}{% \AtBeginDocument{% \@ifundefined{captionlabelfalse}{}{% \def\lst@maketitle{\captionlabelfalse\@bidi@lst@makecaption\@empty}}% \@ifundefined{caption@startrue}{}{% \def\lst@maketitle{\caption@startrue\@bidi@lst@makecaption\@empty}}% +}% } \AtBeginDocument{ \@ifundefined{thechapter}{\let\lst@ifnumberbychapter\iffalse}{} |