> 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/latex-fouten/23-misplaced-alignment-tab-character.md).

# Verkeerd geplaatst uitlijningstabteken &

Deze fout verschijnt wanneer het uitlijningskarakter '&' onjuist wordt gebruikt. Het uitlijningskarakter *&* wordt gebruikt om elementen uit te lijnen in specifieke omgevingen, zoals *matrix*, *align*, *table* enz.

## Veelvoorkomende oorzaken van de fout

**Het niet schrijven van \\&:**

Wanneer u een ampersand wilt gebruiken *&* als tekstteken in uw tekst, zoals in een titel, moet u het schrijven als `\&`. Als u dit niet doet, krijgt u een fout zoals hieronder weergegeven

```latex
Het bedrijf heet `Michael & Sons'
```

main.tex, regel 5

Misplaatst uitlijningstab-karakter &.

l.5 Het bedrijf heet \`Michael & Sons' Ik kan niet bedenken waarom u hier een tabteken zou willen gebruiken. Als u alleen een ampersand wilt, is de oplossing eenvoudig: typ nu gewoon \`I\\&'. Maar als een rechter accolade hierboven een eerdere uitlijning voortijdig heeft beëindigd, dan krijgt u waarschijnlijk nog meer foutmeldingen, en kunt u proberen nu \`S' te typen om te zien wat er nog te redden valt. \[1

Om deze fout te corrigeren, verander `&` om `\&`.

**Matrixmacro gebruikt in plaats van amsmath:matrix:**

In de basis-LaTeX-distributie is er een macro genaamd *matrix*. Deze wordt vaak onjuist gebruikt wanneer u eigenlijk de *omgeving* matrix wilt gebruiken die wordt geleverd door het *amsmath* pakket. Als u vergeet het amsmath-pakket te laden en gewoon schrijft

```latex
$$
\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
$$
```

dan zal een *misplaatst uitlijningstab-karakter* foutmelding verschijnen. Dit komt doordat dit niet de juiste manier is om de *matrix* macro te gebruiken die door de LaTeX-distributie wordt geleverd. Om dit probleem op te lossen, laadt u gewoon het *amsmath* pakket niet te gebruiken.

```latex
% In uw voorwoord (vóór \begin{document})
\usepackage{amsmath}

% In uw document

$$
\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
$$
```

![Amsmathmacro.PNG](/files/7c8ecc73f0c6a316298301f2b4d34de3100d1918)


---

# 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/latex-fouten/23-misplaced-alignment-tab-character.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.
