all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Force center alignment in LaTeX table export?
@ 2017-03-26  6:25 Phil Regier
  0 siblings, 0 replies; 5+ messages in thread
From: Phil Regier @ 2017-03-26  6:25 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <6b2d8e5e114b4ea9accc4d28a9d98662@AM4PR01MB1891.eurprd01.prod.exchangelabs.com>]

end of thread, other threads:[~2017-03-27 11:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-26  6:25 Force center alignment in LaTeX table export? Phil Regier
     [not found] <6b2d8e5e114b4ea9accc4d28a9d98662@AM4PR01MB1891.eurprd01.prod.exchangelabs.com>
2017-03-26 12:14 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.