Rasmus <ras...@gmx.us> writes:

> Hi,
>
> Rainer M Krug <rai...@krugs.de> 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>@@,
OK - that looks nice. Where can I read more about the @@...@@ syntax in
org? For conditional backend specific syntax I was only using

--8<---------------cut here---------------start------------->8---
#+MACRO: clearpage (eval (if (org-export-derived-backend-p 
org-export-current-backend 'latex) "\\clearpage"        ""               ))
--8<---------------cut here---------------end--------------->8---

but the @@...@@ looks clearer to me.

>
> 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

Hm. This sounds problematic, as I have to convert these to docx and send
them finally to the co-authors.

At the moment odt export just inserts "\color{red}" so I'll leave it
for this at the moment.

Thanks,

Rainer

>
> Hope it helps,
> Rasmus

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      rai...@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature

Reply via email to