Trigger Tex file compilation with latexmk automatically when its content is changed and saved.

2023-05-02 Thread Hongyi Zhao
Hi here, For the purpose of automatic compilation in Emacs using AUCTeX and latexmk on Ubuntu Linux, I've the following configuration: ;;; begin config here ;; https://tam5917.hatenablog.com/entry/2021/04/10/134230 ;; https://lists.gnu.org/archive/html/auctex/2021-10/msg00013.html (defvar

bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil

2023-05-02 Thread Sebastian Drude
Dear Arash, Thanks for answering so quickly. My answers/comments are below, marked with "SD>" (for some reason, my mail program did not quote your answer correctly). Best wishes, Sebastian -- Museu P.E. Goeldi, CCH, Linguistica ▪ Av. Perimetral, 1901 Terra Firme, CEP: 66077-530 ▪ Belém do

Re: Set the variable bibtex-completion-bibliography used by helm-bibtex to the dynamical generated bib files list corresponding to the current master tex file.

2023-05-02 Thread Hongyi Zhao
On Wed, May 3, 2023 at 1:55 AM Mandar Mitra wrote: > > Hongyi Zhao wrote (Tue, May 02, 2023 at 10:03:23PM +0800): > > The example setting of this variable is as follows: > > > > (setq bibtex-completion-bibliography (directory-files-recursively > > (concat (getenv "HOME") >

Re: (Un)comment line(s) with markers at arbitrary position(s) in this/these line.

2023-05-02 Thread Tassilo Horn
Hongyi Zhao writes: > I want to have the feature of (Un)comment a line or several lines with > markers at an arbitrary position(s) in/spanning this/these line(s). Use comment-line instead of comment-dwim. --8<---cut here---start->8--- C-x C-; runs the

Re: Set the variable bibtex-completion-bibliography used by helm-bibtex to the dynamical generated bib files list corresponding to the current master tex file.

2023-05-02 Thread Mandar Mitra
Hongyi Zhao wrote (Tue, May 02, 2023 at 10:03:23PM +0800): > The example setting of this variable is as follows: > > (setq bibtex-completion-bibliography (directory-files-recursively > (concat (getenv "HOME") > "/texmf/bibtex/bib/local") "^[A-Za-z].+.bib$")) > > But the

fortification of comments

2023-05-02 Thread Jean Eid
Hello all, I would like not to fontify \% (an actual percentage sign)  but still fontify % (the comment character on its own) I think auctex declares the comment character and lets emacs fontify it through the Show Font Lock Comment Face and Font Lock Comment Delimiter Face. However emacs

bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil

2023-05-02 Thread Arash Esbati
"Sebastian Drude" writes: > I am using the Language Science Press (for xetex) langscibook class, > and when starting, I could not complement on commands defined in that > class and other packages loaded in a local file > \input{localpackages.tex}. I had to update langscibook, and after > that I

Set the variable bibtex-completion-bibliography used by helm-bibtex to the dynamical generated bib files list corresponding to the current master tex file.

2023-05-02 Thread Hongyi Zhao
Hi here, I've the following use scenario: 1. Use helm-bibtex to manage and insert bib entries. 2. Use auctex to do the document creation. 3. I save the bib files used for each master tex file in a subfolder located under the same directory as it. I want to set the

bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil

2023-05-02 Thread Arash Esbati
Sebastian Drude writes: > I am coming back to AUCTeX after many years, now on a Linux-MINT > system (Debian-based). Welcome back. > I understand that, in order to be able to get command-expansion > etc. for all (La)TeX packages, I need to run the command > "TeX-auto-generate-global" once. May

Expanding AUCTeX's Math Minor Mode

2023-05-02 Thread Arash Esbati
Hi all, after the discussion in this thread[1] reg. completion for math symbols, I was thinking if we should expand AUCTeX's math minor mode for other packages than AMSMATH. I played with it briefly and I think for wasysym, the following change does the trick. --8<---cut

bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil

2023-05-02 Thread Sebastian Drude
Dear AUCTeX maintainers and other friendly souls on this list, I am coming back to AUCTeX after many years, now on a Linux-MINT system (Debian-based). I understand that, in order to be able to get command-expansion etc. for all (La)TeX packages, I need to run the command

master befc4a49: Fix style/changelog.el

2023-05-02 Thread Arash Esbati
branch: master commit befc4a49bb8112a09fe9b4c3694c50b1b267fd56 Author: Arash Esbati Commit: Arash Esbati Fix style/changelog.el * style/changelog.el (LaTeX-env-changelog): Use the function `LaTeX-current-environment' and not the variable. --- style/changelog.el | 4 ++-- 1

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 > >