> 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/mqalat-mtamqh/02-a-quick-visual-guide-to-creating-table-cells-with-diagonal-lines-in-latex.md).

# دليل بصري سريع لإنشاء خلايا جدول بخطوط قطرية في LaTeX

هناك العديد من الحِزم في LaTeX التي تساعد في إنشاء الجداول – [booktabs](https://www.ctan.org/pkg/booktabs) هو مثال شائع—كما يوجد أيضًا عدد متزايد من مولدات الجداول التلقائية المتاحة الآن عبر الإنترنت (مثل [هذا](https://www.tablesgenerator.com/)) وهي طريقة رائعة لإنشاء كود LaTeX لجدول دون الحاجة إلى كتابته يدويًا. بل توجد حتى حزمة تساعدك على إنشاء [جداول طويلة جدًا](https://www.overleaf.com/read/xxwzfxkxxjmc) تمتد عبر عدة صفحات! ولكن ماذا لو أردت إضافة بعض التنسيق أو التنميط الإضافي إلى خلايا معينة داخل جداولك؟

الإجابة البسيطة هي أنه توجد عادةً حزمة لذلك! نركز هنا على نوع معيّن من تنسيق الخلايا—كيفية إنشاء خلايا جدول بخطوط قطرية. تُستخدم هذه الخطوط القطرية غالبًا في الزاوية العلوية اليسرى من الجدول للسماح بوضع كلٍّ من رؤوس الصفوف والأعمدة في الخلية نفسها، وهناك حزمتان متشابهتان يمكن استخدامهما لتحقيق ذلك: `slashbox` و `diagbox`.

ولمساعدتك على تجربة ذلك، أضفنا [مثالًا قصيرًا](https://www.overleaf.com/read/zrnpkbmzvtk) يوضح كيفية إنشاء خطوط قطرية في خلايا الجدول باستخدام تلك الحِزم. ويفضّل بعض الأشخاص استخدام `diagbox` لأن الخطوط التي ينتجها `slashbox` قد تكون أكثر تكسّرًا، بينما تكون `diagbox` الخطوط أكثر سلاسة؛ ومع ذلك، فقد أدرجنا خيارات لكليهما في المثال لتقرر بنفسك!

بالإضافة إلى ذلك، قمنا بتسجيل صورة GIF متحركة تُظهر كيفية إضافة الملف `slashbox.sty` إلى مشروعك مباشرةً من مستودع CTAN.

![استخدام حِزمتَي LaTeX slashbox وdiagbox للجداول على Overleaf](/files/de7067f655b36dbb5d3a6a1769375d8bdb94aea5)

نأمل أن يكون هذا مفيدًا، وإذا كنت ترغب في رؤية المزيد من دروس GIF المتحركة، فالرجاء [إخبارنا](https://www.overleaf.com/contact).


---

# 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/mqalat-mtamqh/02-a-quick-visual-guide-to-creating-table-cells-with-diagonal-lines-in-latex.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.
