From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref is not using default bibliography file Date: Sat, 12 Dec 2015 13:15:58 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7oiD-0007jq-1e for emacs-orgmode@gnu.org; Sat, 12 Dec 2015 13:16:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7oi9-0007vY-QM for emacs-orgmode@gnu.org; Sat, 12 Dec 2015 13:16:04 -0500 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:34224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7oi9-0007vU-Mj for emacs-orgmode@gnu.org; Sat, 12 Dec 2015 13:16:01 -0500 Received: by qkdp187 with SMTP id p187so84173945qkd.1 for ; Sat, 12 Dec 2015 10:16:01 -0800 (PST) In-reply-to: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kai Chen Cc: emacs-orgmode@gnu.org That sounds odd. What is the output of this src block in your file? #+BEGIN_SRC emacs-lisp (org-ref-find-bibliography) #+END_SRC Kai Chen writes: > 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 -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu