HOME
> Office programs
> Latex: Create A Table Of Contents - Provide Structure
LaTeX: Create a table of contents - provide structure
If you want to forward a text document or an elaboration, it makes sense to provide the document with a table of contents. In this way, not only you keep track of the content, but also accommodate the reader. It is really simple to create a table of contents in LaTeX.
How to create a table of contents in LaTeX
- If you know the right commands, you can very comfortably create a table of contents in LaTeX that is also more visually appealing than the options in Word.First create the basic structure for your document so that you can insert the table of contents afterwards. Here is an example:\documentclass[12pt]{scrartcl}\usepackage[ngerman]{babel}\begin{document}\end{document}
- Now go to the beginning of your document and enter the command /tableofcontents in LaTeX. If you don't want the table of contents to be at the beginning of the document, then put the command where you want it.
- You can now insert multiple levels for headings to structure the table of contents. For chapter headings use the /chapter(heading) command, for the signature use /section(subheading) and for another level enter the /susection(sub-subheading) command. To introduce a fourth level, you must enter the command /subsubsection(sub-subheading).