From: Christian Moe <mail@christianmoe.com>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: Gary Oberbrunner <garyo@oberbrunner.com>,
Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: ODT export custom link colors?
Date: Thu, 15 Dec 2011 10:03:08 +0100 [thread overview]
Message-ID: <4EE9B7CC.6060905@christianmoe.com> (raw)
In-Reply-To: <81d3bqjn7p.fsf@gmail.com>
On 12/15/11 8:41 AM, Jambunathan K wrote:
> I usually put the cursor on the text that I am interested in, press F11
> and switch to char styles or whatever category. The right style would be
> highlighted which you can directly inherit from.
Indeed, that's a better recipe. (On a Mac laptop keyboard, Cmd-T
instead of F11.)
>
> The exact scenario you describe here is documented in the manual.
>
> (info "(org) Creating one-off styles")
The scenario was not mixing raw ODT XML in with Org, but using a
custom link type to color text. The manual page you point to gives all
the info one would need to figure out how to do it, and I should have
given the reference. But the manual does not spell out exactly how to
solve that scenario, so I thought that would be helpful.
> #+begin_src emacs-lisp
> (org-odt-format-fontify "This text is in red" "red-style")
> #+end_src
>
> It will mark the text in "red-style". You can similarly use this or this
> for marking text in bold.
>
> #+begin_src emacs-lisp
> (org-odt-format-fontify "This text is in red" 'bold)
> #+end_src
That's cool, but how do you suggest to use it? I tried it with
=:exports results=, but that didn't work (the angle brackets got
escaped).
But I probably misunderstood, and you meant to use it to generate the
correct raw XML and then include the result in the text, with =@=
signs added?
That works out of the box for the "bold" example, but not for
"red-style" -- I assume we'd have to create that style first?
> If you look at OrgOdtStyles.xml (C-h v org-odt-styles-dir) and you can
> see a bunch of styles marked as "Org Agenda Styles". These are used for
> marking TODO in red and DONE in green etc.
>
> Copy& paste those styles, fix the name and background color and you are
> done.
Thanks, that's helpful.
Yours,
Christian
next prev parent reply other threads:[~2011-12-15 8:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-14 17:34 ODT export custom link colors? Gary Oberbrunner
2011-12-14 20:38 ` Christian Moe
2011-12-15 7:41 ` Jambunathan K
2011-12-15 9:03 ` Christian Moe [this message]
2011-12-20 22:01 ` Gary Oberbrunner
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=4EE9B7CC.6060905@christianmoe.com \
--to=mail@christianmoe.com \
--cc=emacs-orgmode@gnu.org \
--cc=garyo@oberbrunner.com \
--cc=kjambunathan@gmail.com \
/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).