emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [odt-export] Setting Text Colour for odt export


From: Rasmus
Subject: Re: [O] [odt-export] Setting Text Colour for odt export
Date: Fri, 20 Nov 2015 13:42:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Hi,

Rainer M Krug <address@hidden> writes:

> I am using 
>
> \color{red} some red text \color{black} and we continue with black
>
> to set the text colour for sections in my document for LaTeX export, but
> this does obviously does not org for odt export.
>
> What can I use to achieve the same for odt export?

You can use a macro.  {{{color(text, red)}}}.  You then specify a macro
that inserts

     @@latex:{\color{red} text}@@@@odt:<text:span 
text:style-name="red">text</text:span>@@,

Unfortunately, it doesn’t seem like odt provides inline styles, so you may
have to add new styles for each color; see:

    
https://www.gnu.org/software/emacs/manual/html_node/org/Creating-one_002doff-styles.html

Hope it helps,
Rasmus

-- 
One thing that is clear: it's all down hill from here 




reply via email to

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