From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Giepen Subject: org-mode table alignment options (siunitx S-column) Date: Mon, 15 Feb 2016 01:27:43 +0100 Message-ID: <56C11B7F.3050104@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV714-0007Uu-R2 for emacs-orgmode@gnu.org; Sun, 14 Feb 2016 19:27:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aV710-00022E-PK for emacs-orgmode@gnu.org; Sun, 14 Feb 2016 19:27:50 -0500 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:33325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV710-000228-Hj for emacs-orgmode@gnu.org; Sun, 14 Feb 2016 19:27:46 -0500 Received: by mail-wm0-x22d.google.com with SMTP id g62so129128495wme.0 for ; Sun, 14 Feb 2016 16:27:46 -0800 (PST) Received: from [192.168.1.106] ([84.78.15.10]) by smtp.googlemail.com with ESMTPSA id ka7sm22617845wjb.8.2016.02.14.16.27.44 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 14 Feb 2016 16:27:45 -0800 (PST) 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 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 | | | | | | | | | 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?