From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref: renaming/moving an entire pdf library according to a bibtex file Date: Mon, 19 Sep 2016 09:51:06 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blyyX-0002n8-MO for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 09:51:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blyyT-0005LC-KD for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 09:51:13 -0400 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:33650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blyyT-0005Ku-Fa for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 09:51:09 -0400 Received: by mail-qk0-x22c.google.com with SMTP id w204so145311421qka.0 for ; Mon, 19 Sep 2016 06:51:09 -0700 (PDT) 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" To: ldcmrtn@gmail.com Cc: emacs-orgmode@gnu.org Martin Leduc writes: > Hi, > > I just discovered org-ref recently and would like to manage my entire > pdf library with it. Basically, my set-up is a folder containing many > scientific papers in pdf, and a bibtex file containing most of the > entries related to these pdfs. > > My bibtex file is well linked to org-ref and I have already moved > several pdfs into the bibtex-pdfs/ folder so that they can be opened > easily using their bibtex entry. However, I found this to be a lot of > work for moving/linking only a few pdfs. I'm wondering if there is a way > to automate that. Look at org-ref-pdf-dir-to-bibtex and see if it will do what you need. It will probably download the pdfs again though. I do not have time for a few months to make it not do that. It is a short function though, and it might not be hard to modify it yourself to get what you want. This isn't well tested though, so make sure you have backups of your pdfs. > When I'm moving one of my pdfs onto the emacs window with the > bibliography opened, it tries to download the pdf from the web using the > doi (if found). However, is there a way to bypass the download (because > I already have the file) and to directly move/rename the pdf to the > bibtex-pdfs/ folder while validating my bibtex entry (or creating a new > one, does not matter) ? I do not think there is currently a way to do this. The code was written originally as doi-centric, so the pdf route is not as well developed yet. It is probably possible, but it would take some care to get it right for when no doi is found, when one doi is found, and when multiple dois are found. > > Thanks for helping, > Martin -- 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