emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Phil Regier <phil.regier@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Force center alignment in LaTeX table export?
Date: Sat, 25 Mar 2017 23:25:37 -0700	[thread overview]
Message-ID: <CAKO4ir-y=nQtF1YVMEXtgkPywEj6+mMnqQJ8cOvT_DJ3nSDwSg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1431 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1901 bytes --]

             reply	other threads:[~2017-03-26  6:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-26  6:25 Phil Regier [this message]
     [not found] <6b2d8e5e114b4ea9accc4d28a9d98662@AM4PR01MB1891.eurprd01.prod.exchangelabs.com>
2017-03-26 12:14 ` Force center alignment in LaTeX table export? Eric S Fraga
2017-03-26 19:13   ` Phil Regier
2017-03-27 11:53     ` Nicolas Goaziou
     [not found]   ` <7201c71ccd6440fe9cfd491a95bf3e26@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-03-27  8:39     ` 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='CAKO4ir-y=nQtF1YVMEXtgkPywEj6+mMnqQJ8cOvT_DJ3nSDwSg@mail.gmail.com' \
    --to=phil.regier@gmail.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).