From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: LaTeX export -- Table with align option Date: Mon, 04 Jun 2012 22:18:33 +0200 Message-ID: <80fwaavnja.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, I want to customize a bit the layout of a table, using the =3Dalign=3D para= meter as explained on http://orgmode.org/manual/Tables-in-LaTeX-export.html. That works well for the first two common usages (see ECM) but not with @-expressions (see, for example, on https://en.wikibooks.org/wiki/LaTeX/Tables#.40-expressions) * Table with normal spacing #+ATTR_LaTeX: align=3Drrl | Janvier | 1300 | \EUR | | F=C3=A9vrier | 1280 | \EUR | |---------+------+------| | Total | 2580 | \EUR | #+TBLFM: @3$2=3Dvsum(@1..@2) gets correctly translated to: #+begin_src latex \begin{tabular}{rrl} Janvier & 1300 & \EUR \\ F=C3=A9vrier & 1280 & \EUR \\ \hline Total & 4080 & \EUR \\ \end{tabular} #+end_src * Table with no spacing #+ATTR_LaTeX: align=3Dr@{:}r@{}l | Janvier | 1300 | \EUR | | F=C3=A9vrier | 1280 | \EUR | |---------+------+------| | Total | 2580 | \EUR | #+TBLFM: @3$2=3Dvsum(@1..@2) gets correctly translated to: #+begin_src latex \begin{tabular}{r@{:}r@{}l} Janvier & 1300 & \EUR \\ F=C3=A9vrier & 1280 & \EUR \\ \hline Total & 4080 & \EUR \\ \end{tabular} #+end_src * Table with more spacing #+ATTR_LaTeX: align=3Dr@{ : }r@{ }l | Janvier | 1300 | \EUR | | F=C3=A9vrier | 1280 | \EUR | |---------+------+------| | Total | 2580 | \EUR | #+TBLFM: @3$2=3Dvsum(@1..@2) gets INCORRECTLY translated to: #+begin_src latex \begin{tabular}{r@{} Janvier & 1300 & \EUR \\ F=C3=A9vrier & 1280 & \EUR \\ \hline Total & 4080 & \EUR \\ \end{tabular} #+end_src which can't be compiled... Best regards, Seb --=20 Sebastien Vauban