<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="h5">
<br>
</div></div>I simply swap the meaning of r and l in my head, which means less code<br>
to write, and I get all table package to work without any effort, also<br>
if I&#39;ve code to generate tables (or if I copy tables from rtl to ltr<br>
parts of the document) I get the same expected result without altering<br>
my tables, try:<br>
<div class="im"><br>
\documentclass{article}<br>
<br>
\begin{document}<br>
\begin{tabular}{ l c r }<br>
</div>  aa &amp; 2 &amp; ggg \\<br>
  bcd &amp; 5 &amp; cd \\<br>
<div class="im">  e &amp; 8 &amp; f \\<br>
\end{tabular}<br>
<br>
\bgroup<br>
\luatexmathdir TRT<br>
\begin{tabular}{ l c r }<br>
</div>  aa &amp; 2 &amp; ggg \\<br>
  bcd &amp; 5 &amp; cd \\<br>
<div class="im">  e &amp; 8 &amp; f \\<br>
\end{tabular}<br>
<br>
\egroup<br>
\end{document}<br>
<br>
</div>The cells will be aligned as expected, though in the second table right<br>
is actually left etc.<br>
<div><div></div><div class="h5"><br clear="all"></div></div></blockquote><div><br>No, this is clearly a bug and you have got to fix that. Things are supposed to work in the general way, if &quot;r&quot; stands for right alignment, whether you are doing RTL or LTR it should mean the same thing, you can not just consider yourself and ignore the rest of people. Also it looks really funny to say &quot;I simply swap the meaning of r and l in my head&quot;.<br>
<br>If you want to do proper bidi implementation as done in bidi package, you have got to deal with these. Of course tabular is a very small example.<br></div></div><br>-- <br>Best wishes,<br>Vafa Khalighi<br>
</div>