A script to flatten biblatex bibliographies