emacs-devel
[Top][All Lists]
Advanced

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

Re: prettify-symbols-mode to handle "\alpha-\beta" ...


From: Christopher Dimech
Subject: Re: prettify-symbols-mode to handle "\alpha-\beta" ...
Date: Thu, 4 Feb 2021 21:54:42 +0100

> Sent: Friday, February 05, 2021 at 8:38 AM
> From: "Stefan Monnier" <monnier@iro.umontreal.ca>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Óscar Fuentes" <ofv@wanadoo.es>, emacs-devel@gnu.org
> Subject: Re: prettify-symbols-mode to handle "\alpha-\beta" ...
>
> >> What is "the" improvement you're referring to?
> > Improvement for prog-mode.el to be able to handle the prettifying
> > the tex commands as well.  Prettify greek letters and math symbols,
> > Binary operations and other relations,  and arrows.
> 
> prog-mode.el shouldn't try to prettify TeX commands, but yes, it should
> provide the means to do it.  AFAICT what it provides is already
> sufficient to prettify any of TeX's symbols.  It might fall short when
> you try to prettify other things like \frac, negative space,
> superscript, ...

Correct, it should provide the framework to support the keyword operations
and how they are prettified.  But prettify can be made dependent on language.
And pointed out, for tex, prettify falls short in some aspects.  The improvement
would be for prettify to handle them.  Superscript and subscripts can be 
handled.
Originally, TeX's symbols were considered the same way as programming language.
But that assumption is not completely correct because the construction
of mathematical expressions differs in important ways from standard programming
syntax.

Could make a minor mode for texinfo to set things up using functionality
from prog-mode.el.  The minor mode could also handle superscripts and 
subscripts.

 
>         Stefan
> 
> 
>



reply via email to

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