> 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/wiskunde/08-spacing-in-math-mode.md).

# Spatiëring in wiskundemodus

Dit artikel legt uit hoe je spaties van verschillende breedtes in de wiskundemodus invoegt.

## Inleiding

Het aanpassen van de standaardafstand in de wiskundemodus van (La)TeX kan in bepaalde situaties nuttig zijn; laten we een voorbeeld bekijken:

```latex
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Stel dat we de volgende verzamelingen hebben
\[
S = \{ z \in \mathbb{C}\, |\, |z| < 1 \} \quad \textrm{and} \quad S_2=\partial{S}
\]
\end{document}
```

[Open dit voorbeeld in Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Math+mode+spacing+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamssymb%7D%0A%5Cbegin%7Bdocument%7D%0AAssume+we+have+the+next+sets%0A%5C%5B%0AS+%3D+%5C%7B+z+%5Cin+%5Cmathbb%7BC%7D%5C%2C+%7C%5C%2C+%7Cz%7C+%3C+1+%5C%7D+%5Cquad+%5Ctextrm%7Band%7D+%5Cquad+S_2%3D%5Cpartial%7BS%7D%0A%5C%5D%0A%5Cend%7Bdocument%7D)

Dit voorbeeld levert de volgende uitvoer op:

![Voorbeeld dat aanpassingen aan de wiskundige spatiëring toont](/files/e8f405588f7c839d2f2bed9e560dc28f3cf42478)

Zoals je in dit voorbeeld ziet, kan een wiskundige tekst expliciet worden gespatieerd met behulp van enkele speciale commando's.

## Spaties

Het onderstaande voorbeeld bevat een volledige lijst met spaties die zijn ingevoegd met verschillende commando's en laat hun effect op de opgemaakte wiskunde zien.

```latex
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Spaties in de wiskundemodus.

\begin{align*}
f(x) &= x^2\! +3x\! +2 \\
f(x) &= x^2+3x+2 \\
f(x) &= x^2\, +3x\, +2 \\
f(x) &= x^2\: +3x\: +2 \\
f(x) &= x^2\; +3x\; +2 \\
f(x) &= x^2\ +3x\ +2 \\
f(x) &= x^2\quad +3x\quad +2 \\
f(x) &= x^2\qquad +3x\qquad +2
\end{align*}
\end{document}
```

[Open dit voorbeeld in Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Math+mode+spacing+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0ASpaces+in+mathematical+mode.%0A%0A%5Cbegin%7Balign%2A%7D%0Af%28x%29+%26%3D+x%5E2%5C%21+%2B3x%5C%21+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%2B3x%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5C%2C+%2B3x%5C%2C+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5C%3A+%2B3x%5C%3A+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5C%3B+%2B3x%5C%3B+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5C+%2B3x%5C+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5Cquad+%2B3x%5Cquad+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5Cqquad+%2B3x%5Cqquad+%2B2%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

Dit voorbeeld levert de volgende uitvoer op:

![Meer voorbeelden van het aanpassen van spatiëring in de wiskundemodus](/files/722b08ec04c9500244631ab0df546f47a6542e5e)

Raadpleeg de [naslaggids](#reference-guide) voor een beschrijving van de commando's.

**Opmerking**: om een beschrijving van de `align*` omgeving te zien, raadpleeg [Vergelijkingen uitlijnen met amsmath](/latex/nl/wiskunde/06-aligning-equations-with-amsmath.md)

## Spatiëring van operatoren

De spatiëring rond operatoren en relaties in de wiskundemodus wordt geregeld door specifieke tussenruimtes:

* `\thinmuskip` (standaard is dit gelijk aan 3 mu)
* `\medmuskip` (standaard is dit gelijk aan 4 mu)
* `\thickmuskip` (standaard is dit gelijk aan 5 mu)

```latex
\begin{align*}
3ax+4by=5cz\\
3ax<4by+5cz
\end{align*}
```

[Open dit voorbeeld in Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Math+mode+operator+spacing+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Balign%2A%7D%0A3ax%2B4by%3D5cz%5C%5C%0A3ax%3C4by%2B5cz%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

Dit voorbeeld levert de volgende uitvoer op:

![Spatiëring van operatoren in LaTeX](/files/5ddb07f38cb7b1d2f7e20b3f53ef84d816a3142b)

Voor relationele operatoren, zoals $$<$$, $$>$$ en $$=$$, stelt LaTeX `\thickmuskip` spatie in. Maar voor binaire operatoren zoals $$+$$, $$-$$ en $$\times$$, de `\medmuskip` wordt er een spatie ingesteld. Het verschil is bijna onmerkbaar.

## Door de gebruiker gedefinieerde binaire en relationele operatoren

Je kunt de gebruikte spatiëring in binaire of relationele operatoren afdwingen, zodat je [je eigen kunt definiëren](/latex/nl/opdrachten/01-commands.md).

```latex
\begin{align*}
34x^2a \mathbin{\#} 13bc \\
34x^2a \mathrel{\#} 13bc
\end{align*}
```

[Open dit voorbeeld in Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Defining+your+own+math+operators\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Balign%2A%7D%0A34x%5E2a+%5Cmathbin%7B%5C%23%7D+13bc+%5C%5C%0A34x%5E2a+%5Cmathrel%7B%5C%23%7D+13bc%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

Dit voorbeeld levert de volgende uitvoer op:

![Je eigen binaire of relationele operatoren definiëren](/files/078ff94c4563bfb8a7330a607c6eab1cb7830584)

Het vorige voorbeeld stelt een specifieke spatiëring in vóór en na `#` met behulp van `\mathrel` (relationeel) en `\mathbin` (binair) commando's.

## Naslaggids

**Beschrijving van spatiecommando's**

| LaTeX-code                 | Beschrijving                                                                                    |
| -------------------------- | ----------------------------------------------------------------------------------------------- |
| `\quad`                    | spatie gelijk aan de huidige lettergrootte (= 18 [mu](/latex/nl/opmaak/01-lengths-in-latex.md)) |
| `\,`                       | 3/18 van `\quad` (= 3 mu)                                                                       |
| `\:`                       | 4/18 van `\quad` (= 4 mu)                                                                       |
| `\;`                       | 5/18 van `\quad` (= 5 mu)                                                                       |
| `\!`                       | -3/18 van `\quad` (= -3 mu)                                                                     |
| `\` (spatie na backslash!) | equivalent van een spatie in normale tekst                                                      |
| `\qquad`                   | twee keer `\quad` (= 36 mu)                                                                     |

## Verder lezen

Zie voor meer informatie

* [Wiskundige uitdrukkingen](/latex/nl/wiskunde/01-mathematical-expressions.md)
* [Haken en haakjes](/latex/nl/wiskunde/03-brackets-and-parentheses.md)
* [Vergelijkingen uitlijnen met amsmath](/latex/nl/wiskunde/06-aligning-equations-with-amsmath.md)
* [Weergavestijl in wiskundemodus](/latex/nl/wiskunde/10-display-style-in-math-mode.md)
* [Lijst van Griekse letters en wiskundige symbolen](/latex/nl/wiskunde/11-list-of-greek-letters-and-math-symbols.md)
* [Wiskundige lettertypen](/latex/nl/wiskunde/12-mathematical-fonts.md)
* [De niet zo korte introductie tot LaTeX2ε](http://www.ctan.org/tex-archive/info/lshort/)


---

# 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/wiskunde/08-spacing-in-math-mode.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.
