emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: edgar@openmail.cc
Cc: emacs-orgmode@gnu.org
Subject: Re: org-ref + ASME
Date: Sat, 20 May 2017 07:49:27 -0400	[thread overview]
Message-ID: <m2bmqneojc.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <7cc1df715ffe0f9ef343b507745cbbf8@openmail.cc>



> * 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

      reply	other threads:[~2017-05-20 11:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-20  7:10 org-ref + ASME edgar
2017-05-20 11:49 ` 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=m2bmqneojc.fsf@andrew.cmu.edu \
    --to=jkitchin@andrew.cmu.edu \
    --cc=edgar@openmail.cc \
    --cc=emacs-orgmode@gnu.org \
    /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).