From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Bug: org-table latex export does not honour alignment [7.5] Date: Wed, 07 Sep 2011 08:46:01 +0100 Message-ID: <874o0o7q2u.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1Df7-000345-U4 for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 04:39:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1Df6-00081E-VB for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 04:39:13 -0400 Received: from vscani-b2.ucl.ac.uk ([144.82.108.135]:42826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1Df6-0007vi-QH for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 04:39:12 -0400 Received: from dip057.chemeng.ucl.ac.uk ([128.40.228.156] helo=localhost) by vscani-b.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1R1Ded-0002LU-B5 for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 09:38:43 +0100 In-Reply-To: (Arik Mitschang's message of "Wed, 07 Sep 2011 15:01:30 +1000") 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Arik Mitschang writes: > When exporting a file to latex, the alignment of tables within that file > specified via the in-table , or fields are not honoured. For > example: > > |-------------+----------+----------+----------+----------| > |-------------+----------+----------+----------+----------| > | long header | header a | header b | header c | header d | > |-------------+----------+----------+----------+----------| > | | | | | | > | 1 | 2 | 3 | 4 | 5 | > | 6 | 7 | 8 | 9 | 10 | > | / | > | | | | > > > should have the first two columns left-aligned and the last three right > aligned. The vertical line in the table above is present. This also is > the case when forcing a table environment via #+CAPTION. The table above > generates the tabular command: > > \begin{tabular}{rr|rrr} > > Where it should generate: > > \begin{tabular}{ll|rrr} You can specify the alignment for latex export directly if you put this line before the table itself: #+attr_latex: align=ll|rrr cf. (org) Tables in LaTeX export, [[info:org#Tables%20in%20LaTeX%20export][info:org#Tables in LaTeX export]] HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.257.g0dd1)