From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref + ASME Date: Sat, 20 May 2017 07:49:27 -0400 Message-ID: References: <7cc1df715ffe0f9ef343b507745cbbf8@openmail.cc> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dC2t3-0008Ls-2U for emacs-orgmode@gnu.org; Sat, 20 May 2017 07:49:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dC2t0-0005yY-0Z for emacs-orgmode@gnu.org; Sat, 20 May 2017 07:49:33 -0400 Received: from mail-qt0-x22e.google.com ([2607:f8b0:400d:c0d::22e]:34980) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dC2sz-0005yE-Rt for emacs-orgmode@gnu.org; Sat, 20 May 2017 07:49:29 -0400 Received: by mail-qt0-x22e.google.com with SMTP id v27so74970732qtg.2 for ; Sat, 20 May 2017 04:49:29 -0700 (PDT) In-reply-to: <7cc1df715ffe0f9ef343b507745cbbf8@openmail.cc> 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: edgar@openmail.cc Cc: emacs-orgmode@gnu.org > * How to add ASME? > I want to know if there is a way to add the ASME database to org-ref. > > I found this: https://github.com/jkitchin/org-ref/issues/148 which hints > me in the right direction, but I don't know how to make it work. > > I am trying with this article: > http://biomechanical.asmedigitalcollection.asme.org/article.aspx?articleid=1427237 > > What I do is to M-x crossref-add-bibtex-entry, yank the title and do > RET. I get the right BibTeX entry, but org-ref sends me to: > http://biomechanical.asmedigitalcollection.asme.org/article.aspx?articleid=1427237.full.pdf org-ref uses pattern matching to try to retrieve the pdf for you. In this case, it looks like this url falls through to the generic pattern, which doesn't actually point to the pdf. > > whilst the PDF is actually on > http://biomechanical.asmedigitalcollection.asme.org/data/journals/jbendy/27048/101013_1.pdf To fix this, you need a new function that takes the article url and generates the pdf url somehow. I have added a function to org-ref to try to do this. It seems to work on this example. > > I already have the PDF and the last digits 101013 (without _1) seem to > be the page number. > > * How do I avoid downloading the PDF? set doi-utils-download-pdf to nil. > The above leads me to the second question: if I already have the PDF, is > there a way to prevent downloading it again? The obvious answer is: > "Duh! just drag the PDF onto Emacs!", but if I do it like that, I get > another issue (already reported on github). There probably is not a good way to make this easy. the simplest is just to rename it according to the bibtex key and put it in the org-ref-pdf-directory. See my comment on the issue on Github. > org-ref: Version 1.0.0 (eab601) > GNU Emacs 24.4.1 > > Thank you in advance! :) > > ------------------------------------------------- > > ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! > $24.95 ONETIME Lifetime accounts with Privacy Features! > 15GB disk! No bandwidth quotas! > Commercial and Bulk Mail Options! -- 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