From mboxrd@z Thu Jan 1 00:00:00 1970 From: edgar@openmail.cc Subject: bibtex setup .dir-locals.el Date: Sun, 28 Oct 2018 22:19:25 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGtQT-0000uv-8k for emacs-orgmode@gnu.org; Sun, 28 Oct 2018 18:20:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGtQN-0005hS-S7 for emacs-orgmode@gnu.org; Sun, 28 Oct 2018 18:20:52 -0400 Received: from onethreetwo.vfemail.net ([199.16.11.132]:58957 helo=vfemail.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gGtQB-0005ZQ-0m for emacs-orgmode@gnu.org; Sun, 28 Oct 2018 18:20:38 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello, I would like to know how to set my ~References.bib~ as a dir-local variable for use with bibtex (org-ref, reftex). I have this in my ~.dir-locals.el~. It keeps showing the global list of references. Thanks! #+BEGIN_SRC emacs-lisp ;;; Directory Local Variables ;;; For more information see (info "(emacs) Directory Variables") ( (org-mode (reftex-default-bibliography . ("/Class/Biomat/Hw/Project/References.bib")) (org-ref-default-bibliography . ("/Class/Biomat/Hw/Project/References.bib")) (bibtex-completion-bibliography . ("/Class/Biomat/Hw/Project/References.bib")) (org-ref-bibliography-notes . "/Class/Biomat/Hw/Project/report-biomat.org") (bibtex-completion-notes-path . "/Class/Biomat/Hw/Project/report-biomat.org") (org-ref-pdf-directory . "/Class/Biomat/Hw/Project/Media/") (bibtex-completion-library-path . "/Class/Biomat/Hw/Project/Media/") ) (bibtex-mode (reftex-default-bibliography . ("/Class/Biomat/Hw/Project/References.bib")) (org-ref-default-bibliography . ("/Class/Biomat/Hw/Project/References.bib")) (bibtex-completion-bibliography . ("/Class/Biomat/Hw/Project/References.bib")) (org-ref-bibliography-notes . "/Class/Biomat/Hw/Project/report-biomat.org") (bibtex-completion-notes-path . "/Class/Biomat/Hw/Project/report-biomat.org") (org-ref-pdf-directory . "/Class/Biomat/Hw/Project/Media/") (bibtex-completion-library-path . "/Class/Biomat/Hw/Project/Media/") ) ) #+END_SRC As an example: #+BEGIN_EXAMPLE reftex-default-bibliography is a variable defined in ‘reftex-vars.el’. Its value is ("/Class/Biomat/Hw/Project/References.bib") Original value was nil Local in buffer report-biomat.org; global value is ("//Research/References.bib") This variable’s value is directory-local, set by the file ‘/Class/Biomat/Hw/Project/.dir-locals.el’. Documentation: List of BibTeX database files which should be used if none are specified. When ‘reftex-citation’ is called from a document which has neither a ‘\bibliography{..}’ statement nor a ‘thebibliography’ environment, RefTeX will scan these files instead. Intended for using ‘reftex-citation’ in non-LaTeX files. The files will be searched along the BIBINPUTS or TEXBIB path. You can customize this variable. #+END_EXAMPLE My system #+BEGIN_SRC emacs-lisp (concat (emacs-version) "\n" (org-version) "\n" (org-ref-version)) #+END_SRC #+RESULTS: : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) : of 2018-07-05 : 9.1.14 : org-ref: Version 1.1.1 ------------------------------------------------- ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!