From: Rainer M Krug <Rainer@krugs.de>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: [odt-export] Setting Text Colour for odt export
Date: Fri, 20 Nov 2015 14:33:43 +0100 [thread overview]
Message-ID: <m28u5skd6w.fsf@krugs.de> (raw)
In-Reply-To: <87oaeo3kqa.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 20 Nov 2015 13:42:53 +0100")
[-- 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 --]
prev parent reply other threads:[~2015-11-20 13:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m28u5skd6w.fsf@krugs.de \
--to=rainer@krugs.de \
--cc=emacs-orgmode@gnu.org \
--cc=rasmus@gmx.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).