emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: zwz <zhangweize@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [feature request] set text color and size
Date: Mon, 07 Jan 2013 20:16:18 +0800	[thread overview]
Message-ID: <87vcb95gtp.fsf@gmail.com> (raw)


I made presentations with org-mode + beamer quite a lot.
Now and then I'd like to set a different color for some text 
to draw the students' attention. For example,
#+begin_src org
* test
  blah blah ...
  We should \textcolor{red}{NEVER} do it.
  ....
#+end_src 

As HTML5 slides are getting popular these days, I am trying org-mode +
HTML5. But I find I have to keep a separate edition of org file for
HTML5 slides from the beamer ones, since the color setting is quite
different.

Here comes my feature request: set text color in a consistent way.
We may introduce a new syntax and rewrite the test org-file above as follows:
#+begin_src org
* test
  blah blah ...
  We should [#ff0000 NEVER] do it.
  ....
#+end_src

In the brackets, the first item is the color to be set for the rest
text. And this item must start with #, followed by RGB hex numbers (css-like)
or a color name. If the format is not right, we can just treat it like
normal text. 

The syntax can be extended for setting text size as well. That is, #
followed by some numbers (ie. less than 6 numbers).

                 reply	other threads:[~2013-01-07 12:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87vcb95gtp.fsf@gmail.com \
    --to=zhangweize@gmail.com \
    --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).