Generates a table of contents for your document based on the headings present.