> 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/meer-onderwerpen/09-commands-and-environments.md).

# Opdrachten en omgevingen

## Opdrachten

Het gedrag van LaTeX-documenten kan worden geregeld door een specifieke opdracht te gebruiken. De typische opdrachtenstructuur is als volgt:

```
\commandname[optioneel argument]{hoofdsargument}
```

Merk op dat alle opdrachten **moeten** worden voorafgegaan door het backslash-teken en het hoofdsargument moet tussen de {..}-haakjes worden opgenomen.

Sommige opdrachten hebben meer dan één argument, bijvoorbeeld:

```
\multicolumn{aantal samengevoegde kolommen}{uitlijning}{inhoud}
```

Sommige opdrachten hebben geen {}-haakjes nodig om goed te werken, bijvoorbeeld:

```
\item Tekst die de inhoud van het item is
```

Sommige opdrachten hebben optionele argumenten, bijvoorbeeld:

```
\item[--] Tekst die de inhoud van het item is
\\[2ex]
```

## Omgevingen

Een speciaal type opdracht is de omgeving. De typische structuur van een omgeving is als volgt:

```
\begin{environmentname}
 inhoud
\end{environmentname}
```

Bijvoorbeeld:

```latex
\begin{center}
Voorbeeldtekst
\end{center}
```

of

```latex
\begin{enumerate}
\item Eerste punt
\item Tweede punt
\end{enumerate}
```

Merk op dat alle omgevingen **moeten** beginnen met \begin{environmentname} en eindigen met \end{environmentname}.

Sommige omgevingen nemen argumenten en optionele argumenten aan, net als opdrachten. Bijvoorbeeld

```latex
\begin{tabular}[tabelpositie]{kolomspecificaties}
 tabelinhoud
\end{tabular}
```


---

# 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/meer-onderwerpen/09-commands-and-environments.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.
