* org-ref: various directories
@ 2015-05-13 19:00 Michael Giepen
2015-05-14 11:28 ` John Kitchin
0 siblings, 1 reply; 2+ messages in thread
From: Michael Giepen @ 2015-05-13 19:00 UTC (permalink / raw)
To: emacs-orgmode
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: org-ref: various directories
2015-05-13 19:00 org-ref: various directories Michael Giepen
@ 2015-05-14 11:28 ` John Kitchin
0 siblings, 0 replies; 2+ messages in thread
From: John Kitchin @ 2015-05-14 11:28 UTC (permalink / raw)
To: Michael Giepen; +Cc: emacs-orgmode@gnu.org
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-14 11:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13 19:00 org-ref: various directories Michael Giepen
2015-05-14 11:28 ` John Kitchin
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).