Hi David I just did a quick experiment with new XeTeX. Since in new TeX-XeT algorithm, \beginR, \beginL, \endR, and \endL can also be used in math mode, the previous approach is not needed. Here is a test file for standard LaTeX tabular environment:
\documentclass{article} \begin{document} \makeatletter \def\@tabular{\leavevmode \hbox \bgroup $\beginR\let\@acol\@tabacol \let\@classz\@tabclassz \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray} \def\endtabular{\crcr\egroup\egroup \endR$\egroup} \makeatother \begin{tabular}{cccc} First&Second&Third&Fourth\\ \end{tabular} \end{document} I will look at longtable and see if the same kind of thing can be done there. On Tue, Jul 29, 2014 at 10:20 PM, David Carlisle <d.p.carli...@gmail.com> wrote: > On 29 July 2014 12:55, Vafa Khalighi <texpers...@gmail.com> wrote: > > > > > >> > >> > >> If you are looking at extending xetex's RTL support is there any > >> chance of addressing RTL tables (as affects for example longtable in > >> the other thread)? > >> as the nodes can only go in hmode there is no good place to put them > >> to affect the ordering of columns in an halign. > >> > > > > > > > > Hi David, > > > > The only way to make RTL \halign in TeX-XeT is to do a construct like > > > > \hbox{\beginR\vbox{% > > \halign material > > }\endR} > > Yes, but (as you know) that's bad if the halign is on the main vertical > list > your bidi-longtable patch does as well as it can do to try to add the nodes > in the output routine but it's not really got enough information. > > > > > The parsitex change file (http://ctan.org/pkg/parsitex) which is also > based > > on Knuth TeX-XeT implements a \semihalign primitive that has the reverse > > order column of \halign. > > > > > > > That sounds good:-) an extension to flip the order of halign > (or as you say a different primitive) would be easier to get right > (and easier to share macro code with luatex) > > David > > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex >
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex