From: Kai Chen <chk0105@mail.ustc.edu.cn>
To: emacs-orgmode@gnu.org
Subject: org-ref is not using default bibliography file
Date: Sun, 13 Dec 2015 00:43:46 +0800 [thread overview]
Message-ID: <CAEM3rE4NrPYVywt5brJL9m854agFjqRRNV0MPQx_HFh4q3qxZg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2582 bytes --]
Dear list,
I just got to know org-ref, and I followed the github help page to manually
install the package and set the default path similar to the configuration
provided in the follow link:
https://github.com/jkitchin/org-ref
And I installed all the dependency packages like helm-bibtex, hydra etc.
But when I am citing (using "C-c ]") an existing entry which is in the
default references.bib file, I can see the entry after I stroke the
command, but after I selected it and pressed enter, when the cursor is on
the link, the mini-buffer says:
!!! No entry found !!!
But previously the org-ref-helm-insert-cite-link properly showed that
entry. This can only work when I manually add a bibliography link at the
bottom of the file, which means org-ref is not using the default
bibliography file.
So what should I check to fix this issue?
Thanks for your help!
The following is my configuration of org-ref:
#+BEGIN_SRC emacs-lisp
(setq org-ref-path (concat my-dropbox-path "software/org-ref/"))
(setq reftex-default-bibliography (concat my-dropbox-path
"bibliography/references.bib"))
;; see org-ref for use of these variables
(setq org-ref-bibliography-notes (concat my-dropbox-path "bibliography/
notes.org")
org-ref-default-bibliography (concat my-dropbox-path
"bibliography/references.bib")
org-ref-pdf-directory (concat my-dropbox-path
"bibliography/bibtex-pdfs/"))
;; *** helm-bibtex
(setq helm-bibtex-bibliography (concat my-dropbox-path
"bibliography/references.bib"))
(setq helm-bibtex-library-path (concat my-dropbox-path
"bibliography/bibtex-pdfs"))
;; open pdf with system pdf viewer (works on mac)
(when (eq system-type 'darwin)
(setq helm-bibtex-pdf-open-function
(lambda (fpath)
(start-process "open" "*open*" "open" fpath))))
;; alternative
;; (setq helm-bibtex-pdf-open-function 'org-open-file)
(setq helm-bibtex-notes-path (concat my-dropbox-path
"bibliography/helm-bibtex-notes"))
(global-set-key [f10] 'org-ref-open-bibtex-notes)
(global-set-key [f11] 'org-ref-open-bibtex-pdf)
(global-set-key [f12] 'org-ref-open-in-browser)
(add-to-list 'load-path org-ref-path)
;; make sure you have dash, helm, helm-bibtex, ebib, s, f, hydra and
key-chord
;; in your load-path
;; auto-install dependencies
(require 'org-ref)
;; optional but very useful libraries in org-ref
(require 'doi-utils)
(require 'jmax-bibtex)
(require 'pubmed)
(require 'arxiv)
(require 'sci-id)
#+END_SRC
--
Regards
Multi-Agent System Lab
University of Science and Technology of China
K.Chen
[-- Attachment #2: Type: text/html, Size: 3403 bytes --]
next reply other threads:[~2015-12-12 16:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-12 16:43 Kai Chen [this message]
2015-12-12 18:15 ` org-ref is not using default bibliography file John Kitchin
2015-12-13 3:11 ` Kai Chen
2015-12-13 3:29 ` Kai Chen
2015-12-13 3:59 ` John Kitchin
2015-12-13 5:10 ` Kai Chen
2015-12-13 3:36 ` 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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEM3rE4NrPYVywt5brJL9m854agFjqRRNV0MPQx_HFh4q3qxZg@mail.gmail.com \
--to=chk0105@mail.ustc.edu.cn \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).