> 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/31-undefined-control-sequence.md).

# تسلسل تحكم غير معرّف

يظهر هذا الخطأ عندما لا يفهم LaTeX أحد الأوامر التي استخدمتها.

## أمثلة شائعة

**خطأ إملائي في أحد الأوامر:**

الأسباب الأكثر شيوعًا لمثل هذا الخطأ هي الأخطاء الإملائية البسيطة. يُعرض أدناه مثال على مثل هذا الخطأ الإملائي، حيث ضغطت عن طريق الخطأ على **`Z`** بدلاً من **`a`** عند كتابة **`\alpha`**

```latex
قد يكون الخطأ الإملائي عند كتابة $\alpha$ هو $\Zlpha$
```

سيعطي هذا رسالة خطأ من

main.tex، السطر 10

تسلسل تحكم غير معرّف.

< \Zlpha l.10 خطأ إملائي عند كتابة $$\alpha$$ قد يكون $\Zlpha$ لم يتم تعريف تسلسل التحكم في نهاية السطر العلوي من رسالة الخطأ الخاصة بك أبدًا. إذا كنت قد أخطأت في كتابته (مثلًا، \`\hobx')، فاكتب \`I' والإملاء الصحيح (مثلًا، \`I\hbox'). وإلا فتابع فقط، وسأنسى ما كان غير معرّف. \[1

تُكتشف هذه الأخطاء بسهولة من قِبل البشر، لكنها قد تتسبب في أن يلتبس على LaTeX ما المطلوب.

**نسيان تحميل حزمة:**

سبب آخر لمثل هذا الخطأ هو الحاجة إلى حزمة معينة لاستخدام أمر محدد، ولكن يتم نسيانها عن طريق الخطأ في المقدمة. ومن أمثلة ذلك

```latex
أريد إدراج مسافة بعد كلمة \LaTeX\xspace لكنني نسيت تحميل حزمة xspace.
```

في هذا المثال، سيفشل المستند في التجميع لأن LaTeX لا يتعرف على **`\xspace`** الأمر. هذا ليس خطأً إملائيًا، لأن **`\xspace`** هو أمر سليم تمامًا. المشكلة هي أنك نسيت تضمين **`\usepackage{xspace}`** في المقدمة. عندما يتم تضمين هذا السطر، ستختفي رسالة الخطأ لأن LaTeX سيعرف الآن كيفية تفسير **`\xspace`** الأمر.

**استخدام الشرطة المائلة العكسية في المكان الخاطئ:**

سبب آخر لِـ *تسلسل تحكم غير معرّف* الخطأ هو استخدام الشرطة المائلة العكسية بشكل غير مناسب. يمكن أن يحدث هذا خصوصًا عند كتابة روابط الملفات كما هو موضح أدناه.

```latex
سيتم توليد خطأ إذا كتبت مسار ملف على النحو

C:\Users\Files
```

المشكلة هي أنه عندما يرى LaTeX شرطة مائلة عكسية **`\`**، فإنه يفسّر ما يلي على أنه أمر. هنا، لا يوجد أمر مثل \Users، لذلك ستحصل على *تسلسل تحكم غير معرّف* خطأ. لتجنب ذلك، عند كتابة النص يجب أن تكتب الشرطة المائلة العكسية على النحو **`\backslash`**. أما عند كتابة مسارات ملفات طويلة وعناوين URL، فقد يكون من الأنسب أحيانًا استخدام **`حزمة url`** بدلاً من كتابة **`\backslash`** في كل مرة.


---

# 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/31-undefined-control-sequence.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.
