emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: text color + highlight


From: Dan Davison
Subject: [Orgmode] Re: text color + highlight
Date: Fri, 06 Aug 2010 23:57:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

"Eric Schulte" <address@hidden> writes:

> Hi Vinh,
>
> Vinh Nguyen <address@hidden> writes:
>
>> Thanks Eric, this works.
>
> Great,
>
>> I do agree that the implemented syntax is not org-like but more
>> latex-like.  To be more org-like, could we use parentheses or curly
>> braces like how links are implemented?  They aren't taken, are they?
>> For example,
>>
>> ((red)(this text is red))
>> {{yellow}{this text is highlighted yellow}} ## see
>> http://answers.yahoo.com/question/index?qid=20080316135432AANXSJc
>>
>
> yes, these would be equally easy to implement, and simpler than with the
> \color prefix, but as someone who often leaves lisp snippets laying
> around org-mode files, these options may be too dangerous.  We'd have to
> ensure that the syntax doesn't accidentally grab text which is not
> intended for formatting.
>
> also, color gives the option of other keyword attributes which we may
> want to associate with text, e.g. "background" for background coloring
> (highlighting), "font-type" for possibly different fonts, etc...

This seems close to the ideas discussed in some threads started by
Samuel Wales, regarding introducing a new extensible syntax which could
handle applications like this

http://thread.gmane.org/gmane.emacs.orgmode/10204/focus=10240
http://thread.gmane.org/gmane.emacs.orgmode/11896

Dan

>
> but again, I'm reticent to commit to any particular format, as Org-mode
> does a good job of feeling consistent, and I'd not want to hurt that
> consistency.
>
>>
>> What do you think?  How hard would it be to change your code to this?
>> Can this be merged into the development branch?
>>
>
> In playing with the patched code I sent out, I noticed that it may be
> doing weird things to my headings (#+Title: etc...) in some Org-mode
> files, so probably it could use some more tweaking before any merge,
> also I'd not want to rush what could be a reasonably large change into
> Org-mode without more discussion, but I agree I'd ultimately like to see
> some form of this functionality appear in Org-mode.
>
> Best -- Eric
>
>>
>> Thanks,
>> Vinh
>>
>>
>> On Fri, Aug 6, 2010 at 2:51 PM, Eric Schulte <address@hidden> wrote:
>>> 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.
>>>
>>> -- Eric
>>>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]