From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Change color for two words in LaTeX export using cologr package? Date: Fri, 24 Jul 2015 14:39:30 +0100 Message-ID: <87twst8yjx.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIdCU-00073d-4n for emacs-orgmode@gnu.org; Fri, 24 Jul 2015 09:39:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIdCQ-0000sS-Pu for emacs-orgmode@gnu.org; Fri, 24 Jul 2015 09:39:46 -0400 Received: from mail-am1on0103.outbound.protection.outlook.com ([157.56.112.103]:17842 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIdCQ-0000qM-Hg for emacs-orgmode@gnu.org; Fri, 24 Jul 2015 09:39:42 -0400 In-Reply-To: (Rainer M. Krug's message of "Fri, 24 Jul 2015 15:07:42 +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: Rainer M Krug Cc: emacs-orgmode@gnu.org On Friday, 24 Jul 2015 at 15:07, Rainer M Krug wrote: > Hi > > In an org document, I want to change the text colour of two words > {\color{red} red line } to red in a sentence and the rest should be > normal colour. > > I am missing something, as this changes the text colour for the rest of > the sentence into red. How can I only change the colour of the two > words? I usually do this type of thing as follows: #+latex: {\color{red} red line #+latex: } which allows for org-isms in the text. Alternatively, you could do: ... @@latex:{\color{red} red line}@@ if you don't need to use org syntax within the {}. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1293-g985420