all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* fontifying superscript/subscript
@ 2012-10-13  6:04 Benjamin Slade
  2012-10-13  6:41 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Slade @ 2012-10-13  6:04 UTC (permalink / raw)
  To: emacs-orgmode

Is there a way to have org-mode fontify superscript/subscript the way
that AUCTeX does?

(A second, but related, question---especially assuming that the answer
to the first question may be "no"---is there any straightforward way of
getting emacs to raise/lower text as part of a "face"? [I looked at
font-latex.el of AUCTeX, but it's not clear to me exactly how the
raising/lowering is being implementd.])


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr Benjamin Slade <http://ling.uta.edu/~ben/>
  Dept. of Linguistics & TESOL 
    University of Texas at Arlington                
      132E Hammond Hall | Office Hours: tba
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        {sent by mu4e on Emacs running under GNU/Linux}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fontifying superscript/subscript
  2012-10-13  6:04 fontifying superscript/subscript Benjamin Slade
@ 2012-10-13  6:41 ` Carsten Dominik
  2012-10-13  6:57   ` Benjamin Slade
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2012-10-13  6:41 UTC (permalink / raw)
  To: Benjamin Slade; +Cc: emacs-orgmode


On 13.10.2012, at 08:04, Benjamin Slade wrote:

> Is there a way to have org-mode fontify superscript/subscript the way
> that AUCTeX does?

C-c C-x \

> 
> (A second, but related, question---especially assuming that the answer
> to the first question may be "no"---is there any straightforward way of
> getting emacs to raise/lower text as part of a "face"? [I looked at
> font-latex.el of AUCTeX, but it's not clear to me exactly how the
> raising/lowering is being implementd.])
> 
> 
> -- 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Dr Benjamin Slade <http://ling.uta.edu/~ben/>
>  Dept. of Linguistics & TESOL 
>    University of Texas at Arlington                
>      132E Hammond Hall | Office Hours: tba
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>        {sent by mu4e on Emacs running under GNU/Linux}
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fontifying superscript/subscript
  2012-10-13  6:41 ` Carsten Dominik
@ 2012-10-13  6:57   ` Benjamin Slade
  2012-10-13 16:06     ` Thomas S. Dye
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Slade @ 2012-10-13  6:57 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Thanks. 

I suppose that:

(add-hook 'org-mode-hook 'org-toggle-pretty-entities)

is the way the auto-enable it?


On Sat, 13 Oct 2012, Carsten Dominik wrote:

> On 13.10.2012, at 08:04, Benjamin Slade wrote:
>
>> Is there a way to have org-mode fontify superscript/subscript the way
>> that AUCTeX does?
>
> C-c C-x \
>
>> 
>> (A second, but related, question---especially assuming that the answer
>> to the first question may be "no"---is there any straightforward way of
>> getting emacs to raise/lower text as part of a "face"? [I looked at
>> font-latex.el of AUCTeX, but it's not clear to me exactly how the
>> raising/lowering is being implementd.])
>> 
>> 
>> -- 
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Dr Benjamin Slade <http://ling.uta.edu/~ben/>
>>  Dept. of Linguistics & TESOL 
>>    University of Texas at Arlington                
>>      132E Hammond Hall | Office Hours: tba
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>        {sent by mu4e on Emacs running under GNU/Linux}
>> 


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr Benjamin Slade <http://ling.uta.edu/~ben/>
  Dept. of Linguistics & TESOL 
    University of Texas at Arlington                
      132E Hammond Hall | Office Hours: tba
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        {sent by mu4e on Emacs running under GNU/Linux}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fontifying superscript/subscript
  2012-10-13  6:57   ` Benjamin Slade
@ 2012-10-13 16:06     ` Thomas S. Dye
  2012-10-13 16:15       ` Benjamin Slade
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas S. Dye @ 2012-10-13 16:06 UTC (permalink / raw)
  To: Benjamin Slade; +Cc: emacs-orgmode, Carsten Dominik

Aloha Benjamin,

I don't know if your supposition will work. However, org-pretty-entities
can be customized, or you can put (setq org-pretty-entities t) in your
.emacs.

I prefer to do this on a per-file basis with:
#+startup: entitiespretty

hth,
Tom

Benjamin Slade <slade@jnanam.net> writes:

> Thanks. 
>
> I suppose that:
>
> (add-hook 'org-mode-hook 'org-toggle-pretty-entities)
>
> is the way the auto-enable it?
>
>
> On Sat, 13 Oct 2012, Carsten Dominik wrote:
>
>> On 13.10.2012, at 08:04, Benjamin Slade wrote:
>>
>>> Is there a way to have org-mode fontify superscript/subscript the way
>>> that AUCTeX does?
>>
>> C-c C-x \
>>
>>> 
>>> (A second, but related, question---especially assuming that the answer
>>> to the first question may be "no"---is there any straightforward way of
>>> getting emacs to raise/lower text as part of a "face"? [I looked at
>>> font-latex.el of AUCTeX, but it's not clear to me exactly how the
>>> raising/lowering is being implementd.])
>>> 
>>> 
>>> -- 
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> Dr Benjamin Slade <http://ling.uta.edu/~ben/>
>>>  Dept. of Linguistics & TESOL 
>>>    University of Texas at Arlington                
>>>      132E Hammond Hall | Office Hours: tba
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>        {sent by mu4e on Emacs running under GNU/Linux}
>>> 

-- 
Thomas S. Dye
http://www.tsdye.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fontifying superscript/subscript
  2012-10-13 16:06     ` Thomas S. Dye
@ 2012-10-13 16:15       ` Benjamin Slade
  0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Slade @ 2012-10-13 16:15 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode, Carsten Dominik

It seemed to work, but (setq org-pretty-entities t) is probably cleaner,
so I switched to that.

thanks,  --Ben

On Sat, 13 Oct 2012, Thomas S. Dye <tsd@tsdye.com> wrote:

> Aloha Benjamin,
>
> I don't know if your supposition will work. However, org-pretty-entities
> can be customized, or you can put (setq org-pretty-entities t) in your
> .emacs.
>
> I prefer to do this on a per-file basis with:
> #+startup: entitiespretty
>
> hth,
> Tom
>
> Benjamin Slade <slade@jnanam.net> writes:
>
>> Thanks. 
>>
>> I suppose that:
>>
>> (add-hook 'org-mode-hook 'org-toggle-pretty-entities)
>>
>> is the way the auto-enable it?
>>
>>
>> On Sat, 13 Oct 2012, Carsten Dominik wrote:
>>
>>> On 13.10.2012, at 08:04, Benjamin Slade wrote:
>>>
>>>> Is there a way to have org-mode fontify superscript/subscript the way
>>>> that AUCTeX does?
>>>
>>> C-c C-x \
>>>
>>>> 
>>>> (A second, but related, question---especially assuming that the answer
>>>> to the first question may be "no"---is there any straightforward way of
>>>> getting emacs to raise/lower text as part of a "face"? [I looked at
>>>> font-latex.el of AUCTeX, but it's not clear to me exactly how the
>>>> raising/lowering is being implementd.])
>>>> 
>>>> 
>>>> -- 
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>> Dr Benjamin Slade <http://ling.uta.edu/~ben/>
>>>>  Dept. of Linguistics & TESOL 
>>>>    University of Texas at Arlington                
>>>>      132E Hammond Hall | Office Hours: tba
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>        {sent by mu4e on Emacs running under GNU/Linux}
>>>> 


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr Benjamin Slade <http://ling.uta.edu/~ben/>
  Dept. of Linguistics & TESOL 
    University of Texas at Arlington                
      132E Hammond Hall | Office Hours: tba
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        {sent by mu4e on Emacs running under GNU/Linux}

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-13 16:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-13  6:04 fontifying superscript/subscript Benjamin Slade
2012-10-13  6:41 ` Carsten Dominik
2012-10-13  6:57   ` Benjamin Slade
2012-10-13 16:06     ` Thomas S. Dye
2012-10-13 16:15       ` Benjamin Slade

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.