stefanbringuier / DOI2BibTeX.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DOI2BibTeX.jl

Build status Coverage

Get a well-formatted, journal-abbreviated BibTeX string from a DOI:

julia> using DOI2BibTeX
julia> doi = "10.1103/PhysRevLett.45.494"
julia> doi2bib(doi)

With output:

@article{klitzing1980new,
  title = {New Method for High-Accuracy Determination of the Fine-Structure Constant Based on Quantized Hall Resistance},
  volume = {45},
  doi = {10.1103/physrevlett.45.494},
  number = {6},
  journal = {Phys. Rev. Lett.},
  author = {Klitzing, K. v. and Dorda, G. and Pepper, M.},
  year = {1980},
  pages = {494–497}
}

The BibTeX entry is obtained from a GET request to https://doi.org/, following the approach described here.

Journal abbreviations

Journal titles returned by doi2bib are automatically abbreviated using the List of Title Word Abbreviations (disable by setting the abbreviate keyword argument of doi2bib to false).

The functionality is also separately accessible via the exported function journal_abbreviation:

julia> journal_abbreviation("Physical Review Letters")
"Phys. Rev. Lett."

julia> journal_abbreviation("Journal of Physical Chemistry Letters")
"J. Phys. Chem. Lett."

julia> journal_abbreviation("npj Quantum Materials")
"npj Quantum Mater."

Installation

The package is registered in Julia's General registry and can be installed from the pkg> prompt:

pkg> add DOI2BibTeX

About

License:MIT License


Languages

Language:Julia 100.0%