Query for environment to include in `LaTeX-env-figure'

2021-12-19 Thread Arash Esbati
Hi all, when inserting a table environment with 'C-c C-e table RET', `LaTeX-env-figure' inserts the floating environment 'table' and then inserts the tabular environment stored in `LaTeX-default-tabular-environment' (the relevant part starts here[1]). I like the idea, but

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Hongyi Zhao
On Sun, Dec 19, 2021 at 10:19 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> 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

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Tassilo Horn
Tassilo Horn writes: > Or are you asking if that will make that work for all standard AUCTeX > completion functions. I guess so, although just setting > > (setq-local completion-extra-properties > '(:annotation-function > (lambda (x) (message "AF: %S" x) "foo")))

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Tassilo Horn
Hongyi Zhao writes: >> 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? I'm not enitrely sure what you are asking. Are you asking if

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Hongyi Zhao
On Sun, Dec 19, 2021 at 5:18 PM Tassilo Horn wrote: > > Hongyi Zhao 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

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Tassilo Horn
Hongyi Zhao 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

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Tassilo Horn
Hongyi Zhao writes: Hi! > When I call `TeX-insert-macro' by hitting `C-c RET', the predefined > LaTeX commands are displayed in the minibuffer, so I can choose from > them, as shown in the attached file. > > It would be better if the actual characters corresponding to each > command can be