emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Using color in latex export


From: Chaitanya Krishna
Subject: Re: [O] Using color in latex export
Date: Sat, 13 Sep 2014 12:05:07 +0200

Thank you (Nick and Tom). Both the solutions above worked.

Regards,
Chai

On Fri, Sep 12, 2014 at 9:53 PM, Thomas S. Dye <address@hidden> wrote:
Aloha Chai,

Chaitanya Krishna <address@hidden> 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



--
42

reply via email to

[Prev in Thread] Current Thread [Next in Thread]