From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: export latex in a table Date: Sat, 21 Sep 2013 12:39:39 +0200 Message-ID: <877geav4pg.fsf@gmx.us> References: 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]:34539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNKbb-0007u0-Jm for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 06:40:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNKbV-0003wT-Ls for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 06:40:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:56063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNKbV-0003wP-F3 for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 06:39:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VNKbQ-0004aa-LS for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 12:39:52 +0200 Received: from dynamic-adsl-94-34-254-120.clienti.tiscali.it ([94.34.254.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Sep 2013 12:39:52 +0200 Received: from rasmus by dynamic-adsl-94-34-254-120.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Sep 2013 12:39:52 +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 zwz 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 -- This space is left intentionally blank