From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: text color + highlight Date: Sat, 07 Aug 2010 14:17:07 +0200 Message-ID: <87tyn67h30.fsf@gmx.de> References: <87pqxw5cb1.fsf@gnu.org> <87mxszcsuv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=37665 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oi9ch-0006lr-Qh for emacs-orgmode@gnu.org; Sun, 08 Aug 2010 13:25:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhiKd-0007nI-1x for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 08:16:56 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:50396 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OhiKc-0007mx-L9 for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 08:16:55 -0400 In-Reply-To: <87mxszcsuv.fsf@gmail.com> (Eric Schulte's message of "Fri, 06 Aug 2010 17:51:36 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Bastien , emacs-orgmode@gnu.org, Vinh Nguyen "Eric Schulte" writes: > Hi, > > I've recently seen similar requests on this list. > > The attached patch provides a first pass at this support implementing > both in-buffer coloring given the following syntax, and html export (I > don't know the correct LaTeX syntax, but it shouldn't be hard to extend > this to LaTeX as well). This uses something like the LaTeX Beamer > \color{}{} directive, for example... > > My name is \color{red}{eric} schulte. > > Would result in the word "eric" appearing in red. Even though I > implemented the syntax above, I'm *not* recommending this syntax, it > feels decidedly more like "latex" than "org", it was simply the only > obvious option for this initial implementation. Well, why not keep that syntax, but add another one: --8<---------------cut here---------------start------------->8-- #+color: red * This entired entry is in red color The contents too. * Back to normal Some text. #+color: green This next something (a pragraph in this case) is in green color. back to normal --8<---------------cut here---------------end--------------->8-- Maybe it's easier to make the comment color the next line only? How about #+style: color=red weight=bold Or #+red #+bold I'm red and bold. Something like this. It's easier to just add a comment, than to wrap a region. Curly braces are hard to type on a german keyboard. Just jump to the beginning of a line and type `#+red RET' seems easier to me. To remove `#+red', `C-k C-k' is enough. No need to learn another Shortcut. Sebastian