Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Thu, 14 May 2009 07:58:36 +0200 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n4E5wBlQ007598 for ; Thu, 14 May 2009 07:58:11 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id n4E5pn0t010609 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 14 May 2009 07:51:50 +0200 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id n4DM3HqE025776; Thu, 14 May 2009 07:51:40 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 275694 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 14 May 2009 07:51:39 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id n4E5pdrE025965 for ; Thu, 14 May 2009 07:51:39 +0200 Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.249]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id n4E5pYLe025005 for ; Thu, 14 May 2009 07:51:38 +0200 Received: by rv-out-0708.google.com with SMTP id f25so600137rvb.10 for ; Wed, 13 May 2009 22:51:33 -0700 (PDT) Received: by 10.141.180.5 with SMTP id h5mr604349rvp.223.1242280293394; Wed, 13 May 2009 22:51:33 -0700 (PDT) Received: from ?129.127.15.244? ([129.127.15.244]) by mx.google.com with ESMTPS id g22sm2351213rvb.56.2009.05.13.22.51.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 13 May 2009 22:51:32 -0700 (PDT) Content-Type: multipart/signed; boundary=Apple-Mail-2--167400972; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v930.3) References: <7ac5ed450905130058n6178e8beoc7daacc45996f6ce@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Spam-Whitelist: Message-ID: <9E71A923-AE23-460A-B294-B44785A27102@gmail.com> Date: Thu, 14 May 2009 15:21:27 +0930 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: grouping in array.sty internal macros To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <7ac5ed450905130058n6178e8beoc7daacc45996f6ce@mail.gmail.com> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -6.599 () BAYES_00,RCVD_IN_DNSWL_MED X-Scanned-By: MIMEDefang 2.65 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 14 May 2009 05:58:36.0634 (UTC) FILETIME=[0581CBA0:01C9D459] Status: R X-Status: X-Keywords: X-UID: 5779 --Apple-Mail-2--167400972 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 13/05/2009, at 5:28 PM, Vafa Khalighi wrote: > I did a hack to make tabular in array.sty RTL and this is what I > have done [snip] > Please note that in RTL we both want the order of columns to be RTL > and each entry in each cell to be RTL. [snip] Hi Vafa (and others), Tweaking the code for a while resulted in something that's working, I think. The minimal example appended might help you get it working. (I'm not really sure where your original problem was coming from, though; I seem to have done basically the same thing as you. No time to look more closely, though.) Hope this helps, Will P.S. Note that I didn't find it necessary to include the outer \beginR..\endR around the dollar signs; you might be able to omit it in your other code as well. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass{article} \usepackage{array} \makeatletter \TeXXeTstate=1 \def\tabular{\gdef\@halignto{}\@tabular} \def\@tabular{% \leavevmode \hbox\bgroup $% \@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 \hbox\bgroup\beginR\vbox\bgroup \@preamble % indent } %% environment body goes here \def\endtabular{% \crcr \egroup % \bgroup from \@preamble \egroup\endR\egroup % \vbox\hbox \egroup \gdef\@preamble{}% $% \egroup % original \hbox } \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 } \makeatother \begin{document} \begin{tabular}{|l|l|}\hline vafa khalighi&shahrzad khalighi\\ \hline \end{tabular} \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --Apple-Mail-2--167400972 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGITCCAtow ggJDoAMCAQICECN4qE5kBXLk2f/jVDfSZPwwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA5MDEyOTA1NDkxNVoXDTEwMDEyOTA1NDkx NVowQjEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEfMB0GCSqGSIb3DQEJAR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