[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: org-table latex export does not honour alignment [7.5]
From: |
Eric S Fraga |
Subject: |
Re: [O] Bug: org-table latex export does not honour alignment [7.5] |
Date: |
Wed, 07 Sep 2011 08:46:01 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
Arik Mitschang <address@hidden> writes:
> When exporting a file to latex, the alignment of tables within that file
> specified via the in-table <l>,<c> or <r> fields are not honoured. For
> example:
>
> |-------------+----------+----------+----------+----------|
> |-------------+----------+----------+----------+----------|
> | long header | header a | header b | header c | header d |
> |-------------+----------+----------+----------+----------|
> | <l> | <l> | <r> | <r> | <r> |
> | 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)