> 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/ru/oshibki-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/1470af36eef0f89b418a49d6367a77922365fd0c)


---

# 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/ru/oshibki-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.
