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

# Неправильно розміщений символ табуляції вирівнювання &

Ця помилка з’являється, коли символ вирівнювання '&' використано неправильно. Символ вирівнювання *&* використовується для вирівнювання елементів у певних середовищах, таких як *матриця*, *align*, *table* тощо.

## Поширені причини помилки

**Якщо не писати \\&:**

Коли ви хочете використати амперсанд *&* як текстовий символ у вашому тексті, наприклад у заголовку, його потрібно писати як `\&`. Якщо цього не зробити, ви отримаєте помилку, як показано нижче

```latex
Компанія називається `Michael & Sons'
```

main.tex, рядок 5

Неправильно розміщений символ табуляції вирівнювання &.

l.5 Компанія називається \`Michael & Sons' Я не можу зрозуміти, навіщо вам тут потрібен символ табуляції. Якщо вам потрібен лише амперсанд, виправлення просте: просто введіть зараз \`I\\&'. Але якщо якась права дужка вище вже передчасно завершила попереднє вирівнювання, вам, імовірно, слід очікувати ще повідомлень про помилки, і ви можете спробувати зараз ввести \`S', щоб побачити, що можна врятувати. \[1

Щоб виправити цю помилку, змініть `&` на `\&`.

**Макрос Matrix використано замість amsmath:matrix:**

У базовій дистрибуції LaTeX є макрос під назвою *матриця*. Його часто використовують неправильно, коли насправді вам потрібен *середовище* matrix, що постачається пакетом *amsmath* Якщо ви забудете завантажити пакет amsmath і просто напишете

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

тоді *неправильно розміщений символ табуляції вирівнювання* з’явиться повідомлення про помилку. Це тому, що це не правильний спосіб використовувати *матриця* макрос, що постачається дистрибутивом LaTeX. Щоб вирішити цю проблему, просто підключіть *amsmath* пакет.

```latex
% У преамбулі (перед \begin{document})
\usepackage{amsmath}

% У вашому документі

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

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


---

# 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/uk/pomilki-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.
