modified to allow extended natbib citation functionality.

Example notebook in my nbconvert-examples fork.