> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/nl/documentstructuur/02-table-of-contents.md).

# Inhoudsopgave

In een LaTeX-document kan de inhoudsopgave automatisch worden gegenereerd en aangepast aan een specifieke stijl; dit artikel legt uit hoe

## Inleiding

Het maken van de inhoudsopgave is eenvoudig; het commando `\tableofcontents` doet het werk. Secties, subsecties en hoofdstukken worden opgenomen in de inhoudsopgave. Gebruik om handmatig vermeldingen toe te voegen, bijvoorbeeld wanneer u een ongenummerde sectie wilt, het commando `\addcontentsline` zoals in het volgende voorbeeld wordt getoond:

```latex
\documentclass{article}
\usepackage{blindtext}
\usepackage{titlesec}
\title{Secties en hoofdstukken}
\author{Gubert Farnsworth}
\date{ }
\begin{document}

\maketitle

\tableofcontents

\section{Introduction}

Dit is de eerste sectie.

\blindtext

\addcontentsline{toc}{section}{Ongenummerde Sectie}
\section*{Ongenummerde Sectie}

\blindtext

\section{Tweede Sectie}

\blindtext
\end{document}
```

[Open dit voorbeeld in Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Table+of+contents+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bblindtext%7D%0A%5Cusepackage%7Btitlesec%7D%0A%5Ctitle%7BSections+and+Chapters%7D%0A%5Cauthor%7BGubert+Farnsworth%7D%0A%5Cdate%7B+%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%5Cmaketitle%0A%0A%5Ctableofcontents%0A%0A%5Csection%7BIntroduction%7D%0A%0AThis+is+the+first+section.%0A%0A%5Cblindtext%0A%0A%5Caddcontentsline%7Btoc%7D%7Bsection%7D%7BUnnumbered+Section%7D%0A%5Csection%2A%7BUnnumbered+Section%7D%0A%0A%5Cblindtext%0A%0A%5Csection%7BSecond+Section%7D%0A%0A%5Cblindtext%0A%5Cend%7Bdocument%7D)

Dit voorbeeld levert de volgende uitvoer op:

![Voorbeeld van een in LaTeX gegenereerde inhoudsopgave](/files/b4fe2964ae1fea283123e843909c749e6833d208)

## De titel van de inhoudsopgave wijzigen

De standaardtitel voor de inhoudsopgave is **Inhoud**; deze kan worden gewijzigd in wat u nodig hebt, zoals het volgende voorbeeld laat zien:

```latex
\documentclass{article}
\title{Secties en hoofdstukken}
\author{Gubert Farnsworth}
\date{ }
\renewcommand*\contentsname{Samenvatting}
\begin{document}
\maketitle
\tableofcontents
\section{Introduction}

Dit is de eerste sectie.

Lorem  ipsum  dolor  sit  amet,  consectetuer  adipiscing
elit.   Etiam  lobortisfacilisis sem.  Nullam nec mi et
neque pharetra sollicitudin.  Praesent imperdietmi nec ante.
Donec ullamcorper, felis non sodales...

\addcontentsline{toc}{section}{Ongenummerde Sectie}
\section*{Ongenummerde Sectie}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Etiam lobortis facilisissem.  Nullam nec mi et neque pharetra
sollicitudin.  Praesent imperdiet mi necante...

\section{Tweede Sectie}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Etiam lobortis facilisissem.  Nullam nec mi et neque pharetra
sollicitudin.  Praesent imperdiet mi necante...
\end{document}
```

[Open dit voorbeeld in Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=How+to+change+title+of+table+of+contents\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Ctitle%7BSections+and+Chapters%7D%0A%5Cauthor%7BGubert+Farnsworth%7D%0A%5Cdate%7B+%7D%0A%5Crenewcommand%2A%5Ccontentsname%7BSummary%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0A%5Ctableofcontents%0A%5Csection%7BIntroduction%7D%0A+++%0AThis+is+the+first+section.%0A++++++%0ALorem++ipsum++dolor++sit++amet%2C++consectetuer++adipiscing++%0Aelit.+++Etiam++lobortisfacilisis+sem.++Nullam+nec+mi+et+%0Aneque+pharetra+sollicitudin.++Praesent+imperdietmi+nec+ante.+%0ADonec+ullamcorper%2C+felis+non+sodales...%0A+++++++%0A%5Caddcontentsline%7Btoc%7D%7Bsection%7D%7BUnnumbered+Section%7D%0A%5Csection%2A%7BUnnumbered+Section%7D%0A%0ALorem+ipsum+dolor+sit+amet%2C+consectetuer+adipiscing+elit.++%0AEtiam+lobortis+facilisissem.++Nullam+nec+mi+et+neque+pharetra+%0Asollicitudin.++Praesent+imperdiet+mi+necante...%0A%0A%5Csection%7BSecond+Section%7D%0A+++++++%0ALorem+ipsum+dolor+sit+amet%2C+consectetuer+adipiscing+elit.++%0AEtiam+lobortis+facilisissem.++Nullam+nec+mi+et+neque+pharetra+%0Asollicitudin.++Praesent+imperdiet+mi+necante...%0A%5Cend%7Bdocument%7D)

Dit voorbeeld levert de volgende uitvoer op:

![Naam van de inhoudsopgave wijzigen in LaTeX](/files/9ff1b70aae06d651dcdea1655c24d76854fb21fe)

De regel `\renewcommand*\contentsname{Samenvatting}` zal "Samenvatting" schrijven in plaats van de standaardwaarde. Als u het pakket gebruikt *babel* voor [ondersteuning voor internationale talen](/latex/nl/talen/03-international-language-support.md), moet het eerder genoemde commando tussen de accolades van

```latex
\addto\captionsenglish{ }
```

In plaats van Engels in `\captionenglish` schrijf de naam van de taal die u in babel hebt ingesteld.

## Verder lezen

Zie voor meer informatie:

* [Een document maken in LaTeX](/latex/nl/latex-basis/01-learn-latex-in-30-minutes.md)
* [Vet, cursief en onderstrepen](/latex/nl/latex-basis/03-bold-italics-and-underlining.md)
* [Ondersteuning voor internationale talen](/latex/nl/talen/03-international-language-support.md)
* [Verwijzen tussen secties en vergelijkingen](/latex/nl/documentstructuur/03-cross-referencing-sections-equations-and-floats.md)
* [Indexen](/latex/nl/documentstructuur/04-indices.md)
* [Woordenlijsten](/latex/nl/documentstructuur/05-glossaries.md)
* [Beheer in een groot project](/latex/nl/documentstructuur/07-management-in-a-large-project.md)
* [LaTeX-projecten met meerdere bestanden](/latex/nl/documentstructuur/08-multi-file-latex-projects.md)
* [Hyperlinks](/latex/nl/documentstructuur/09-hyperlinks.md)
* [Paginanummering](/latex/nl/opmaak/03-page-numbering.md)
* [Enkelzijdige en dubbelzijdige documenten](/latex/nl/opmaak/08-single-sided-and-double-sided-documents.md)
* [Meerdere kolommen](/latex/nl/opmaak/09-multiple-columns.md)
* [Tellers](/latex/nl/opmaak/10-counters.md)
* [Lettergroottes, lettertypen en stijlen](/latex/nl/lettertypen/01-font-sizes-families-and-styles.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/nl/documentstructuur/02-table-of-contents.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
