From: Michael Giepen <giepen.m@googlemail.com>
To: emacs-orgmode@gnu.org
Subject: org-mode table alignment options (siunitx S-column)
Date: Mon, 15 Feb 2016 01:27:43 +0100 [thread overview]
Message-ID: <56C11B7F.3050104@gmail.com> (raw)
I would like to align the decimals of the values in the following table
with siunitx "S column".
################################################
#+LATEX_HEADER: \usepackage{siunitx}
#+CAPTION: My caption
#+ATTR_LATEX: :align lS
| Column | Value |
| A | 2234.2 |
| B | 243.2345 |
| C | 2.03 |
| D | 4.0 |
################################################
Like this, no problem.
However, with wider tables you have to put a lot of attributes and the
following implementation would be clearer if it would be more org-mode
like with the attributes inside the table.
#+CAPTION: My caption
#+ATTR_LATEX: :align lS
| Column | Value | Value | Value | Value | Value |
| <l> | <S> | <S> | <S> | <S> | <S> |
| A | 2234.2 | 2234.2 | 2234.2 | 2234.2 | 2234.2 |
| B | 243.2345 | 243.2345 | 243.2345 | 243.2345 | 243.2345 |
| C | 2.03 | 2.03 | 2.03 | 2.03 | 2.03 |
| D | 4.0 | 4.0 | 4.0 | 4.0 | 4.0 |
But only l, c, and r and numbers for width are recognised within < >,
the S not.
Could this be expanded somehow to allow for any letter, or at least to
the ones that make sense?
next reply other threads:[~2016-02-15 0:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-15 0:27 Michael Giepen [this message]
2016-02-16 16:58 ` org-mode table alignment options (siunitx S-column) Nicolas Goaziou
2016-02-16 19:55 ` 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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56C11B7F.3050104@gmail.com \
--to=giepen.m@googlemail.com \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).