The following is a tutorial on how to create a table of contents automatically

good luck