Print out a properly formatted table of contents.