%% %% This is file `arydshln-xetex-bidi.def', %% generated with the docstrip utility. %% %% The original source files were: %% %% bidi.dtx (with options: `arydshln-xetex-bidi.def') %% %% ______________________________________ %% Copyright © 2009–2010 Vafa Khalighi %% %% License information appended. %% %% \ProvidesFile{arydshln-xetex-bidi.def}[2010/08/01 v0.2 bidi adaptations for arydshln package for XeTeX engine] \def\endarray{\adl@endarray \egroup \adl@arrayrestore \if@RTLtab\egroup\endR\egroup\fi\egroup} \def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup\@RTLtabfalse} \expandafter\let\csname endtabular*\endcsname\endtabular \let\adl@array\@array \def\@array{\adl@everyvbox\everyvbox \everyvbox{\adl@arrayinit \the\adl@everyvbox \everyvbox\adl@everyvbox}% \ifadl@inactive \adl@inactivate \else \adl@activate \fi \let\adl@noalign\noalign \adl@array} \ifadl@usingarypkg \def\@testpach{\@chclass \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else \ifnum \@lastchclass=7 5 \else \ifnum \@lastchclass=8 \tw@ \else \ifnum \@lastchclass=9 \thr@@ \else \z@ \ifnum \@lastchclass = 10 \else \edef\@nextchar{\expandafter\string\@nextchar}% \@chnum \if \@nextchar c\z@ \else \if \@nextchar \if@RTLtab r\else l\fi\@ne \else \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else \z@ \@chclass \if\@nextchar |\@ne \let\@arrayrule\adl@arrayrule \else \if\@nextchar :\@ne \let\@arrayrule\adl@arraydashrule \else \if\@nextchar ;\@ne \let\@arrayrule\adl@argarraydashrule \else \if \@nextchar !6 \else \if \@nextchar @7 \else \if \@nextchar <8 \else \if \@nextchar >9 \else 10 \@chnum \if \@nextchar m\thr@@\else \if \@nextchar p4 \else \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 \fi \fi} \def\@classz{\@classx \@tempcnta \count@ \prepnext@tok \@addtopreamble{\ifcase \@chnum \hfil \adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or \hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or \hfil\hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\or \setbox\adl@box\hbox \adl@startmbox{\@nextchar}\insert@column \adl@endmbox\or \setbox\adl@box\vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or \setbox\adl@box\vbox \@startpbox{\@nextchar}\insert@column \@endpbox \fi}\prepnext@tok} \def\adl@class@start{4} \def\adl@class@iiiorvii{7} \else \def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4\relax \else \ifnum \@lastchclass=\thr@@ 5\relax \else \z@ \if #1c\@chnum \z@ \else \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else \@chclass \if #1|\@ne \let\@arrayrule\adl@arrayrule \else \if #1:\@ne \let\@arrayrule\adl@arraydashrule \else \if #1;\@ne \let\@arrayrule\adl@argarraydashrule \else \if #1@\tw@ \else \if #1p\thr@@ \else \z@ \@preamerr 0\fi \fi \fi \fi \fi \fi \fi \fi \fi \fi} \def\@arrayclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or \or \or \@addamp \or \@acolampacol \or \@firstampfalse \@acol \fi \edef\@preamble{\@preamble \ifcase \@chnum \hfil\adl@putlrc{$\relax\@sharp$}\hfil \or \adl@putlrc{$\relax\@sharp$}\hfil \or \hfil\adl@putlrc{$\relax\@sharp$}\fi}} \def\@tabclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or \or \or \@addamp \or \@acolampacol \or \@firstampfalse \@acol \fi \edef\@preamble{\@preamble \ifcase \@chnum \hfil\adl@putlrc{\@sharp\unskip}\hfil \or \adl@putlrc{\@sharp\unskip}\hfil \or \hfil\hskip\z@ \adl@putlrc{\@sharp\unskip}\fi}} \def\adl@class@start{6} \def\adl@class@iiiorvii{3} \fi \@ifpackageloaded{colortbl}{% \def\adl@inactivate{\adl@org@inactivate \let\CT@setup\adl@CT@setup} \def\adl@activate{\adl@org@activate \let\CT@setup\adl@act@CT@setup \let\@endpbox\adl@org@endpbox} \let\adl@CT@setup\CT@setup \def\CT@setup{\adl@CT@setup \@tempdima\ht\z@ \advance\@tempdima\minrowclearance \ifdim\adl@height<\@tempdima \global\adl@height\@tempdima \fi \ifdim\adl@depth<\dp\z@ \global\adl@depth\dp\z@\fi} \let\adl@act@CT@setup\CT@setup \def\@classz{\@classx \@tempcnta\count@ \prepnext@tok \expandafter\CT@extract\the\toks\@tempcnta\columncolor!\@nil \expandafter\adl@extract@arc\the\toks\@tempcnta\arrayrulecolor!\@nil \expandafter\adl@extract@drsc \the\toks\@tempcnta\doublerulesepcolor!\@nil \expandafter\adl@extract@dgc\the\toks\@tempcnta\dashgapcolor!\@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} \let\adl@act@classz\@classz \let\adl@org@classz\@classz }{} %% %% Copyright © 2009–2010 Vafa Khalighi %% %% It may be distributed and/or modified 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 “author-maintained” (as per LPPL maintenance status) %% by Vafa Khalighi. %% %% In addition to the terms of LPPL any distributed version %% (unchanged or modified) of bidi has to keep the statement %% about the moral obligation for using bidi. In case of major %% changes where this would not be appropriate the author of the %% changed version should contact the copyright holder. %% %% %% %% Moral obligation for using bidi: %% ____________________________________ %% %% Users of bidi who wish to include or use bidi or a modified %% version in a proprietary and commercially market product are asked %% under certain conditions (see below) for the payment of a license %% fee. The size of this fee is to be determined, in each instance, %% by the commercial user, depending on his/her judgment of the value of %% bidi for his/her product. %% %% %% The conditions for this are as follows: %% %% The producer of a proprietary and commercially market product %% that involves typesetting using bidi is asked to determine %% the value of a license fee for using bidi if %% %% - the product is a document and the producer has decided to %% include bidi to typeset (parts of) the document or has %% directed the author of the document to include bidi (for %% example, by providing a class file to be used by the author) %% %% - the product is a LaTeX class or package that includes bidi %% %% %% There is no moral obligation in case %% %% - the product is a document but producer has not directed %% the author to include bidi (in that case the moral obligation %% lies with the author of the document) %% %% - the product does not involve typesetting, e.g., consists, for %% example, of distributing bidi and its documentation. %% %% - the product is not proprietary, i.e., is made available as free %% software itself (which doesn't prohibit its commercial marketing) %% %% - bidi is used for non-commercial purposes %% %% %% Determinating a license fee might result in a license fee of zero %% (i.e., no payment) in case a producer has determined that the use %% of bidi has no enhancing effect on the product. This is a %% plausible scenario, i.e., in the above two cases the producer is %% only asked to evaluate the value of bidi for the product %% not for the payment of a license fee per se (which might or might %% not follow from this evaluation). %% %% The license fee, if any, can be payed to the author of %% the program who can be contacted at %% %% vafakhlgh@gmail.com %% %% %% %% %% End of file `arydshln-xetex-bidi.def'.