Re: LaTeX commands and packages names autocomplete.

2023-05-07 Thread Arash Esbati
Hongyi Zhao writes: > On Sat, May 6, 2023 at 7:58 PM Arash Esbati wrote: >> >> You want to activate AUCTeX for your experiment. > > But, we are doing the test using `emacs -Q` and how can I in this > scenario to enable AUCTeX? I presumed that you have installed AUCTeX via package.el from ELPA,

Re: LaTeX commands and packages names autocomplete.

2023-05-06 Thread Hongyi Zhao
On Sat, May 6, 2023 at 8:22 PM Hongyi Zhao wrote: > > On Sat, May 6, 2023 at 7:58 PM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > I use the following tex file to do the test, but nothing is completed: > > > > From your screenshot, you're using the built-in latex-mode provided by >

Re: LaTeX commands and packages names autocomplete.

2023-05-06 Thread Hongyi Zhao
On Sat, May 6, 2023 at 7:58 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I use the following tex file to do the test, but nothing is completed: > > From your screenshot, you're using the built-in latex-mode provided by > Emacs. Thank you for pointing this out to me. > You want to

Re: LaTeX commands and packages names autocomplete.

2023-05-06 Thread Arash Esbati
Hongyi Zhao writes: > I use the following tex file to do the test, but nothing is completed: >From your screenshot, you're using the built-in latex-mode provided by Emacs. You want to activate AUCTeX for your experiment. Then, the value of `completion-at-point-functions' should be:

Re: LaTeX commands and packages names autocomplete.

2023-05-06 Thread Hongyi Zhao
On Fri, May 5, 2023 at 2:23 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > Now, I add the `:demand t` to the corfu's use-package configuration, > > but the problem still remains: > > I don't think this is a corfu/AUCTeX issue. Try: > > • emacs -Q > • M-x package-initialize RET > • eval

Re: LaTeX commands and packages names autocomplete.

2023-05-05 Thread Hongyi Zhao
On Fri, May 5, 2023 at 6:21 PM Hongyi Zhao wrote: > > On Fri, May 5, 2023 at 5:58 PM Hongyi Zhao wrote: > > > > On Fri, May 5, 2023 at 4:17 PM Arash Esbati wrote: > > > > > > Hongyi Zhao writes: > > > > > > > Perhaps the simplest solution is to use the cape to interface to > > > >

Re: LaTeX commands and packages names autocomplete.

2023-05-05 Thread Hongyi Zhao
On Fri, May 5, 2023 at 5:58 PM Hongyi Zhao wrote: > > On Fri, May 5, 2023 at 4:17 PM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > Perhaps the simplest solution is to use the cape to interface to > > > well-developed backends. > > > > Please feel free to try it out; maybe you report

Re: LaTeX commands and packages names autocomplete.

2023-05-05 Thread Hongyi Zhao
On Fri, May 5, 2023 at 4:17 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > Perhaps the simplest solution is to use the cape to interface to > > well-developed backends. > > Please feel free to try it out; maybe you report back how good it works > with other available backends. I'd be

Re: LaTeX commands and packages names autocomplete.

2023-05-05 Thread Arash Esbati
Hongyi Zhao writes: > Perhaps the simplest solution is to use the cape to interface to > well-developed backends. Please feel free to try it out; maybe you report back how good it works with other available backends. I'd be curious to know how good completion for package names in \usepackage{}

Re: LaTeX commands and packages names autocomplete.

2023-05-05 Thread Hongyi Zhao
On Fri, May 5, 2023 at 2:23 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > 2. Package names still cannot be automatically completed, as shown in > > the attached screenshot. > > Yes, in-buffer completion for package/class names and options isn't > implemented yet, patches welcome. Perhaps

Re: LaTeX commands and packages names autocomplete.

2023-05-05 Thread Arash Esbati
Hongyi Zhao writes: > Now, I add the `:demand t` to the corfu's use-package configuration, > but the problem still remains: I don't think this is a corfu/AUCTeX issue. Try: • emacs -Q • M-x package-initialize RET • eval (setq tab-always-indent 'complete) • Open a .tex file and do 'M-x

Re: LaTeX commands and packages names autocomplete.

2023-05-05 Thread Arash Esbati
Hongyi Zhao writes: > 2. Package names still cannot be automatically completed, as shown in > the attached screenshot. Yes, in-buffer completion for package/class names and options isn't implemented yet, patches welcome. Best, Arash

Re: LaTeX commands and packages names autocomplete.

2023-05-04 Thread Hongyi Zhao
On Fri, May 5, 2023 at 7:58 AM Hongyi Zhao wrote: > > On Fri, May 5, 2023 at 2:18 AM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > I should have also uncommented the above line. But even so, I have the > > > following problems: > > > > > > 1. I must at least type 3 letters to

Re: LaTeX commands and packages names autocomplete.

2023-05-04 Thread Hongyi Zhao
On Fri, May 5, 2023 at 2:18 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I should have also uncommented the above line. But even so, I have the > > following problems: > > > > 1. I must at least type 3 letters to trigger the completion. > > ,[ C-h v corfu-auto-prefix RET ] > |

Re: LaTeX commands and packages names autocomplete.

2023-05-04 Thread Arash Esbati
Hongyi Zhao writes: > I should have also uncommented the above line. But even so, I have the > following problems: > > 1. I must at least type 3 letters to trigger the completion. ,[ C-h v corfu-auto-prefix RET ] | corfu-auto-prefix is a variable defined in ‘corfu.el’. | | Its value is 3 |

Re: LaTeX commands and packages names autocomplete.

2023-05-04 Thread Hongyi Zhao
On Thu, May 4, 2023 at 11:40 PM Hongyi Zhao wrote: > > On Thu, May 4, 2023 at 10:54 PM Hongyi Zhao wrote: > > > > On Tue, May 2, 2023 at 1:30 PM Arash Esbati wrote: > > > > > > Hongyi Zhao writes: > > > > > > > My current configuration: > > > > > > > > (use-package company-math > > > > :hook

Re: LaTeX commands and packages names autocomplete.

2023-05-04 Thread Hongyi Zhao
On Thu, May 4, 2023 at 10:54 PM Hongyi Zhao wrote: > > On Tue, May 2, 2023 at 1:30 PM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > My current configuration: > > > > > > (use-package company-math > > > :hook > > > ;; This will enable the company-math backend for LaTeX mode > > >

Re: LaTeX commands and packages names autocomplete.

2023-05-04 Thread Hongyi Zhao
On Tue, May 2, 2023 at 1:30 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > My current configuration: > > > > (use-package company-math > > :hook > > ;; This will enable the company-math backend for LaTeX mode > > (LaTeX-mode . (lambda () > > (setq-local company-backends > >

Re: LaTeX commands and packages names autocomplete.

2023-05-02 Thread Arash Esbati
David Kastrup writes: > Huh? Things like \begin{smallmatrix} are certainly useful in inline > math. They make it hard to pick a good way of formatting the _source_, > but the output is certainly fine. Thanks for the correction. So I should have said: AUCTeX unfortunately doesn't support

Re: LaTeX commands and packages names autocomplete.

2023-05-02 Thread David Kastrup
Arash Esbati writes: > Hongyi Zhao writes: > >> I commented out the above code snippet, but nothing will be completed, >> as shown in the attached file. >> >> Here I want to point out two things: >> >> 1. As you can see, without using company-math, it seems that fewer >> candidates are

Re: LaTeX commands and packages names autocomplete.

2023-05-02 Thread Arash Esbati
Hongyi Zhao writes: > I commented out the above code snippet, but nothing will be completed, > as shown in the attached file. > > Here I want to point out two things: > > 1. As you can see, without using company-math, it seems that fewer > candidates are returned. The upside is that you don't

Re: LaTeX commands and packages names autocomplete.

2023-05-02 Thread Hongyi Zhao
On Tue, May 2, 2023 at 1:30 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > My current configuration: > > > > (use-package company-math > > :hook > > ;; This will enable the company-math backend for LaTeX mode > > (LaTeX-mode . (lambda () > > (setq-local company-backends > >

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Arash Esbati
Hongyi Zhao writes: > My current configuration: > > (use-package company-math > :hook > ;; This will enable the company-math backend for LaTeX mode > (LaTeX-mode . (lambda () > (setq-local company-backends > (append '((company-math-symbols-latex >

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Hongyi Zhao
On Tue, May 2, 2023 at 12:19 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I commented out the `company-fuzzy` and `company-math` packages, now > > it works. > > > > But I really want to have the feature provided by `company-math`, and > > it seems that my following configuration seems to

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Arash Esbati
Hongyi Zhao writes: > I commented out the `company-fuzzy` and `company-math` packages, now > it works. > > But I really want to have the feature provided by `company-math`, and > it seems that my following configuration seems to be both chaotic and > problematic: > [...] > If anyone has

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Hongyi Zhao
On Mon, May 1, 2023 at 8:47 PM Hongyi Zhao wrote: > > On Mon, May 1, 2023 at 6:20 PM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > Some time ago, it seemed that my auctex configuration was able to > > > provide autocomplete for

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Hongyi Zhao
On Mon, May 1, 2023 at 6:20 PM David Kastrup wrote: > > Hongyi Zhao writes: > > > Hi here, > > > > Some time ago, it seemed that my auctex configuration was able to > > provide autocomplete for LaTeX commands and packages names. However, > > currently, a

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread David Kastrup
Hongyi Zhao writes: > Hi here, > > Some time ago, it seemed that my auctex configuration was able to > provide autocomplete for LaTeX commands and packages names. However, > currently, all of these functions are disabled. How should I enable > these features again? Und

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Arash Esbati
Hongyi Zhao writes: > Some time ago, it seemed that my auctex configuration was able to > provide autocomplete for LaTeX commands and packages names. However, > currently, all of these functions are disabled. How should I enable > these features again? Maybe you've changed to value

LaTeX commands and packages names autocomplete.

2023-05-01 Thread Hongyi Zhao
Hi here, Some time ago, it seemed that my auctex configuration was able to provide autocomplete for LaTeX commands and packages names. However, currently, all of these functions are disabled. How should I enable these features again? Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory