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

# Niepoprawnie umieszczony znak tabulacji wyrównania &

Ten błąd pojawia się, gdy znak wyrównania '&' jest używany nieprawidłowo. Znak wyrównania *&* służy do wyrównywania elementów w określonych środowiskach, takich jak *macierz*, *align*, *table* itp.

## Najczęstsze przyczyny błędu

**Niepisanie \\&:**

Gdy chcesz użyć ampersandu *&* jako znaku tekstowego w swoim zapisie, na przykład w tytule, musisz zapisać go jako `\&`. Jeśli tego nie zrobisz, pojawi się błąd pokazany poniżej

```latex
Firma nosi nazwę `Michael & Sons'
```

main.tex, linia 5

Nieprawidłowo umieszczony znak tabulacji wyrównania &.

l.5 Firma nosi nazwę \`Michael & Sons' Nie mogę zrozumieć, dlaczego chciałbyś użyć tutaj znaku tabulacji. Jeśli po prostu chcesz ampersand, rozwiązanie jest proste: Wpisz teraz \`I\\&'. Ale jeśli jakiś prawy nawias klamrowy powyżej zakończył wcześniejsze wyrównanie przedwcześnie, prawdopodobnie pojawi się więcej komunikatów o błędach, i możesz spróbować wpisać teraz \`S', aby zobaczyć, co da się uratować. \[1

Aby poprawić ten błąd, zmień `&` na `\&`.

**Makro Matrix użyte zamiast amsmath:matrix:**

W podstawowej dystrybucji LaTeX-a znajduje się makro o nazwie *macierz*. Jest ono często używane nieprawidłowo, gdy tak naprawdę chcesz użyć *środowisko* macierzy udostępnianej przez *amsmath* pakiet. Jeśli zapomnisz załadować pakiet amsmath i po prostu wpiszesz

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

wtedy pojawi się *błąd nieprawidłowo umieszczonego znaku wyrównania* komunikat o błędzie. Dzieje się tak, ponieważ nie jest to poprawny sposób użycia *macierz* makra udostępnianego przez dystrybucję LaTeX-a. Aby rozwiązać ten problem, po prostu załaduj *amsmath* pakiet.

```latex
% W preambule (przed \begin{document})
\usepackage{amsmath}

% W dokumencie

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

![Amsmathmacro.PNG](/files/b581f022a3ccb1b2d1488f5b0a44c3a36c9ebd00)


---

# 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/pl/bledy-latex/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.
