When using org-ref, the bibliography:ref.bib
directive in the notes.org
file can be used to direct it to the corresponding ref.bib
bibliography. Is there a similar such directive or approach to enable the ref.bib
file to "discover" its corresponding notes.org
file and bibtex-pdfs
folder?
One can set the following within their init.el
, or emacs-init.org
file:
(setq org-ref-bibliography-notes "~/Dropbox/bibliography/notes.org"
org-ref-default-bibliography '("~/Dropbox/bibliography/references.bib")
org-ref-pdf-directory "~/Dropbox/bibliography/bibtex-pdfs/")
However, in the case of multiple projects, each with their own notes.org
and ref.bib
files, and bibtex-pdfs
directories, how can one specify and associated a ref.bib
file with a specific notes.org
file and bibtex-pdfs
folders?
Specifically when working on an article within a project, it's pretty neat to click on a reference that's been inserted with C-c ]
, and then "Add Notes" to that particular reference 3 RET
.
Without the above snippet in my init.el
, I get the following error:
org-ref-open-bibtex-notes: Org-ref-bib-bibliography-notes is not set to anything
This error persists even after setting up file local variables:
* File Local Variables
# Local Variables:
# org-ref-bibliography-notes: "~/Dropbox/bibliography/notes.org"
# org-ref-pdf-directory: "~/Dropbox/bibliography/bibtex-pdfs/"
# End:
or:
# -*- org-ref-bibliography-notes: "~/Dropbox/bibliography/notes.org"; -*-
# -*- org-ref-pdf-directory: "~/Dropbox/bibliography/bibtex-pdfs/"; -*-
M-x describe-variable org-ref-bibliography-notes
and note that it is set locally)C-h v org-ref-bibliography-notes
confirms that its original and global values were / arenil
, and that it has been correctly set locally and that its value is indeedfile-local
.org-ref
variables are not set globally in myinit.el
, and withM-x toggle-debug-on-error
, as per my original post, the specific error message isOrg-ref-bib-bibliography-notes
is not set..., note the bib.