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

# Il carattere di tabulazione di allineamento & è fuori posto

Questo errore appare quando il carattere di allineamento '&' viene usato in modo errato. Il carattere di allineamento *&* serve ad allineare gli elementi in ambienti specifici, come *matrice*, *align*, *table* ecc.

## Cause comuni dell'errore

**Non scrivere \\\\&:**

Quando vuoi usare una e commerciale *&* come carattere testuale nella tua scrittura, ad esempio in un titolo, devi scriverla come `\&`. Se non lo fai, otterrai un errore come mostrato qui sotto

```latex
L'azienda si chiama `Michael & Sons'
```

main.tex, riga 5

Carattere di tabulazione di allineamento fuori posto &.

l.5 L'azienda si chiama \`Michael & Sons' Non riesco a capire perché vorresti usare qui un segno di tabulazione. Se vuoi solo una e commerciale, il rimedio è semplice: digita semplicemente \`I\\\\&' adesso. Ma se una parentesi graffa destra più sopra ha terminato prematuramente un allineamento precedente, probabilmente ti aspettano altri messaggi di errore, e potresti provare a digitare \`S' adesso solo per vedere cosa si può salvare. \[1

Per correggere questo errore, modifica `&` su `\&`.

**Macro Matrix usata invece di amsmath:matrix:**

Nella distribuzione LaTeX di base, c'è una macro chiamata *matrice*. Questa viene spesso usata in modo errato quando ciò che vuoi davvero usare è la *richiede* matrice fornita dal *amsmath* pacchetto. Se dimentichi di caricare il pacchetto amsmath e scrivi semplicemente

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

allora apparirà un *errore di tabulazione di allineamento fuori posto* messaggio di errore. Questo perché questo non è il modo corretto di usare la *matrice* macro fornita dalla distribuzione LaTeX. Per risolvere questo problema, carica semplicemente il *amsmath* pacchetto.

```latex
% Nel preambolo (prima di \\begin{document})
\usepackage{amsmath}

% Nel documento

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

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


---

# 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/it/errori-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.
