[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Set the variable bibtex-completion-bibliography used by helm-bibtex
From: |
Mandar Mitra |
Subject: |
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. |
Date: |
Tue, 2 May 2023 23:26:54 +0530 |
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 above setup uses a fixed directory, so it doesn't meet the
> requirements here. Any suggestions for achieving the goal will be
> appreciated.
Random suggestion: in LaTeX-mode-hook
(setq (make-local-variable 'bibtex-completion-bibliography)
(lisp-expression-to-create-the-list-of-files-that-you-want))
Disclaimer: not sure this will work, not sure it's the "right" way to achieve
what you want, just something for you to try before the experts chime in.
-mandar