From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Georg W. Otto" Subject: Re: org-ref file path to pdf Date: Wed, 07 Dec 2016 18:13:28 +0000 Message-ID: References: <868trt5j4u.fsf@georgotto.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEgiz-0006Wb-4F for emacs-orgmode@gnu.org; Wed, 07 Dec 2016 13:13:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEgiv-0006qV-VE for emacs-orgmode@gnu.org; Wed, 07 Dec 2016 13:13:49 -0500 Received: from [195.159.176.226] (port=44724 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cEgiv-0006qF-Oz for emacs-orgmode@gnu.org; Wed, 07 Dec 2016 13:13:45 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cEgii-00044z-DK for emacs-orgmode@gnu.org; Wed, 07 Dec 2016 19:13:32 +0100 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: emacs-orgmode@gnu.org John Kitchin writes: > This doesn't sound like something that should be happening I think. How > current is your org-ref? > > I do not use the notes feature so it does not get tested too often. You > may be able to control the format of the notes created with the variable > org-ref-note-title-format if you are using the default notes function > that adds a headline. > > my org ref version was 20160503 from elpa. I updated it to 20161129 and here the part of org-ref-open-bibtex-notes that inserts a link to the pdf is commented out. However I like this functionality, so I keep the older version of org-ref-open-bibtex-notes in my init file. Sorry about asking about a functionality that has been removed, but I still do not understand why it it does expand my ~/dir to /home/user/dir. My org-ref-open-bibtex-notes is set to adaptive. It might happen here, but I do not understand elisp enough to tell: (setq pdf (-first 'f-file? (--map (f-join it (concat key ".pdf")) (-flatten (list org-ref-pdf-directory))))) (if (file-exists-p pdf) (insert (format " [[file:%s][pdf]]\n\n" pdf))) Cheers, Georg -- Georg Otto The UCL Institute of Child Health