From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: [feature request] set text color and size Date: Mon, 07 Jan 2013 20:16:18 +0800 Message-ID: <87vcb95gtp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsBNI-0008Fg-EC for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 07:00:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsBNH-0000Nt-E6 for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 07:00:16 -0500 Received: from plane.gmane.org ([80.91.229.3]:40526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsBNH-0000NZ-7I for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 07:00:15 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TsBNU-0001cc-V7 for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 13:00:28 +0100 Received: from 115.236.9.81 ([115.236.9.81]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jan 2013 13:00:28 +0100 Received: from zhangweize by 115.236.9.81 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jan 2013 13:00:28 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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).