From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Michael Giepen <mgiepen@uni-bonn.de>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: org-ref: various directories
Date: Thu, 14 May 2015 07:28:25 -0400 [thread overview]
Message-ID: <CAJ51ETquvAz48RboHG_GPpHatJuwCEX=AhWyrCGQBkVrxTuDXA@mail.gmail.com> (raw)
In-Reply-To: <55539F59.1070302@uni-bonn.de>
[-- Attachment #1: Type: text/plain, Size: 1214 bytes --]
The thing to do here is write a function that will take a bibtex key, and
loop through your directories to find the pdf, and then return the full
path to the pdf. Then customize the variable org-ref-get-pdf-filename-function
to point to that function.
https://github.com/jkitchin/org-ref/blob/master/org-ref.el#L122
Out of the box, org-ref expects all the pdfs to be named key.pdf and to be
in a single directory. That is partly due to this library
https://github.com/jkitchin/org-ref/blob/master/doi-utils.el which
downloads pdfs for you from a doi in that format.
John
-----------------------------------
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
On Wed, May 13, 2015 at 3:00 PM, Michael Giepen <mgiepen@uni-bonn.de> wrote:
> Hello,
>
> I just cannot get org-ref to accept various directories:
>
> I tried
>
> (setq org-ref-pdf-directory (quote (
> "/home/mcg/thesis/library/folder1/"
> "/home/mcg/thesis/library/folder2/"
> "/home/mcg/thesis/library/folder3/"
> )))
>
>
> It would also suffice if I could include subdirectories of
> .../thesis/library/
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 2229 bytes --]
prev parent reply other threads:[~2015-05-14 11:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 19:00 org-ref: various directories Michael Giepen
2015-05-14 11:28 ` John Kitchin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ51ETquvAz48RboHG_GPpHatJuwCEX=AhWyrCGQBkVrxTuDXA@mail.gmail.com' \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
--cc=mgiepen@uni-bonn.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).