Generate a table of contents for the paper version