summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi/cals-xetex-bidi.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/cals-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/cals-xetex-bidi.def11
1 files changed, 9 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/cals-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/cals-xetex-bidi.def
index 9290121c902..95fc7535dc2 100644
--- a/Master/texmf-dist/tex/latex/bidi/cals-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/cals-xetex-bidi.def
@@ -12,9 +12,16 @@
%% License information appended.
%%
%%
-\ProvidesFile{cals-xetex-bidi.def}[2013/05/26 v0.2 bidi adaptations for cals package for XeTeX engine]
-\renewenvironment{calstable}{%
+\ProvidesFile{cals-xetex-bidi.def}[2013/05/28 v0.3 bidi adaptations for cals package for XeTeX engine]
+\renewenvironment{calstable}[1][c]{%
\if@RTL\@RTLtabtrue\cals@activate@rtl\fi
+ \if l#1%
+ \if@RTLtab\leftskip\fill \rightskip\z@\else\leftskip\z@ \rightskip\fill\fi
+ \else\if r#1%
+ \if@RTLtab\leftskip\z@ \rightskip\fill\else\leftskip\fill \rightskip\z@\fi
+ \else\if c#1%
+ \leftskip\fill \rightskip\fill
+ \fi\fi\fi
\let\cals@thead@tokens=\relax
\let\cals@tfoot@tokens=\relax
\let\cals@tbreak@tokens=\relax