> 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/17-latex-error-something-s-wrong-perhaps-a-missing-item.md).

# خطأ LaTeX: هناك شيء غير صحيح — ربما عنصر \item مفقود

يظهر هذا الخطأ عندما تنسى تضمين أمر **`\item`** يمكن أن يظهر أيضًا عند محاولة استخدام القوائم داخل جدول بطريقة غير صحيحة.

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

**نسيان كتابة \item:**

أبسط مثال على هذا الخطأ هو أنك أخبرت LaTeX أنك ستكتب قائمة، لكنك لم تُعنون عناصر قائمتك بـ **`\item`** وسوم. يوضح المثال أدناه ذلك

```latex
\begin{itemize}
هذا هو المدخل الأول في قائمتنا
\end{itemize}
```

هنا، أخبرت LaTeX أنك تكتب قائمة باستخدام **`itemize`** البيئة. والخطأ المرتكب هو أنك لم تُعنون عنصر قائمتك بـ **`\item`**. سيؤدي هذا إلى توليد الخطأ الموضح أدناه:

main.tex، السطر 6

خطأ LaTeX: هناك خطأ ما—ربما يوجد \item مفقود.

راجع دليل LaTeX أو LaTeX Companion للحصول على شرح. اكتب H للحصول على مساعدة فورية. ... l.6 \end{itemize} جرّب الكتابة للمتابعة. إذا لم ينجح ذلك، فاكتب X للخروج.

الطريقة الصحيحة لكتابة هذه القائمة هي:

```latex
\begin{itemize}
\item هذا هو المدخل الأول في قائمتنا
\end{itemize}
```

راجع [هنا](/latex/ar/asasyat-latex/04-lists.md) لمعرفة المزيد حول كيفية إنشاء أنواع مختلفة من القوائم في LaTeX.

**كتابة القوائم داخل الجداول بطريقة غير صحيحة:**

سيظهر هذا الخطأ أيضًا إذا حاولت ترقيم الخلايا داخل جدول باستخدام القوائم، كما هو موضح أدناه.

```latex
\begin{tabular}{l}
  \begin{enumerate}
  \item هذا هو البند رقم واحد\\ \hline
  \item هذا هو البند رقم اثنين
  \end{enumerate}
\end{tabular}
```

هذا خطأ، إذ لا يمكن استخدام القوائم لترقيم خلايا الجدول بهذه الطريقة. إحدى طرق حل المشكلة أعلاه هي إنشاء عدّاد. ويمكن فعل ذلك بإضافة

```latex
\newcounter{rownumbers}
\newcommand\rownumber{\stepcounter{rownumbers}\arabic{rownumbers}}
```

في مقدمة المستند (انظر [هنا](http://tex.stackexchange.com/questions/21243/automatic-table-row-numbers)). ثم يمكنك كتابة المثال أعلاه على النحو التالي

```latex
\begin{tabular}{l r}
  \rownumber & هذا هو البند رقم واحد\\ \hline
  \rownumber & هذا هو البند رقم اثنين
\end{tabular}
```

![Listexample.PNG](/files/c6b922f05568324649208062ace90854e8c19946)

لمعرفة المزيد حول كيفية إنشاء العدّادات، اطّلع على [الوثائق](/latex/ar/altnsyq/10-counters.md).


---

# 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/17-latex-error-something-s-wrong-perhaps-a-missing-item.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.
