auctex
[Top][All Lists]
Advanced

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

Re: Feature request: Show the characters corresponding to the LaTeX comm


From: Hongyi Zhao
Subject: Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.
Date: Sun, 19 Dec 2021 19:26:23 +0800

On Sun, Dec 19, 2021 at 5:18 PM Tassilo Horn <tsdh@gnu.org> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> >> What do you mean with "the actual characters corresponding to each
> >> command"?  Could you give an example/mockup of what you would like to
> >> see in your example screenshot?
> >
> > Similar to the one given by company-math.
>
> Oh, allright.  We would need to provide an :annotation-function in
> `completion-extra-properties' which translates, e.g., \alpha to α.

Only such a function will do the tick for the predefined commands?

> company-math seems to use some other ELPA package `math-symbol-list' for
> that job which defines such a mapping.

You're right. The package is named as `math-symbol-lists' [1-2], and
the ELPA version is rather outdated.

[1] https://github.com/vspinu/math-symbol-lists
[2] https://elpa.gnu.org/packages/math-symbol-lists.html

> So that sounds pretty doable to use that if it is installed, e.g., as an
> optional dependency.
>
> Feel free to open a bug report for that with the above mentioned
> details.  (Also, feel free to attach a patch. ;-))

HZ



reply via email to

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