LaTeX: Outline
This page was translated from German with AI. It has not been checked by a native speaker. Original page in German
\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.
Contents of the video
- 0:00 What it is about
- 0:20 Typed headings
- 0:39 Chapters
- 0:58 Subchapters
- 1:27 Without a number
- 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 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)
Show the worksheet solutions
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.