emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: "Marvin M. Doyley" <mdoyley@ur.rochester.edu>
Cc: Kyle Meyer <kyle@kyleam.com>,
	org-mode-email <emacs-orgmode@gnu.org>,
	Zhe Lei <lzhes43@gmail.com>
Subject: Re: [EXT] Problem with org-ref
Date: Wed, 10 Mar 2021 13:22:43 -0500	[thread overview]
Message-ID: <CAJ51ETrc5=wbPd6qA_6O5muS059w1MrVeiJeQ=whXobMv1Hx3A@mail.gmail.com> (raw)
In-Reply-To: <8E0A3C22-E5A2-42C6-861B-30EE92E46721@ur.rochester.edu>

[-- Attachment #1: Type: text/plain, Size: 2086 bytes --]

thanks for the troubleshooting. I pushed a fix that should use the
customizable pdf filename function instead.

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, Mar 10, 2021 at 10:36 AM Marvin M. Doyley <mdoyley@ur.rochester.edu>
wrote:

> HI Kyle,
>
> This solved my problems
>
>  Thanks,
>
> M
>
>
>
>
> On Mar 9, 2021, at 11:49 PM, Kyle Meyer <kyle@kyleam.com> wrote:
>
> 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/")
>
>
>

[-- Attachment #2: Type: text/html, Size: 12004 bytes --]

      reply	other threads:[~2021-03-10 18:24 UTC|newest]

Thread overview: 4+ 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
2021-03-10 15:36   ` [EXT] " Marvin M. Doyley
2021-03-10 18:22     ` 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='CAJ51ETrc5=wbPd6qA_6O5muS059w1MrVeiJeQ=whXobMv1Hx3A@mail.gmail.com' \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=kyle@kyleam.com \
    --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).