summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-09-24 16:22:28 +0000
committerKarl Berry <karl@freefriends.org>2010-09-24 16:22:28 +0000
commit6b0b12a0ae24345e1714d47483e443e536aab276 (patch)
treed2af3de4d5c774ec31d7c834f35ac183f4276954 /Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def
parentc02517b14854ed403f1cbbf165371920f1a2eb8f (diff)
bidi (1aug10)
git-svn-id: svn://tug.org/texlive/trunk@19876 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def89
1 files changed, 31 insertions, 58 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def
index 795bb7f2abf..465ad3df62c 100644
--- a/Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{array-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for array package for XeTeX engine]
+\ProvidesFile{array-xetex-bidi.def}[2010/08/01 v0.2b bidi adaptations for array package for XeTeX engine]
\def\@testpach{\@chclass
\ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
\ifnum \@lastchclass=7 5 \else
@@ -34,63 +34,36 @@
\if \@nextchar b5 \else
\z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
\fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
-\def\tabular{\gdef\@halignto{}\@tabular}
-\def\@tabular{\if@RTL\global\@RTLtabtrue\fi%
- \leavevmode
- \hbox\bgroup \if@RTLtab\beginR \fi
- $%
- \@tabularinit
- \@array
-}
-\renewcommand\@array[2][c]{%
- \@tempdima \ht \strutbox
- \advance \@tempdima by\extrarowheight
- \setbox \@arstrutbox \hbox{%
- \vrule \@height \arraystretch \@tempdima
- \@depth \arraystretch \dp \strutbox
- \@width \z@
- }%
- \begingroup
- \@mkpream{#2}%
- \xdef\@preamble{%
- \noexpand \ialign \@halignto
- \bgroup \@arstrut \@preamble
- \tabskip \z@ \cr
- }%
- \endgroup
- \@arrayleft
- \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi \fi
- \bgroup
- \@arrayinit
- \if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi
- \@preamble
- % indent
-}
-%% environment body goes here
-\def\endtabular{%
- \crcr
- \egroup % \bgroup from \@preamble
- \if@RTLtab\egroup\endR\egroup\fi % \vbox\hbox
- \egroup
- \gdef\@preamble{}%
- $\if@RTLtab\endR\fi%
- \egroup % original \hbox
-\global\@RTLtabfalse}
-\def\@tabularinit{%
- \col@sep\tabcolsep
- \let \d@llarbegin \begingroup
- \let \d@llarend \endgroup
-}
-\def\@arrayinit{%
- \let \@sharp ##
- \let \protect \relax
- \lineskip \z@
- \baselineskip \z@
- \m@th
- \let \\ \@arraycr
- \let \tabularnewline \\%
- \let \par \@empty
-}
+\def\@tabular{\if@RTL\@RTLtabtrue\fi%
+ \leavevmode
+ \hbox \bgroup\if@RTLtab\beginR \fi $\col@sep\tabcolsep \let\d@llarbegin\begingroup
+ \let\d@llarend\endgroup
+ \@tabarray}
+\def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup\@RTLtabfalse}
+\expandafter\let\csname endtabular*\endcsname=\endtabular
+\def\@array[#1]#2{%
+ \@tempdima \ht \strutbox
+ \advance \@tempdima by\extrarowheight
+ \setbox \@arstrutbox \hbox{\vrule
+ \@height \arraystretch \@tempdima
+ \@depth \arraystretch \dp \strutbox
+ \@width \z@}%
+ \begingroup
+ \@mkpream{#2}%
+ \xdef\@preamble{\noexpand \ialign \@halignto
+ \bgroup \@arstrut \@preamble
+ \tabskip \z@ \cr}%
+ \endgroup
+ \@arrayleft
+ \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi \fi
+ \bgroup
+ \let \@sharp ##\let \protect \relax
+ \lineskip \z@
+ \baselineskip \z@
+ \m@th
+ \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi\@preamble}
+\def\@tabarray{\@ifnextchar[{\@array}{\@array[c]}}
+\def\endarray{\crcr \egroup\if@RTLtab\egroup\endR\egroup\fi \egroup \@arrayright \gdef\@preamble{}}
%%
%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%