From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: org-table latex export does not honour alignment [7.5]
Date: Wed, 07 Sep 2011 08:46:01 +0100 [thread overview]
Message-ID: <874o0o7q2u.fsf@ucl.ac.uk> (raw)
In-Reply-To: <arikm8vq19c9h.fsf@mq.edu.au> (Arik Mitschang's message of "Wed, 07 Sep 2011 15:01:30 +1000")
Arik Mitschang <arik.mitschang@gmail.com> 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)
next prev parent reply other threads:[~2011-09-07 8:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-07 5:01 Bug: org-table latex export does not honour alignment [7.5] Arik Mitschang
2011-09-07 7:46 ` Eric S Fraga [this message]
2011-09-08 7:02 ` Arik Mitschang
2011-09-08 9:02 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874o0o7q2u.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.