> 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/matematica/12-mathematical-fonts.md).

# Caratteri matematici

## Introduzione

Alcuni elementi matematici devono essere composti usando caratteri che contengono simboli/caratteri di un certo stile; per esempio, è consuetudine rappresentare i numeri reali con un carattere grassetto da lavagna (come $$\mathbb{R}$$), oppure gli spazi topologici con un carattere calligrafico (come ($$\mathcal{T}$$). Questo articolo mostra come usare diversi stili di carattere nella composizione della matematica, partendo dal seguente esempio:

```latex
Sia \( \mathcal{T} \) uno spazio topologico, una base è definita come
\[
 \mathcal{B} = \{B_{\alpha} \in \mathcal{T}\, |\,  U = \bigcup B_{\alpha} \forall U \in \mathcal{T} \}
\]
```

[Apri questo esempio in Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Maths+typeface+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0ALet+%5C%28+%5Cmathcal%7BT%7D+%5C%29+be+a+topological+space%2C+a+basis+is+defined+as%0A%5C%5B%0A+%5Cmathcal%7BB%7D+%3D+%5C%7BB_%7B%5Calpha%7D+%5Cin+%5Cmathcal%7BT%7D%5C%2C+%7C%5C%2C++U+%3D+%5Cbigcup+B_%7B%5Calpha%7D+%5Cforall+U+%5Cin+%5Cmathcal%7BT%7D+%5C%7D%0A%5C%5D%0A%5Cend%7Bdocument%7D)

Questo esempio produce il seguente output:

![Esempio di caratteri matematici](/files/9a0d3f10445863f13cf7b73912ba4e8964a36143)

L'uso di alcuni stili di carattere matematico richiede l'aggiunta della riga `\usepackage{amssymb}` al preambolo del documento: vedere [`amsfonts` pacchetto](https://ctan.org/pkg/amsfonts) per ulteriori informazioni.

## Caratteri tipografici con sole lettere maiuscole

Esistono alcuni caratteri tipografici che supportano solo un numero limitato di caratteri; questi font di solito indicano alcuni insiemi speciali. Per esempio, per visualizzare la R in carattere blackboard bold puoi usare `\(\mathbb{R}\)` per ottenere $$\mathbb{R}$$. Il seguente esempio mostra i caratteri tipografici calligrafico, fraktur e blackboard bold:

```latex
\documentclass{article}
\\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{align*}
RQSZ \\
\mathcal{RQSZ} \\
\mathfrak{RQSZ} \\
\mathbb{RQSZ}
\end{align*}
\end{document}
```

[Apri questo esempio in Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+different+math+fonts\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cusepackage%7Bamssymb%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Balign%2A%7D%0ARQSZ+%5C%5C%0A%5Cmathcal%7BRQSZ%7D+%5C%5C%0A%5Cmathfrak%7BRQSZ%7D+%5C%5C%0A%5Cmathbb%7BRQSZ%7D%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

Questo esempio produce il seguente output:

![Cambiare caratteri per comporre la matematica](/files/230ed423733fdeec8f9971f979674a2c561e7146)

## Altri caratteri matematici

È possibile impostare una famiglia di caratteri diversa per un'intera espressione matematica:

```latex
\begin{align*}
3x^2 \in R \subset Q \\
\mathnormal{3x^2 \in R \subset Q} \\
\mathrm{3x^2 \in R \subset Q} \\
\mathit{3x^2 \in R \subset Q} \\
\mathbf{3x^2 \in R \subset Q} \\
\mathsf{3x^2 \in R \subset Q} \\
\mathtt{3x^2 \in R \subset Q}
\end{align*}
```

[Apri questo esempio in Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+a+font+family+for+mathematical+expressions\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cusepackage%7Bamssymb%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Balign%2A%7D%0A3x%5E2+%5Cin+R+%5Csubset+Q+%5C%5C%0A%5Cmathnormal%7B3x%5E2+%5Cin+R+%5Csubset+Q%7D+%5C%5C%0A%5Cmathrm%7B3x%5E2+%5Cin+R+%5Csubset+Q%7D+%5C%5C%0A%5Cmathit%7B3x%5E2+%5Cin+R+%5Csubset+Q%7D+%5C%5C%0A%5Cmathbf%7B3x%5E2+%5Cin+R+%5Csubset+Q%7D+%5C%5C%0A%5Cmathsf%7B3x%5E2+%5Cin+R+%5Csubset+Q%7D+%5C%5C%0A%5Cmathtt%7B3x%5E2+%5Cin+R+%5Csubset+Q%7D%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

Questo esempio produce il seguente output:

![Cambiare caratteri per comporre la matematica](/files/a6be6b96f70c85f2818a32d0ea3c18f3574b9fda)

In questo caso, non solo le lettere ma tutti i caratteri cambiano aspetto; per esempio, `$\mathit{3x^2}$` trasforma l'intera espressione in corsivo per ottenere $$\mathit{3x^2}$$.

## Letture aggiuntive

Per ulteriori informazioni vedi

* [`amsfonts` documentazione del pacchetto](https://ctan.org/pkg/amsfonts)
* [Espressioni matematiche](/latex/it/matematica/01-mathematical-expressions.md)
* [Pedici ed esponenti](/latex/it/matematica/02-subscripts-and-superscripts.md)
* [Grassetto, corsivo e sottolineatura](/latex/it/concetti-di-base-di-latex/03-bold-italics-and-underlining.md)
* [Dimensioni, famiglie e stili dei caratteri](/latex/it/caratteri/01-font-sizes-families-and-styles.md)
* [Tipi di carattere](/latex/it/caratteri/02-font-typefaces.md)
* [Allineamento del testo](/latex/it/formattazione/06-text-alignment.md)
* [La non così breve introduzione a LaTeX2ε](http://www.ctan.org/tex-archive/info/lshort/)


---

# 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/matematica/12-mathematical-fonts.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.
