[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] org-mode table alignment options (siunitx S-column)
From: |
Michael Giepen |
Subject: |
[O] org-mode table alignment options (siunitx S-column) |
Date: |
Mon, 15 Feb 2016 01:27:43 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 |
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?
- [O] org-mode table alignment options (siunitx S-column),
Michael Giepen <=