From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Regier Subject: Force center alignment in LaTeX table export? Date: Sat, 25 Mar 2017 23:25:37 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113c535a8aaed4054b9c4b27 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cs1cS-0000Qa-HL for emacs-orgmode@gnu.org; Sun, 26 Mar 2017 02:25:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cs1cR-0000Tg-8p for emacs-orgmode@gnu.org; Sun, 26 Mar 2017 02:25:40 -0400 Received: from mail-yw0-x22b.google.com ([2607:f8b0:4002:c05::22b]:35899) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cs1cR-0000TQ-3h for emacs-orgmode@gnu.org; Sun, 26 Mar 2017 02:25:39 -0400 Received: by mail-yw0-x22b.google.com with SMTP id i203so14374944ywc.3 for ; Sat, 25 Mar 2017 23:25:38 -0700 (PDT) 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" To: emacs-orgmode@gnu.org --001a113c535a8aaed4054b9c4b27 Content-Type: text/plain; charset=UTF-8 Apologies in advance if this has been discussed already; I lost track of the list for a while. That said, since updating to ELPA org-20170210, I can no longer (I'm pretty sure this was working previously but I can't prove it -- maybe my document was broken and I just didn't notice) use \columncolor{red} in the :align argument to #+latex+attr: for tables any more; this gets changed to \cocumncococ{ced} by the following ox-latex code: 3361 ;; Make sure cells are always centered while preserving 3362 ;; vertical separators. 3363 (let ((align (replace-regexp-in-string 3364 "[lr]" "c" (org-latex--align-string table info)))) at http://orgmode.org/w/org-mode.git?p=org-mode.git;a=blob;f=lisp/ox-latex.el;hb=9faf000e6a6977135a1d09dba4a078cdd9e04b38#l3361 I'm not certain whether I should be surprised that all non-centered alignments are changed to centered, or that in general any text with an 'l' or 'r' isn't valid in :align, or both. This seems to have been commit 975260cb2596fb8cf0660cc91f2207c48b845699 to preserve column groups, but I'm not sure I understand the original problem or the fix. What does replacing l's and r's with c's achieve? Should I be defining new column types and/or just using a \newcommand that doesn't use the characters "l" or "r" instead of trying to directly set \columncolor directly in the alignment string? Thanks... Phil --001a113c535a8aaed4054b9c4b27 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Apologies in advance if this has been discussed = already; I lost track of the list for a while.

That said, sinc= e updating to ELPA org-20170210, I can no longer (I'm pretty sure this = was working previously but I can't prove it -- maybe my document was br= oken and I just didn't notice) use \columncolor{red} in the :align argu= ment to #+latex+attr: for tables any more; this gets changed to \cocumncoco= c{ced} by the following ox-latex code:

3361=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; Make sure cells are alw= ays centered while preserving
3362=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; vertical separators.
3363=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (let ((a= lign (replace-regexp-in-string
3364=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "[lr]" "c"= ; (org-latex--align-string table info))))

at
= I'm not certain whether I should be surprised that all non-centered ali= gnments are changed to centered, or that in general any text with an 'l= ' or 'r' isn't valid in :align, or both.

= This seems to have been commit 975260cb2596fb8cf0660cc91f2207c48b845699 to = preserve column groups, but I'm not sure I understand the original prob= lem or the fix.=C2=A0 What does replacing l's and r's with c's = achieve?=C2=A0 Should I be defining new column types and/or just using a \n= ewcommand that doesn't use the characters "l" or "r"= ; instead of trying to directly set \columncolor directly in the alignment = string?

Thanks...

Phil
<= /div> --001a113c535a8aaed4054b9c4b27--