From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Georg W. Otto" Subject: org-ref file path to pdf Date: Tue, 06 Dec 2016 12:36:49 +0000 Message-ID: <868trt5j4u.fsf@georgotto.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEEzX-0001Fk-GO for emacs-orgmode@gnu.org; Tue, 06 Dec 2016 07:37:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEEzU-0003Np-CY for emacs-orgmode@gnu.org; Tue, 06 Dec 2016 07:37:03 -0500 Received: from [195.159.176.226] (port=42653 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cEEzU-0003Nh-6c for emacs-orgmode@gnu.org; Tue, 06 Dec 2016 07:37:00 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cEEzM-00047y-Fd for emacs-orgmode@gnu.org; Tue, 06 Dec 2016 13:36:52 +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 Dear all, This is probably something that has come up before, but so far I haven't found a solution: My problem concerns automatic file path expansion in my org-ref setting. According to the instructions in https://github.com/jkitchin/org-ref and https://www.reddit.com/r/emacs/comments/4gudyw/help_me_with_my_orgmode_workflow_for_notetaking/ I set up the paths to my bibliography, my notes and my pdfs like this: (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/") Navigation to a bibtex entry and running org-ref-open-bibtex-notes creates an orgmode heading in notes.org that contains a link to the pdf file of the publication. Unfortunately, that link uses an expanded file path, i.e: /home//Dropbox/bibliography/bibtex-pdfs/BibtexKey.pdf so it is useless when generated by a different user. Would it be possible to create a link that does not expand the file path, like this ~/Dropbox/bibliography/bibtex-pdfs/BibtexKey.pdf I appreciate your help. Georg