Test of TOC
get_index() in summaries and export
get_index() factored out of texts.py