> 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/overleaf-learn-latex-pt/erros-do-latex/23-misplaced-alignment-tab-character.md).

# Caráter de tabulação de alinhamento colocado no sítio errado &

Este erro aparece quando o caractere de alinhamento '&' é usado incorretamente. O caractere de alinhamento *&* é usado para alinhar elementos em ambientes específicos, como *matriz*, *align*, *table* etc.

## Causas comuns do erro

**Não escrever \\&:**

Quando você quiser usar um e comercial *&* como um caractere de texto na sua escrita, como num título, você deve escrevê-lo como `\&`. Se não o fizer, você receberá um erro como mostrado abaixo

```latex
A empresa chama-se `Michael & Sons'
```

main.tex, linha 5

Caractere de tabulação de alinhamento fora do lugar &.

l.5 A empresa chama-se \`Michael & Sons' Não consigo perceber por que você gostaria de usar uma marca de tabulação aqui. Se você só quer um e comercial, a solução é simples: Basta digitar \`I\\&' agora. Mas se alguma chaveta direita acima terminou prematuramente um alinhamento anterior, provavelmente surgirão mais mensagens de erro, e você pode tentar digitar \`S' agora só para ver o que é recuperável. \[1

Para corrigir este erro, altere `&` para `\&`.

**Macro de matriz usada em vez de amsmath:matrix:**

Na distribuição básica do LaTeX, existe uma macro chamada *matriz*. Esta é frequentemente usada incorretamente quando o que você realmente quer usar é a *ambiente* matriz fornecida pelo *amsmath* pacote. Se você se esquecer de carregar o pacote amsmath e simplesmente escrever

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

então um *tabulação de alinhamento fora do lugar* mensagem de erro aparecerá. Isso ocorre porque esta não é a maneira correta de usar a *matriz* macro fornecida pela distribuição LaTeX. Para resolver este problema, basta carregar o *amsmath* pacote.

```latex
% No seu preâmbulo (antes de \begin{document})
\usepackage{amsmath}

% No seu documento

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

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


---

# 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/overleaf-learn-latex-pt/erros-do-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.
