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

# Feilplassert justeringstabulatortegn &

Denne feilen vises når justeringstegnet '&' brukes feil. Justeringstegnet *&* brukes til å justere elementer i bestemte miljøer, for eksempel *matrise*, *align*, *table* osv.

## Vanlige årsaker til feil

**Å ikke skrive \\&:**

Når du vil bruke et ampersand *&* som et teksttegn i teksten din, for eksempel i en tittel, må du skrive det som `\&`. Hvis du ikke gjør dette, får du en feil som vist nedenfor

```latex
Selskapet heter `Michael & Sons'
```

main.tex, linje 5

Feilplassert justeringstabulator &.

l.5 Selskapet heter \`Michael & Sons' Jeg kan ikke skjønne hvorfor du skulle ønske å bruke et tabulatortegn her. Hvis du bare vil ha et ampersand, er løsningen enkel: Skriv bare \`I\\&' nå. Men hvis en høyreklamme lenger opp har avsluttet en tidligere justering for tidlig, vil du sannsynligvis få flere feilmeldinger, og du kan prøve å skrive \`S' nå bare for å se hva som kan berges. \[1

For å rette denne feilen, endre `&` til `\&`.

**Matrise-makro brukt i stedet for amsmath:matrix:**

I den grunnleggende LaTeX-distribusjonen finnes det en makro kalt *matrise*. Denne brukes ofte feil når det du egentlig vil bruke, er *miljøet* matrise levert av *amsmath* pakken. Hvis du glemmer å laste inn amsmath-pakken og bare skriver

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

vil en *feilplassert justeringstabulator* feilmelding vises. Dette er fordi dette ikke er riktig måte å bruke *matrise* makroen som følger med LaTeX-distribusjonen. For å løse dette problemet, last ganske enkelt inn *amsmath* pakken.

```latex
% I preamblen (før \begin{document})
\usepackage{amsmath}

% I dokumentet ditt

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

![Amsmathmacro.PNG](/files/04fc4933fd4148dc485387df04c6b585bab6045f)


---

# 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/no/latex-feil/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.
