From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [odt-export] Setting Text Colour for odt export
Date: Fri, 20 Nov 2015 13:42:53 +0100 [thread overview]
Message-ID: <87oaeo3kqa.fsf@gmx.us> (raw)
In-Reply-To: m2k2pckgei.fsf@krugs.de
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
next prev parent reply other threads:[~2015-11-20 12:43 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 [this message]
2015-11-20 13:33 ` Rainer M Krug
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=87oaeo3kqa.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/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).