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

  1. 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}
  2. 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.
  3. 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).

Why is LaTeX more structured than Word?

The fact that you define your table of contents using commands means that there are no shifts in appearance that might otherwise affect your formatting. This has the advantage that you don't have to worry about changes equating to new formatting.

By Karola Nickols

No Man's Sky: Find and use monolith - all info :: Samsung Galaxy S10: Memory full despite memory card
USEFUL LINKS