LaTeX: Outline

This page was translated from German with AI. It has not been checked by a native speaker. Original page in German

Headings are commands in LaTeX: \section for chapters, \subsection for subchapters. LaTeX assigns the numbers itself – the basis for the table of contents.

The video

In the video you see TeXstudio under Linux. The orange frame always shows the spot in question. Under Windows and macOS TeXstudio looks exactly the same. The practice file above is the state at the start of the video – so you can follow along with each part separately.

Subtitles are available in ten languages. Choose them at the bottom right of the video.

Contents of the video

  1. 0:00 What it is about
  2. 0:20 Typed headings
  3. 0:39 Chapters
  4. 0:58 Subchapters
  5. 1:27 Without a number
  6. 1:59 Summary

The most important points

Outline commands

\section{Einleitung} → 1 Einleitung · \subsection{…} → 2.1 · \subsubsection{…} → 2.1.1 (three levels at most) · \addsec{…} → without a number, but in the table of contents (KOMA-Script). Never type numbers by hand.

The typed line becomes a chapter: in the structure on the left and in the PDF as “1 Einleitung”.
The typed line becomes a chapter: in the structure on the left and in the PDF as “1 Einleitung”.
The structure shows the whole outline; a click jumps to the place in the text.
The structure shows the whole outline; a click jumps to the place in the text.
Bibliography and declaration of independent work appear with addsec without a number.
Bibliography and declaration of independent work appear with addsec without a number.

The worksheet

Here you can see the worksheet for the video (in German). You download the practice files above and work in your own editor. The hints are printed upside down – turn the sheet only when you cannot get on by yourself. You can also open it as a PDF.

📄 Open worksheet (PDF, German)

The worksheet – Page 1
Page 1/3
The worksheet – Page 2
Page 2/3
Show the worksheet solutions
The worksheet – Page 3
Page 3/3

Try it yourself

Task

You insert a new chapter “Hypothese” between chapters 2 and 3. What do you have to change in the numbers of the following chapters?

Show solution

Nothing. With \section{Hypothese} the new chapter becomes 3, and all following ones move up by themselves when compiling – in the table of contents too.

Keep learning with a language model

Here is the outline of my Facharbeit as LaTeX commands: [insert outline]. Check whether it has three levels at most, whether there are single subchapters without siblings and whether lists and declaration appear without a number. Explain to me what I should change.

How this was made: The idea and the choice of topics are mine. A language model (LLM) drafted the script, the sample paper, the tasks and this page following my instructions. The screen recordings were made automatically by a script in TeXstudio under Linux, which checked the finished PDF after every step: are margins, font, numbers and references right, are there warnings? The voice was generated with Qwen3-TTS, modelled on my own voice.

The sample paper about the thread pendulum is invented, and so are the person “Alex Beispiel” and the two sources in the bibliography.

The videos, worksheets, practice files, texts and prompts in this series are licensed under CC BY 4.0: you may use, change and share them if you name the source.