summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-06 12:57:38 +0000
committerKarl Berry <karl@freefriends.org>2010-04-06 12:57:38 +0000
commit8df732286e6f6d11222d83f90b15ec42f7059d7c (patch)
tree04fb5a730eee52af7014cc53775154aeb6b92dc2 /Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def
parentfdfb1ff9a50249aa81781f5f117ae3f628bcc41e (diff)
bidi update (5apr10)
git-svn-id: svn://tug.org/texlive/trunk@17733 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def63
1 files changed, 63 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def
new file mode 100644
index 00000000000..0b41e0c1520
--- /dev/null
+++ b/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def
@@ -0,0 +1,63 @@
+%%
+%% This is file `colortbl-xetex-bidi.def',
+
+%%
+%% __________________________________
+%% Copyright © 2009-2010 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{colortbl-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for colortbl package for XeTeX engine]
+\def\CT@setup{%
+ \@tempdimb\col@sep
+ \@tempdimc\col@sep
+ \def\CT@color{%
+ \global\let\CT@do@color\CT@@do@color
+ \bidicolor}}
+\def\@classz{\@classx
+ \@tempcnta \count@
+ \prepnext@tok
+\expandafter\CT@extract\the\toks\@tempcnta\columncolor!\@nil
+ \@addtopreamble{\if@RTL\beginL\fi%
+ \setbox\z@\hbox\bgroup\bgroup\if@RTL\beginR\fi
+ \ifcase \@chnum
+ \hskip\stretch{.5}\kern\z@
+ \d@llarbegin
+ \insert@column
+ \d@llarend\hskip\stretch{.5}\or
+ \d@llarbegin \insert@column \d@llarend \hfill \or
+ \hfill\kern\z@ \d@llarbegin \insert@column \d@llarend \or
+ $\vcenter
+ \@startpbox{\@nextchar}\insert@column \@endpbox $\or
+ \vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or
+ \vbox \@startpbox{\@nextchar}\insert@column \@endpbox
+ \fi
+ \if@RTL\endR\fi\egroup\egroup
+\begingroup
+ \CT@setup
+ \CT@column@color
+ \CT@row@color
+ \CT@cell@color
+ \CT@do@color
+\endgroup
+ \@tempdima\ht\z@
+ \advance\@tempdima\minrowclearance
+ \vrule\@height\@tempdima\@width\z@
+ \unhbox\z@\if@RTL\endL\fi}%
+ \prepnext@tok}
+%%
+%% 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
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%%
+%% End of file `colortbl-xetex-bidi.def'.