doi2bib is a perl, jq script to generate the bibTeX entry, according to my own standard and with my own conventions, from the doi of a scientific reference.
More details on the script (including the genesis of its creation) can be found in this blog post.
Pass a valid doi to the script.
doi2bib 10.1103/PhysRevLett.80.3483
The above example returns:
Article{saleh98a,
author = {B. E. A. Saleh and B. M. Jost and H. Fei and M. C. Teich},
title = {Entangled-Photon Virtual-State Spectroscopy},
journal = prl,
year = 1998,
volume = 80,
pages = 3483,
pdf = {sci/saleh98a},
url = {doi:10.1103/physrevlett.80.3483}
}
You may have to put the doi between quotes if there are escape characters:
doi2bib "10.1016/0030-4018(91)90618-N"
Since 9 August (2026), the whole journey of a new paper is three commands:
doi2bib -a 10.1103/... # the sci.bib entry + Template:<Key> on the local wiki
llw2lw --doit # the template reaches laussy.org
bib2wiki -uo # [[Scientific articles]] online, rebuilt now
The third command is only for impatience: the lists on both wikis otherwise refresh themselves at the daily lw-warm cron. A re-push of an existing key (doi2bib -a key) goes through bib2wiki -force, which since v4.0 keeps whatever {{pdf|File:...}} link the template already carries.
curl -LH "Accept: application/json" "http://dx.doi.org/10.48550/arXiv.2305.15827"
Copy the chmod +x script in the local bin directory. Two additional files should be put somewhere, as defined by
(in my case, these files are in ~/bib/doi2bib/).