> 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/11-latex-error-mathrm-allowed-only-in-math-mode.md).

# Errore LaTeX: \mathrm consentito solo in modalità matematica

Questo errore appare quando usiamo un font in modalità testo che è consentito solo in modalità matematica. Quando si usano questi font, assicurarsi di inserirli tra i simboli del dollaro come `$...$`. Per saperne di più sui font matematici, sentiti libero di consultare il nostro [documentazione](/latex/it/matematica/12-mathematical-fonts.md). Un elenco di questi font, con i pacchetti corrispondenti, è mostrato di seguito

|                  |                                                                                                                                                                                                                                                                                          |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| \mathnormal{...} | Questo è il font corsivo standard nel font matematico corsivo. `$\mathnormal{Hello world}$` darà lo stesso risultato di `$Hello world$`.                                                                                                                                                 |
| \mathrm{...}     | Questo è il font romano standard del testo.                                                                                                                                                                                                                                              |
| \mathbf{...}     | Questo fornisce lettere in grassetto in modalità matematica.                                                                                                                                                                                                                             |
| \mathcal{...}    | Questo è un font calligrafico speciale in modalità matematica. Può essere usato solo per le lettere maiuscole, ad esempio per indicare i numeri reali. `\mathcal{R}` darà ℝ.                                                                                                             |
| \mathsf{...}     | Questo fornisce lettere sans serif in modalità matematica.                                                                                                                                                                                                                               |
| \mathit{...}     | Questo fornirà lettere corsive da testo. Queste possono essere diverse dalle lettere corsive matematiche a seconda della classe specifica utilizzata.                                                                                                                                    |
| \mathtt{...}     | Questo fornisce lettere dritte dal font da macchina da scrivere utilizzato.                                                                                                                                                                                                              |
| \mathbb{...}     | Questo fornisce un font "blackboard bold" per le lettere maiuscole. Il [**`amsfonts`**](https://www.ctan.org/pkg/amsfonts?lang=en) pacchetto, oppure equivalentemente il [**`amssymb`**](https://www.ctan.org/pkg/amssymb?lang=en) pacchetto deve essere caricato per usare questo font. |
| \mathfrak{...}   | Questo fornisce lettere gotiche sia maiuscole sia minuscole. Il [**`amsfonts`**](https://www.ctan.org/pkg/amsfonts?lang=en) pacchetto, oppure equivalentemente il [**`amssymb`**](https://www.ctan.org/pkg/amssymb?lang=en) pacchetto deve essere caricato per usare questo font.        |
| euscript         | Il [**`euscript`**](http://tug.ctan.org/fonts/amsfonts/doc/euscript.pdf) pacchetto ci fornisce un altro alfabeto calligrafico chiamato Euler script.                                                                                                                                     |

**Equivalenti testuali dei font matematici sopra:**

| Font in modalità matematica | Equivalente testuale                       |
| --------------------------- | ------------------------------------------ |
| \mathnormal{...}            | \textit{...}.                              |
| \mathrm{...}                | \text{...}                                 |
| \mathbf{...}                | \textbf{...}.                              |
| \mathcal{...}               | Nessun font equivalente in modalità testo. |
| \mathsf{...}                | \textsf{...}.                              |


---

# 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/11-latex-error-mathrm-allowed-only-in-math-mode.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.
