jkitchin / jmax

Johns customizations to maximize emacs
185 stars 59 forks source link

Download pdf from a doi #14

Closed jkitchin closed 10 years ago

jkitchin commented 10 years ago

jabref has some code that downloads local pdfs (https://github.com/lehner/LocalCopy). this should be adaptable to emacs.

jboes commented 10 years ago

insert-bibtex-entry-from-doi is behaving in an unexpected fashion. After running insert-bibtex-entry-from-doi the PDF will not download properly. Using doi-utils-get-bibtex-entry-pdf afterwards seems to work however. Any subsequent usage of insert-bibtex-entry-from-doi will create a PDF of the appropriate name, but it will download the PDF from the previously run doi.

jboes commented 10 years ago

can't pull pdfs using doi-utils-get-bibtex-entry-pdf for these entries:

@article{shang-2010-first-debye, author = {Shun-Li Shang and Yi Wang and DongEung Kim and Zi-Kui Liu}, title = {First-principles thermodynamics from phonon and Debye model: Application to Ni and Ni3Al}, journal = {Computational Materials Science}, volume = 47, number = 4, pages = {1040-1048}, year = 2010, doi = {10.1016/j.commatsci.2009.12.006}, url = {http://dx.doi.org/10.1016/j.commatsci.2009.12.006}, month = 2, }

@article{mishin-2004-atomis-ni, author = {Y. Mishin}, title = {Atomistic modeling of the $\gamma$ and $\gamma^{'}$-phases of the Ni-Al system}, journal = {Acta Materialia}, volume = 52, number = 6, pages = {1451-1467}, year = 2004, doi = {10.1016/j.actamat.2003.11.026}, url = {http://dx.doi.org/10.1016/j.actamat.2003.11.026}, month = 4, }

jkitchin commented 10 years ago

I think I fixed this. try pulling a new version and let me know if it is still broken.