From: edgar@openmail.cc
To: emacs-orgmode@gnu.org
Subject: bibtex setup .dir-locals.el
Date: Sun, 28 Oct 2018 22:19:25 +0000 [thread overview]
Message-ID: <c1c2849142fcb159de9c5261fe468e43@openmail.cc> (raw)
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!
next reply other threads:[~2018-10-28 22:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-28 22:19 edgar [this message]
2018-10-31 15:27 ` bibtex setup .dir-locals.el John Kitchin
2018-11-01 17:42 ` edgar
2018-11-01 17:48 ` John Kitchin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c1c2849142fcb159de9c5261fe468e43@openmail.cc \
--to=edgar@openmail.cc \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.