summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/listings-bidi.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/listings-bidi.def')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/listings-bidi.def17
1 files changed, 7 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/listings-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/listings-bidi.def
index 0ce06b2a7e4..1d15dce14b0 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/listings-bidi.def
+++ b/Master/texmf-dist/tex/xelatex/bidi/listings-bidi.def
@@ -1,27 +1,24 @@
%%
%% This is file `listings-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `listings-bidi.def')
+
%%
%% __________________________________
-%% Copyright © 2009 Vafa Khalighi
+%% Copyright © 2009-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{listings-bidi.def}[2010/03/01 v0.2 adaptations for listings package]
\long\def\@makecaption#1#2{%
\vskip 10pt%
\setbox\@tempboxa\hbox{#1: #2}%
- \ifdim \wd\@tempboxa >\hsize \beginR#1: #2\par%
+ \ifdim \wd\@tempboxa >\hsize \if@RTLmain\beginR\fi#1: #2\par%
\else \hbox
-to\hsize{\beginR\hfil\box\@tempboxa\hfil%
-\endR}%
+to\hsize{\if@RTLmain\beginR\fi\hfil\box\@tempboxa\hfil%
+\if@RTLmain\endR\fi}%
\fi}
%%
-%% Copyright © 2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of