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

# خطأ LaTeX: \mathrm مسموح به فقط في وضع الرياضيات

يظهر هذا الخطأ عندما نستخدم خطًا في وضع النص وهو مسموح فقط في وضع الرياضيات. عند استخدام مثل هذه الخطوط، تأكد من تضمينها بين علامتي الدولار كما `$...$`. لمعرفة المزيد عن الخطوط الرياضية، لا تتردد في الاطلاع على [الوثائق](/latex/ar/alryadhyat/12-mathematical-fonts.md). وترد أدناه قائمة بهذه الخطوط، مع الحزم المقابلة لها

|                  |                                                                                                                                                                                                                                                         |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| \mathnormal{...} | هذا هو الخط المائل القياسي في الخط المائل الرياضي. `$\mathnormal{Hello world}$` سيعطي نفس النتيجة مثل `$Hello world$`.                                                                                                                                  |
| \mathrm{...}     | هذا هو خط الرومان النصي القياسي.                                                                                                                                                                                                                        |
| \mathbf{...}     | هذا يعطي حروفًا عريضة في وضع الرياضيات.                                                                                                                                                                                                                 |
| \mathcal{...}    | هذا خط خطيّ خاص في وضع الرياضيات. ويمكن استخدامه للحروف الكبيرة فقط، مثل تحديد الأعداد الحقيقية. `\mathcal{R}` سيعطي ℝ.                                                                                                                                 |
| \mathsf{...}     | هذا يعطي حروفًا بلا زوائد في وضع الرياضيات.                                                                                                                                                                                                             |
| \mathit{...}     | سيعطي هذا حروفًا مائلة نصية. وقد تختلف هذه عن الحروف المائلة الرياضية حسب الفئة المحددة المستخدمة.                                                                                                                                                      |
| \mathtt{...}     | هذا يعطي حروفًا قائمة من خط الآلة الكاتبة المستخدم.                                                                                                                                                                                                     |
| \mathbb{...}     | يوفّر هذا خط "عريض السبورة" للحروف الكبيرة. يجب تحميل [**`amsfonts`**](https://www.ctan.org/pkg/amsfonts?lang=en) الحزمة أو ما يعادلها The [**`amssymb`**](https://www.ctan.org/pkg/amssymb?lang=en) يجب تحميل الحزمة لاستخدام هذا الخط.                |
| \mathfrak{...}   | يوفّر هذا حروفًا قوطيّة بصيغتيها الكبيرة والصغيرة. وتوفّر لنا الحزمة [**`amsfonts`**](https://www.ctan.org/pkg/amsfonts?lang=en) الحزمة أو ما يعادلها The [**`amssymb`**](https://www.ctan.org/pkg/amssymb?lang=en) يجب تحميل الحزمة لاستخدام هذا الخط. |
| euscript         | ال [**`euscript`**](http://tug.ctan.org/fonts/amsfonts/doc/euscript.pdf) خطًا خطيًا آخر يُسمّى Euler script.                                                                                                                                            |

**المكافئات النصية للخطوط الرياضية أعلاه:**

| خط وضع الرياضيات | المكافئ النصي                 |
| ---------------- | ----------------------------- |
| \mathnormal{...} | \textit{...}.                 |
| \mathrm{...}     | \text{...}                    |
| \mathbf{...}     | \textbf{...}.                 |
| \mathcal{...}    | لا يوجد خط مكافئ في وضع النص. |
| \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/ar/akhtaa-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.
