Skip to content

Instantly share code, notes, and snippets.

@moble
Created December 13, 2023 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moble/633245c514466662e69c4a5641eefa5f to your computer and use it in GitHub Desktop.
Save moble/633245c514466662e69c4a5641eefa5f to your computer and use it in GitHub Desktop.
doi2bibtex
# This bash/zsh function queries for the input DOI's bibtex entry. When the DOI points
# to a journal article, this usually resolves to the journal's own bibtex output.
doi2bibtex () {
curl -fsSLH "Accept: application/x-bibtex" "https://doi.org/$1" | sed -e 's|%2F|/|g'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment