> 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/24-missing-right-inserted.md).

# تم إدراج \right المفقود

يحدث هذا الخطأ عند تنضيد الرياضيات إذا كان `\left` الأمر مستخدمًا ولكن الأمر المقابل `\right` مفقودًا. تتحدث هذه المقالة عن الأسباب الشائعة لهذا الخطأ وكيفية إصلاحها.

## مقدمة موجزة إلى الأمرين \left و \right

ال `\left` و `\right` تُنسِّق الأوامر محددات ذات حجم ديناميكي ويجب استخدامها معًا، ضمن المادة الرياضية، بالشكل

$$\verb'\left'\thinspace\textit{delim}*{\thinspace\text{L}}\quad\textit{math expression}\quad \verb'\right'\thinspace\textit{delim}*{\thinspace\text{R}}$$

حيث $$\textit{delim}*{\thinspace\text{L}}$$ و $$\textit{delim}*{\thinspace\text{R}}$$ هي محددات تُستخدم لإحاطة $$\textit{math expression}$$، وعادةً، $$\textit{delim}*{\thinspace\text{L}}$$ و $$\textit{delim}*{\thinspace\text{R}}$$ هي أحد الأحرف `() [] | \| \{ \}` أو النقطة ‘`.`’، والتي تُستخدم كـ «[محدد فارغ](#forgetting-a-blank-delimiter)».

### مثال

إليك مثالًا باستخدام `\left` و `\right` لتنضيد الأقواس التي تُحيط بكسر بالكامل:

```latex
\[
  \left(\frac{x}{y} \right)
\]
```

ينتج هذا الرمز $$\left(\frac{x}{y}\right)$$

إذا لم تستخدم `\left` و `\right` الأوامر عند وضع المحددات، بما في ذلك الأقواس، فلن تُحيط تلك المحددات بالتعبير الرياضي إحاطةً كاملة؛ على سبيل المثال، كتابة

```latex
\[
  (\frac{x}{y})
\]
```

ينتج هذا

$$(\frac{x}{y})$$

## أسباب هذا الخطأ وبعض الحلول

### نسيان تضمين الأمر \right

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

```latex
\[
\pi =
\left( \int_{-\infty}^{+\infty} e^{-x^2} dx )
\]
```

[افتح هذا **المولِّد للخطأ** المثال في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+demonstrating+a+missing+delimiter\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5C%5B+%0A%5Cpi+%3D+%0A%5Cleft%28+%5Cint_%7B-%5Cinfty%7D%5E%7B%2B%5Cinfty%7D+e%5E%7B-x%5E2%7D+dx+%29%0A%5C%5D%0A%5Cend%7Bdocument%7D)

لإصلاح تلك الأخطاء، أضف الأمر المفقود `\right` الأمر:

```latex
\[
\pi =
\left( \int_{-\infty}^{+\infty} e^{-x^2} dx \right)
\]
```

[افتح هذا **مثال مصحح** في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Correcting+a+missing+delimiter\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5C%5B+%0A%5Cpi+%3D+%0A%5Cleft%28+%5Cint_%7B-%5Cinfty%7D%5E%7B%2B%5Cinfty%7D+e%5E%7B-x%5E2%7D+dx+%5Cright%29%0A%5C%5D%0A%5Cend%7Bdocument%7D)

ينتج هذا الكود المخرجات التالية

$$\pi = \left( \int\_{-\infty}^{+\infty} e^{-x^2} dx \right)$$

### نسيان محدد فارغ

يحدث سبب شائع لهذا الخطأ عند محاولة كتابة دوال مثل الدالة الموضحة أدناه:

$$f(x)= \left{\begin{array}{lr} 0 & x\leq 0 \ 1 & x > 0 \end{array}\right.$$

إذا حاولت تنضيد هذه الدالة بكتابة

```latex
\[
f(x)= \left\{
  \begin{array}{lr}
      0 & x\leq 0 \\
      1 & x > 0
      \end{array}
\]
```

[افتح هذا **المولِّد للخطأ** المثال في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+showing+a+missing+%5Cright+command\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5C%5B+%0Af%28x%29%3D+%5Cleft%5C%7B%0A++%5Cbegin%7Barray%7D%7Blr%7D+%0A++++++0+%26+x%5Cleq+0+%5C%5C%0A++++++1+%26+x+%3E+0+%0A++++++%5Cend%7Barray%7D%0A%5C%5D%0A%5Cend%7Bdocument%7D)

فسوف تظهر أخطاء لأن `\right` المحدد مفقود.

لتنضيد `\left` محدد فقط، استخدم حرف نقطة (‘`.`’) بوصفه `\right` المحدد بكتابة `\right.` الذي، كما هو موضح أدناه، ينضد محددًا فارغًا، أي «null».

```latex
\[
f(x)= \left\{
  \begin{array}{lr}
      0 & x\leq 0 \\
      1 & x > 0
      \end{array}
\right.
\]
```

[افتح هذا **مصحح** المثال في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+the+dot+delimiter\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5C%5B+%0Af%28x%29%3D+%5Cleft%5C%7B%0A++%5Cbegin%7Barray%7D%7Blr%7D+%0A++++++0+%26+x%5Cleq+0+%5C%5C%0A++++++1+%26+x+%3E+0+%0A++++++%5Cend%7Barray%7D%0A%5Cright.%0A%5C%5D%0A%5Cend%7Bdocument%7D)

ينتج هذا المثال المصحح النتيجة المطلوبة:

$$f(x)= \left{\begin{array}{lr} 0 & x\leq 0 \ 1 & x > 0 \end{array}\right.$$

#### خيار آخر: استخدم بيئة cases

يمكنك تجنب الاستخدام المباشر لـ `\left` و `\right` الأوامر عبر بيئة cases التي توفرها `amsmath` الحزمة. يمكن تنضيد دالتنا كما هو موضح أدناه:

```latex
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
f(x)= \begin{cases}
      0 & x\leq 0 \\
      1 & x > 0
      \end{cases}
\]
\end{document}
```

[افتح هذا المثال في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+the+amsmath+cases+environment\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0A%5C%5B+%0Af%28x%29%3D+%5Cbegin%7Bcases%7D+%0A++++++0+%26+x%5Cleq+0+%5C%5C%0A++++++1+%26+x+%3E+0+%0A++++++%5Cend%7Bcases%7D%0A%5C%5D%0A%5Cend%7Bdocument%7D)

### استخدام فواصل الأسطر داخل الأمرين \left و \right

عند كتابة معادلات متعددة الأسطر باستخدام `amsmath` بيئات الحزمة `align`, `align*` أو `aligned`، و `\left` و `\right` الأوامر يجب أن تكون متوازنة *في كل سطر وعلى نفس جانب `&`*. سيولّد LaTeX سلسلة من الأخطاء إذا حاولت تضمين فواصل أسطر بين أزواج من `\left` و `\right` الأوامر.

يستخدم المقتطف البرمجي التالي فاصل سطر (`\\`) بين `\left` و `\right` الأوامر، مما يؤدي إلى فشله مع ظهور أخطاء:

```latex
\begin{align*}
y  = 1 + & \left(  \frac{1}{x} + \frac{1}{x^2} + \frac{1}{x^3} + \cdots  \\
  & \quad  + \frac{1}{x^{n-1}} + \frac{1}{x^n} \right)
\end{align*}
```

[افتح هذا **المولِّد للخطأ** مقتطف LaTeX في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=brackets+and+parentheses+example+with+errors\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Balign%2A%7D%0Ay++%3D+1+%2B+%26+%5Cleft%28++%5Cfrac%7B1%7D%7Bx%7D+%2B+%5Cfrac%7B1%7D%7Bx%5E2%7D+%2B+%5Cfrac%7B1%7D%7Bx%5E3%7D+%2B+%5Ccdots++%5C%5C%0A++%26+%5Cquad++%2B+%5Cfrac%7B1%7D%7Bx%5E%7Bn-1%7D%7D+%2B+%5Cfrac%7B1%7D%7Bx%5En%7D+%5Cright%29%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

#### كيفية إصلاح هذه الأخطاء: حلّان

**الحل 1: استخدم محددات فارغة**

يستخدم هذا الحل محددات فارغة بإضافة `\right.` في نهاية السطر الأول، و `\left.` في بداية السطر الثاني، بعد `&`:

```latex
\begin{align*}
y  = 1 + & \left(  \frac{1}{x} + \frac{1}{x^2} + \frac{1}{x^3} + \cdots \right. \\
  &\left. \quad + \frac{1}{x^{n-1}} + \frac{1}{x^n} \right)
\end{align*}
```

[افتح هذا **مصحح** مقتطف LaTeX في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Line+breaks+and+delimiters\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Balign%2A%7D%0Ay++%3D+1+%2B+%26+%5Cleft%28++%5Cfrac%7B1%7D%7Bx%7D+%2B+%5Cfrac%7B1%7D%7Bx%5E2%7D+%2B+%5Cfrac%7B1%7D%7Bx%5E3%7D+%2B+%5Ccdots+%5Cright.+%5C%5C%0A++%26%5Cleft.+%5Cquad+%2B+%5Cfrac%7B1%7D%7Bx%5E%7Bn-1%7D%7D+%2B+%5Cfrac%7B1%7D%7Bx%5En%7D+%5Cright%29%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

ينتج هذا المثال المخرجات التالية:

$$\begin{align\*} y = 1 + & \left( \frac{1}{x} + \frac{1}{x^2} + \frac{1}{x^3} + \cdots \right. \ &\left. \quad + \frac{1}{x^{n-1}} + \frac{1}{x^n} \right)\end{align\*}$$

**الحل 2: اختر أحجام المحددات يدويًا**

يمكننا استخدام `\biggl(` و `\biggr)` لأنها ستعمل عبر فاصل السطر:

```latex
\begin{align*}
y  = 1 + & \biggl(  \frac{1}{x} + \frac{1}{x^2} + \frac{1}{x^3} + \cdots  \\
  & \quad + \frac{1}{x^{n-1}} + \frac{1}{x^n} \biggr)
\end{align*}
```

[افتح هذا **مصحح** مقتطف LaTeX في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Line+breaks+and+delimiters+example+2\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Balign%2A%7D%0Ay++%3D+1+%2B+%26+%5Cbiggl%28++%5Cfrac%7B1%7D%7Bx%7D+%2B+%5Cfrac%7B1%7D%7Bx%5E2%7D+%2B+%5Cfrac%7B1%7D%7Bx%5E3%7D+%2B+%5Ccdots++%5C%5C%0A++%26+%5Cquad+%2B+%5Cfrac%7B1%7D%7Bx%5E%7Bn-1%7D%7D+%2B+%5Cfrac%7B1%7D%7Bx%5En%7D+%5Cbiggr%29%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

ينتج هذا الحل النتيجة نفسها:

$$\begin{align\*}y = 1 + & \left( \frac{1}{x} + \frac{1}{x^2} + \frac{1}{x^3} + \cdots \right. \ &\left. \quad + \frac{1}{x^{n-1}} + \frac{1}{x^n} \right)\end{align\*}$$

#### بعض الملاحظات حول اختيار أحجام المحددات يدويًا

يوفر LaTeX عددًا من الأوامر لـ [تعيين حجم المحدد يدويًا](/latex/ar/alryadhyat/03-brackets-and-parentheses.md#reference-guide). المحددات التي تختارها تلك الأوامر ذات حجم ثابت — فهي *تحتوي* تُحجَّم ديناميكيًا لتناسب التعبير الرياضي الذي تُحيط به. وتمتاز بأنها لا تحتاج إلى أن تُقرن بالطريقة نفسها كما هو الحال مع `\left` و `\right` الأوامر.

أحجام المحدد، بترتيب تصاعدي، هي `\big`, `\Big`, `\bigg`، و `\Bigg`؛ على سبيل المثال:

| ترميز LaTeX                     | يُعرض كـ                                           |
| ------------------------------- | -------------------------------------------------- |
| `\bigl( \Bigl( \biggl( \Biggl(` | $$\displaystyle\bigl(; \Bigl(; \biggl(; \Biggl($$  |
| `\bigr) \Bigr) \biggr) \Biggr)` | $$\displaystyle\bigr); \Bigr); \biggr); \Biggr);$$ |


---

# 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/24-missing-right-inserted.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.
