From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Using color in latex export Date: Fri, 12 Sep 2014 09:53:20 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSWuj-0002Bq-T8 for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:53:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSWub-0002Dl-9F for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:53:49 -0400 Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:51489) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1XSWub-0002DM-0h for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:53:41 -0400 In-Reply-To: (Chaitanya Krishna's message of "Fri, 12 Sep 2014 21:13:50 +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: Chaitanya Krishna Cc: emacs-orgmode@gnu.org Aloha Chai, Chaitanya Krishna writes: > Hello all, > > I would like to have some text in color when I export my org document to > latex. > > I tried this: > ... > #+latex_header: \usepackage{color} > \textcolor{red}{Text I want in red} One way is with a macro, e.g., #+MACRO: red \textcolor{red}{$1} This is {{{red(Text I want in red)}}}. Which exports to This is \textcolor{red}{Text I want in red}. Or, more generally, #+MACRO: color \textcolor{$1}{$2} This is {{{color(green,Text I want in green)}}}. Which exports to This is \textcolor{green}{Text I want in green}. hth, Tom -- Thomas S. Dye http://www.tsdye.com