From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: Re: export latex in a table Date: Sat, 21 Sep 2013 11:25:48 +0000 (UTC) Message-ID: References: <877geav4pg.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNLKP-0005KW-By for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 07:26:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNLKJ-0008Nz-VZ for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 07:26:21 -0400 Received: from plane.gmane.org ([80.91.229.3]:45957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNLKJ-0008N2-OQ for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 07:26:15 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VNLKC-00022S-MO for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 13:26:10 +0200 Received: from 115.236.9.86 ([115.236.9.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Sep 2013 13:26:08 +0200 Received: from zhangweize by 115.236.9.86 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Sep 2013 13:26:08 +0200 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 Rasmus gmx.us> writes: > > zwz gmail.com> writes: > > I'm assuming you're only interested in LaTeX output here. > > > Hi, I want to export a table to pdf as follows: > > > > * test > > | \textcolor{red}{range} | \textcolor{blue}{0\sim2^{8}-1} | > > How about this? > > #+MACRO: color \textcolor{$1}{$2} > | {{{color(red, range)}}} | {{{color(blue, 0\sim2^8-1)}}} | > > Unless you're doing something that's not systematic, or which has a > very particular logic it's probably not the right way. > > If all entries in a column/row need to be colored you should specify > that rather than doing it manually. You could use tabu, but be warned > that the interface will change at some point, or you could use > colortbl. See here: > > http://texblog.org/2011/04/19/highlight-table-rowscolumns-with-color/ > > –Rasmus > The macro-way does not work. The generated tex still contains the extra \ before {. My org version is 8.0.7. Thanks for your tips. But I just want to color some column/row. And I really enjoy the convenience of org table.