From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Using color in latex export Date: Fri, 12 Sep 2014 15:29:58 -0400 Message-ID: <87mwa4tz61.fsf@alphaville.bos.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSWY2-0005jt-6Q for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:30:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSWXu-0004Yz-MC for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:30:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:60767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSWXu-0004Yv-GX for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:30:14 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XSWXs-0000ou-WF for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 21:30:13 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Sep 2014 21:30:12 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Sep 2014 21:30:12 +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 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} > ... > > But, this is producing > ... > \usepackage{color} > \textcolor{red}\{Text I want in red\} in the exported latex document. > ... > > How can I properly export the org file to latex and still have colored text. How can I escape braces '{'? > Try this: --8<---------------cut here---------------start------------->8--- Here is some @@latex:\textcolor{red}{red text}@@ --8<---------------cut here---------------end--------------->8--- Nick