> 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/altnsyq/01-lengths-in-latex.md).

# الأطوال في LaTeX

في LaTeX توجد العديد من الأطوال التي تحدد أبعادًا مختلفة للمستندات المُعدّة. على سبيل المثال، تحدد معاملات الأبعاد المعيّنة [الخطوط](/latex/ar/alkhtwt/01-font-sizes-families-and-styles.md), [pages](/latex/ar/altnsyq/07-page-size-and-margins.md)، أو [الفقرات](/latex/ar/altnsyq/04-articles-how-to-change-paragraph-spacing-in-latex.md).

## الوحدات

فيما يلي وصف للوحدات المتاحة في LaTeX.

| الاختصار | القيمة                                                                                                                                                             |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **pt**   | النقطة تقارب 1/72.27 بوصة، أي حوالي 0.0138 بوصة أو 0.3515 مم (وتُعرَّف النقطة بدقة على أنها 1/864 من القدم الأمريكي *قدم الطابعة* وهي 249/250 من القدم الإنجليزية) |
| **mm**   | مليمتر                                                                                                                                                             |
| **cm**   | سنتيمتر                                                                                                                                                            |
| **في**   | بوصة                                                                                                                                                               |
| **ex**   | تقريبًا ارتفاع الحرف 'x' (الصغير) في الخط الحالي (يعتمد ذلك على الخط المستخدم)                                                                                     |
| **em**   | تقريبًا عرض الحرف 'M' (الكبير) في الخط الحالي (يعتمد ذلك على الخط المستخدم)                                                                                        |
| **mu**   | وحدة رياضية تساوي 1/18 من em، حيث يُؤخذ em من عائلة رموز الرياضيات                                                                                                 |
| **sp**   | ما يُسمّى "النقاط الخاصة"، وهي وحدة قياس منخفضة المستوى حيث 65536sp=1pt                                                                                            |

فيما يلي مثال يوضح الفرق بين وحدات ex و em.

```latex
\documentclass[twocolumn]{article}
\usepackage{blindtext}
\usepackage{graphicx}

\setlength{\columnsep}{1in}

\begin{document}

عرض \texttt{10ex} ينتج:

\includegraphics[width=10ex]{overleaf-logo}
\vspace{5mm}

عرض \texttt{10em} ينتج:

\includegraphics[width=10em]{overleaf-logo}

\end{document}
```

![LengthsEx1OverleafUpdated.png](/files/f32b4b59846f344cad9f91e86a665f7bceadbbb6)

[افتح مثالًا في Overleaf](https://www.overleaf.com/project/new/template/19506?id=65960656\&templateName=Length+types+and+values+in+LaTeX\&latexEngine=pdflatex\&texImage=texlive-full%3A2020.1\&mainFile=)

## الأطوال

الأطوال هي وحدات مسافة نسبية بالنسبة إلى بعض عناصر المستند. يمكن تغيير الأطوال بواسطة الأمر:

```latex
\setlength{\lengthname}{value_in_specified_unit}
```

على سبيل المثال، في مستند ذي عمودين يمكن ضبط الفصل بين العمودين على 1 بوصة بواسطة:

```latex
\setlength{\columnsep}{1in}
```

![LengthsEx2.png](/files/f14886be2e990184dc46214ad157367342cb884f)

فيما يلي جدول يضم بعض الأطوال الأكثر شيوعًا ووصفها

| الطول             | الوصف                                                                   |
| ----------------- | ----------------------------------------------------------------------- |
| `\baselineskip`   | المسافة الرأسية بين الأسطر في فقرة                                      |
| `\columnsep`      | المسافة بين الأعمدة                                                     |
| `\columnwidth`    | عرض العمود                                                              |
| `\evensidemargin` | هامش الصفحات الزوجية، ويُستخدم عادةً في المستندات ذات الوجهين مثل الكتب |
| `\linewidth`      | عرض السطر في البيئة الحالية.                                            |
| `\oddsidemargin`  | هامش الصفحات الفردية، ويُستخدم عادةً في المستندات ذات الوجهين مثل الكتب |
| `\paperwidth`     | عرض الصفحة                                                              |
| `\paperheight`    | ارتفاع الصفحة                                                           |
| `\parindent`      | إزاحة الفقرة                                                            |
| `\parskip`        | المسافة الرأسية بين الفقرات                                             |
| `\tabcolsep`      | الفاصل بين الأعمدة في جدول (بيئة tabular)                               |
| `\textheight`     | ارتفاع منطقة النص في الصفحة                                             |
| `\textwidth`      | عرض منطقة النص في الصفحة                                                |
| `\topmargin`      | طول الهامش العلوي                                                       |

[افتح مثالًا في Overleaf](https://www.overleaf.com/project/new/template/19506?id=65960656\&templateName=Length+types+and+values+in+LaTeX\&latexEngine=pdflatex\&texImage=texlive-full%3A2020.1\&mainFile=)

## استخدام الأطوال كوحدات

يمكن ضبط الأطوال الافتراضية على أي قيمة مرغوبة حتى حد أقصى يقارب 16384pt (أو 5.75 متر)، وهو حد ثابت مدمج في محركات TeX. ويمكن أيضًا استخدام معاملات الأطوال في LaTeX كوحدات لضبط أبعاد عناصر LaTeX الأخرى. على سبيل المثال، يمكنك ضبط صورة ليكون عرضها ربع العرض الكلي للنص:

```latex
\includegraphics[width=0.25\textwidth]{overleaf-logo}
[...]
```

![LengthsEx3OverleafV2.png](/files/2d93b7c9180fc420738d5f85aabdd1b1150e1c81)

في الأمر `\includegraphics` يُضبط العرض على 0.25 من عرض منطقة النص بالكامل (انظر [إدراج الصور](/latex/ar/mzyd-mn-almwdhwaat/27-inserting-images.md) للمزيد من المعلومات حول هذا الأمر). يمكنك استخدام أي طول وضربه بأي عامل.

[افتح مثالًا في Overleaf](https://www.overleaf.com/project/new/template/19506?id=65960656\&templateName=Length+types+and+values+in+LaTeX\&latexEngine=pdflatex\&texImage=texlive-full%3A2020.1\&mainFile=)

## قراءة إضافية

لمزيد من المعلومات، انظر [المقالة حول الأطوال على ويكي الكتب](http://en.wikibooks.org/wiki/LaTeX/Lengths).


---

# 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/altnsyq/01-lengths-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.
