emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: "Marvin M. Doyley" <mdoyley@ur.rochester.edu>
Cc: John Kitchin <jkitchin@andrew.cmu.edu>,
	emacs-orgmode@gnu.org, Zhe Lei <lzhes43@gmail.com>
Subject: Re: Problem with org-ref
Date: Tue, 09 Mar 2021 23:49:21 -0500	[thread overview]
Message-ID: <87o8fraa0e.fsf@kyleam.com> (raw)
In-Reply-To: <A759E63A-0ADE-41E4-8390-9D81E5D57260@ur.rochester.edu>

Marvin M. Doyley writes:

> Hi there,
>
> When I use crossref-add-bibtex-entry it download the BibTeX entry but cannot download the associated pdf.
> I get the following error  (wrong-type-argument stringp ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/“))
>
> I configured org-ref as follows
>
> (setq org-ref-bibliography-notes '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref_notes.org") 
>       org-ref-default-bibliography '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/ref.bib") 
>       org-ref-pdf-directory '("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/")
> 	  org-ref-notes-citation-link '("cite")
>       )

[ Caveat: I've never used org-ref ]

org-ref's 0383cc2 (support multiple pdf directories, 2016-06-10) updated
org-ref-pdf-directory to accept a list value, so your value is valid,
but...

> Debugger entered--Lisp error: (wrong-type-argument stringp ("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/"))
>   file-name-as-directory(("/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/"))
>   doi-utils-get-bibtex-entry-pdf(nil)

... doi-utils-get-bibtex-entry-pdf wasn't updated for that (+cc the
author of that commit and John Kitchin).

It looks like org-ref-pdf-directory still supports a string, though, and
you only have one item, so you should be able to work around the issue
with

  (setq org-ref-pdf-directory "/Users/doyley/Dropbox/Filing_Cabinet/B/refs/pdf/")


  reply	other threads:[~2021-03-10  4:50 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-08 15:20 Problem with org-ref Marvin M. Doyley
2021-03-10  4:49 ` Kyle Meyer [this message]
2021-03-10 15:36   ` [EXT] " Marvin M. Doyley
2021-03-10 18:22     ` John Kitchin
  -- strict thread matches above, loose matches on Subject: below --
2020-07-20 13:09 problem " Johannes Brauer
2020-07-20 13:49 ` John Kitchin
2015-12-23 21:22 Problem " marvin doyley
2015-12-23 21:30 ` John Kitchin
2015-12-23 21:44   ` marvin doyley
2015-12-23 22:16   ` marvin doyley
2015-12-23 23:56   ` Andreas Kiermeier
2015-12-24  1:33     ` John Kitchin
2015-12-24  6:04       ` Andreas Kiermeier
2015-12-24 14:15         ` John Kitchin
2015-12-25  1:17           ` Andreas Kiermeier
2015-12-25  2:47             ` John Kitchin
2015-12-25  3:16               ` Andreas Kiermeier
2015-12-25 14:07                 ` John Kitchin
2015-12-26  0:03                   ` Andreas Kiermeier
2015-12-26  1:36                     ` John Kitchin
2015-12-26  4:52                       ` Andreas Kiermeier

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=87o8fraa0e.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    --cc=lzhes43@gmail.com \
    --cc=mdoyley@ur.rochester.edu \
    /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).