* [odt-export] Setting Text Colour for odt export
@ 2015-11-20 12:24 Rainer M Krug
2015-11-20 12:42 ` Rasmus
0 siblings, 1 reply; 3+ messages in thread
From: Rainer M Krug @ 2015-11-20 12:24 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 840 bytes --]
Hi
I am using
--8<---------------cut here---------------start------------->8---
\color{red} some red text \color{black} and we continue with black
--8<---------------cut here---------------end--------------->8---
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?
Thanks
Rainer
--
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: Rainer@krugs.de
Skype: RMkrug
PGP: 0x0F52F982
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [odt-export] Setting Text Colour for odt export
2015-11-20 12:24 [odt-export] Setting Text Colour for odt export Rainer M Krug
@ 2015-11-20 12:42 ` Rasmus
2015-11-20 13:33 ` Rainer M Krug
0 siblings, 1 reply; 3+ messages in thread
From: Rasmus @ 2015-11-20 12:42 UTC (permalink / raw)
To: emacs-orgmode
Hi,
Rainer M Krug <Rainer@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>@@,
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [odt-export] Setting Text Colour for odt export
2015-11-20 12:42 ` Rasmus
@ 2015-11-20 13:33 ` Rainer M Krug
0 siblings, 0 replies; 3+ messages in thread
From: Rainer M Krug @ 2015-11-20 13:33 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1924 bytes --]
Rasmus <rasmus@gmx.us> writes:
> Hi,
>
> Rainer M Krug <Rainer@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: Rainer@krugs.de
Skype: RMkrug
PGP: 0x0F52F982
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-20 13:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-20 12:24 [odt-export] Setting Text Colour for odt export Rainer M Krug
2015-11-20 12:42 ` Rasmus
2015-11-20 13:33 ` Rainer M Krug
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).