[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Set the variable bibtex-completion-bibliography used by helm-bibtex to t
From: |
Hongyi Zhao |
Subject: |
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 22:03:23 +0800 |
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 `bibtex-completion-bibliography` variable of
helm-bibtex to the dynamical generated bib files list corresponding to
the current master tex file.
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.
Regards,
Zhao
--
Assoc. Prof. Hongsheng Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
- Set the variable bibtex-completion-bibliography used by helm-bibtex to the dynamical generated bib files list corresponding to the current master tex file.,
Hongyi Zhao <=