emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-ref + ASME
@ 2017-05-20  7:10 edgar
  2017-05-20 11:49 ` John Kitchin
  0 siblings, 1 reply; 2+ messages in thread
From: edgar @ 2017-05-20  7:10 UTC (permalink / raw)
  To: emacs-orgmode

Dear Dr. Kitchin and Org-mode mailing list,

I write to you, because I could not find a mailing list for org-ref. 
Thanks for your time.

I am just starting to use org-ref with the hope that my advisor sees the 
advantages of using Emacs (instead of the proprietary word processors). 
I'm a fan of Emacs, but not really good at Lisp (I just steal code from 
others :P ).

I have two questions.

* 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

whilst the PDF is actually on
http://biomechanical.asmedigitalcollection.asme.org/data/journals/jbendy/27048/101013_1.pdf

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?
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).

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!  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-ref + ASME
  2017-05-20  7:10 org-ref + ASME edgar
@ 2017-05-20 11:49 ` John Kitchin
  0 siblings, 0 replies; 2+ messages in thread
From: John Kitchin @ 2017-05-20 11:49 UTC (permalink / raw)
  To: edgar; +Cc: emacs-orgmode



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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-20 11:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-20  7:10 org-ref + ASME edgar
2017-05-20 11:49 ` 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).