In short, its syntax is as follows: This command can be used to edit files for table of contents, list of figures, or list of tables. To add a line to the table of contents, use toc for file, and chapter for section_unit, and place the command in your document immediately after the section heading.For example: adds a line at the current position of your .toc file labelled References, with the current page number.n short, its syntax is as follows: This command can be used to edit files for table of contents, list of figures, or list of tables. To add a line to the table of contents, use toc for file, and chapter for section_unit, and place the command in your document immediately after the section heading. For example: