> 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/23-misplaced-alignment-tab-character.md).

# رمز تبويب المحاذاة & في غير موضعه

يظهر هذا الخطأ عندما تُستخدم علامة المحاذاة '&' بشكل غير صحيح. علامة المحاذاة *&* تُستخدم لمحاذاة العناصر في بيئات معينة، مثل *المصفوفة*, *align*, *table* إلخ.

## الأسباب الشائعة للخطأ

**عدم كتابة \\&:**

عندما تريد استخدام علامة العطف *&* كحرف نصي في كتابتك، مثلًا في عنوان، يجب أن تكتبه على النحو `\&`. إذا لم تفعل ذلك، فستظهر لك رسالة خطأ كما هو موضح أدناه

```latex
اسم الشركة هو `Michael & Sons'
```

main.tex، السطر 5

تم وضع حرف تبويب المحاذاة & في غير موضعه.

l.5 اسم الشركة هو \`Michael & Sons' لا أستطيع أن أفهم لماذا قد ترغب في استخدام علامة تبويب هنا. إذا كنت تريد فقط علامة العطف، فالحل بسيط: اكتب الآن \`I\\&'. لكن إذا كانت بعض الأقواس المعقوفة اليمنى في الأعلى قد أنهت محاذاة سابقة قبل أوانها، فربما ستظهر لك رسائل خطأ أخرى، وقد تحاول كتابة \`S' الآن فقط لترى ما الذي يمكن إنقاذه. \[1

لتصحيح هذا الخطأ، غيّر `&` إلى `\&`.

**ماكرو Matrix مستخدم بدلًا من amsmath:matrix:**

في التوزيع الأساسي لـ LaTeX، توجد ماكرو تُسمّى *المصفوفة*. ويُستخدم هذا غالبًا بشكل غير صحيح عندما يكون ما تريد استخدامه حقًا هو *البيئة* المصفوفة التي توفرها الحزمة *amsmath* . إذا نسيت تحميل حزمة amsmath وكتبت ببساطة

```latex
$$
\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
$$
```

فسيظهر *تبويب محاذاة في غير موضعه* رسالة خطأ. وذلك لأن هذا ليس الأسلوب الصحيح لاستخدام *المصفوفة* الماكرو الذي يوفره توزيع LaTeX. ولحل هذه المشكلة، ما عليك سوى تحميل *amsmath* الحزمة.

```latex
% في المقدمة (قبل \begin{document})
\usepackage{amsmath}

% في مستندك

$$
\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
$$
```

![Amsmathmacro.PNG](/files/beacf6d16c447657501a618ad89df073c3433191)


---

# 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/23-misplaced-alignment-tab-character.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.
