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

# LaTeX-Fehler: \mathrm nur im Mathematikmodus erlaubt

Dieser Fehler tritt auf, wenn wir in einem Textmodus eine Schrift verwenden, die nur im Mathematikmodus erlaubt ist. Wenn Sie solche Schriften verwenden, stellen Sie sicher, dass Sie sie wie folgt in Dollarzeichen einschließen `$...$`. Um mehr über mathematische Schriften zu erfahren, können Sie gerne unser [Dokumentation](/latex/de/mathematik/12-mathematical-fonts.md). Eine Liste solcher Schriften mit den entsprechenden Paketen ist unten aufgeführt

|                  |                                                                                                                                                                                                                                                                                     |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| \mathnormal{...} | Dies ist die standardmäßige kursive Schrift der mathematischen Kursivschrift. `$\mathnormal{Hello world}$` ergibt dasselbe Ergebnis wie `$Hello world$`.                                                                                                                            |
| \mathrm{...}     | Dies ist die standardmäßige Text-Roman-Schrift.                                                                                                                                                                                                                                     |
| \mathbf{...}     | Dies ergibt fette Buchstaben im Mathematikmodus.                                                                                                                                                                                                                                    |
| \mathcal{...}    | Dies ist eine spezielle kalligrafische Schrift im Mathematikmodus. Sie kann nur für Großbuchstaben verwendet werden, zum Beispiel zur Bezeichnung reeller Zahlen. `\mathcal{R}` ergibt ℝ.                                                                                           |
| \mathsf{...}     | Dies ergibt serifenlose Buchstaben im Mathematikmodus.                                                                                                                                                                                                                              |
| \mathit{...}     | Dies ergibt kursiv gesetzte Textbuchstaben. Diese können sich je nach verwendeter Klasse von mathematisch kursiven Buchstaben unterscheiden.                                                                                                                                        |
| \mathtt{...}     | Dies ergibt aufrechte Buchstaben aus der verwendeten Schreibmaschinen-Schrift.                                                                                                                                                                                                      |
| \mathbb{...}     | Dies stellt eine „Blackboard Bold“-Schrift für Großbuchstaben bereit. Das [**`amsfonts`**](https://www.ctan.org/pkg/amsfonts?lang=en) Paket oder alternativ das [**`amssymb`**](https://www.ctan.org/pkg/amssymb?lang=en) Paket muss geladen werden, um diese Schrift zu verwenden. |
| \mathfrak{...}   | Dies stellt gotische Buchstaben in Groß- und Kleinbuchstaben bereit. Das [**`amsfonts`**](https://www.ctan.org/pkg/amsfonts?lang=en) Paket oder alternativ das [**`amssymb`**](https://www.ctan.org/pkg/amssymb?lang=en) Paket muss geladen werden, um diese Schrift zu verwenden.  |
| euscript         | Die [**`euscript`**](http://tug.ctan.org/fonts/amsfonts/doc/euscript.pdf) Paket stellt uns ein weiteres kalligrafisches Alphabet namens Euler Script zur Verfügung.                                                                                                                 |

**Textentsprechungen der oben genannten mathematischen Schriften:**

| Schrift im Mathematikmodus | Textentsprechung                          |
| -------------------------- | ----------------------------------------- |
| \mathnormal{...}           | \textit{...}.                             |
| \mathrm{...}               | \text{...}                                |
| \mathbf{...}               | \textbf{...}.                             |
| \mathcal{...}              | Keine entsprechende Schrift im Textmodus. |
| \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/de/latex-fehler/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.
