From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?56ul5L+K57+U?= Subject: open pdfs in subdirectories in org-ref Date: Sat, 24 Sep 2016 00:07:08 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fbb786b8b66053d2ef8bc Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnT0K-0007jz-ME for emacs-orgmode@gnu.org; Fri, 23 Sep 2016 12:07:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnT0I-0006gh-HP for emacs-orgmode@gnu.org; Fri, 23 Sep 2016 12:07:11 -0400 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:32895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnT0I-0006gP-AS for emacs-orgmode@gnu.org; Fri, 23 Sep 2016 12:07:10 -0400 Received: by mail-io0-x230.google.com with SMTP id r145so122925642ior.0 for ; Fri, 23 Sep 2016 09:07:09 -0700 (PDT) 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: Org mode --001a113fbb786b8b66053d2ef8bc Content-Type: text/plain; charset=UTF-8 I want to open pdfs in subdirectories in org-ref as described as https://github.com/jkitchin/org-ref/issues/172 my .emacs is configued as following (setq org-ref-open-pdf-function 'my/org-ref-open-pdf-at-point) (defun my/org-ref-open-pdf-at-point () "Open the pdf for bibtex key under point if it exists." (interactive) (let* ((results (org-ref-get-bibtex-key-and-file)) (key (car results)) (pdf-file (funcall org-ref-get-pdf-filename-function key)) (pdf-other (bibtex-completion-find-pdf key))) (cond ((file-exists-p pdf-file) (org-open-file pdf-file)) (pdf-other (org-open-file pdf-other)) (message "No PDF found for %s" key)))) But I failed. What is the problem? Thank you for your help! --001a113fbb786b8b66053d2ef8bc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I want to open pdfs in subdirectories in org-ref as descri= bed as=C2=A0http= s://github.com/jkitchin/org-ref/issues/172

my .emacs= is configued as following
(setq<=
/span> org-ref-open-pdf-function 'my/org-ref-open-pdf-at-point)
(defun m=
y/org-ref-open-pdf-at-point ()
  "<=
/span>Open the pdf for bibtex key under point if it exists."
  (interactive)
  (let* ((results (org-ref-get-bibtex-key-and-file))
         (key (car results))
         (pdf-file (funcall org-ref-get-pdf-filename-function k=
ey))
     (pdf-other (bibtex-completion-find-pdf key)))
    (cond ((file-exists-p pdf-file)
       (org-open-file pdf-file))
      (pdf-other
       (org-open-file pdf-other))
      (message "No PDF found for %s" key))))

But I failed. What is the problem? Thank you for your= help!



--001a113fbb786b8b66053d2ef8bc--