Script for downloading bibtex file using DOI

Digital Object Identifier (DOI) and bibtex files are common for anyone citing scientific articles. The DOI is used to uniquely identify any object, such as an electronic document, while bibtex is used to cite an article in Latex environment.

An article can be found on the internet via the address followed by the DOI, e.g. However, it takes a while to browse the publishers website, locate the appropriate bibtex file and save it to disk.

Here is a very handy Python script that fetches a bibtex file from NASA’s Astrophysics Data System using the article’s DOI.

It requires Python Beautiful Soup XML/HTML parser.
In Ubuntu-like linux distributions it can be installed easily:
sudo apt-get install python-beautifulsoup


>> 10.1016/j.ocemod.2004.08.002
author = {{Shchepetkin}, A.~F. and {McWilliams}, J.~C.},
title = "{The regional oceanic modeling system (ROMS): a split-explicit, free-surface, topography-following-coordinate oceanic model}",
journal = {Ocean Modelling},
year = 2005,
volume = 9,
pages = {347-404},
doi = {10.1016/j.ocemod.2004.08.002},
adsurl = {},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}

Fixing Klipper shortcut keys in KDE4.5+

After an update to Kubuntu 11.04 Natty Narwhal (possibly also Lucid and Maverick) the commonly used Klipper shortcut Ctrl+Alt+V for invoking the pop-up menu does not work anymore. Very annoying, for browsing the clipboard history was very useful.

Here’s a fix (for Natty):

Go to System settings->Shortcuts and Gestures->Global Keyboard Shortcuts and select Plasma Desktop Shell in the KDE component box. Look for Systemtray-Klipper-10 and assign Ctrl-Alt-V to it. Most likely this will create a conflict with Klipper keyboard shortcuts, accept to force the change.

Pressing Ctrl-Alt-V should now bring up the Klipper pop-up menu. To select an item in history using only keyboard, choose with up/down arrows. The press Enter (to choose the item), press Esc (to close the pop-up). This is different than before when Enter also closed the pop-up. Note that the chosen item is not indicated in any way in the pop-up. Hopefully this will change in the future.

This hassle is all due to the fact that same shortcut is defined in (at least) two places. As plasma desktop shell is handling the shortcuts now, the old setting in Klipper section is simply ignored, but still present.

%d bloggers like this: