> 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/bnyh-almstnd/03-cross-referencing-sections-equations-and-floats.md).

# الإحالات المتقاطعة للأقسام والمعادلات والعناصر العائمة

إذا كنت بحاجة إلى إدراج مراجع متقاطعة لعناصر مرقمة في المستند، (مثل المعادلات والأقسام والأشكال) فهناك أوامر لأتمتة ذلك في LaTeX. تشرح هذه المقالة كيفية ذلك.

## مقدمة

أدناه يمكنك رؤية مثال بسيط على مراجع متقاطعة للأشكال بحسب أرقام تسميات الأشكال:

```latex
\section{مقدمة} \label{introduction}
هذه فقرة تمهيدية تحتوي على بعض النصوص الوهمية. سيُشار إلى هذا القسم لاحقًا.

\begin{figure}[h]
\centering
\includegraphics[width=0.3\linewidth]{overleaf-logo}
\caption{ستُشار إلى هذه الصورة أدناه.}
\label{fig:leaf}
\end{figure}

يمكنك الإشارة إلى الصور؛ على سبيل المثال، يوضح الشكل \ref{fig:leaf} شعار \textit{Overleaf}.
```

![CrossReferencesEx1Overleaf.png](/files/8e39edf75faced58751db1d2571fcfe5c57c3f2b)

الأمر `\label{ }` تُستخدم لتعيين معرّف بعد التسمية التوضيحية، ويُستخدم لاحقًا في الأمر `\ref{ }` لتعيين المرجع.

[افتح مثالًا في Overleaf](https://www.overleaf.com/project/new/template/19401?id=65465598\&templateName=Cross+referencing+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

## الإشارة إلى الأقسام والفصول

فيما يلي مثال على كيفية الإشارة إلى قسم

```latex
\section{مقدمة} \label{introduction}
هذه فقرة تمهيدية تحتوي على بعض النصوص الوهمية. سيُشار إلى هذا القسم لاحقًا.

\begin{figure}[h]
\centering
\includegraphics[width=0.3\linewidth]{overleaf-logo}
\caption{ستُشار إلى هذه الصورة أدناه.}
\label{fig:leaf}
\end{figure}

يمكنك الإشارة إلى الصور؛ على سبيل المثال، يوضح الشكل \ref{fig:leaf} شعار \textit{Overleaf}.
\vspace{0.5cm}

\section{مراجع الرياضيات} \label{mathrefs}
كما ذُكر في القسم \ref{introduction}، يمكن الإشارة إلى عناصر مختلفة داخل المستند.
```

![CrossReferencesEx3Overleaf.png](/files/ba600a329394ef0ce61cf193a63b54d861e518f9)

مرة أخرى، تُستخدم الأوامر `\label` و `\ref` للإحالات. و *label* يُوضع بعد `\section` العبارة، أي إن `\label` يجب إضافة الأمر بعد أن يتم توليد رقم العداد للقسم. ويعمل هذا أيضًا على الفصول، والأقسام الفرعية، والأقسام الفرعية الفرعية. انظر [الأقسام والفصول](/latex/ar/bnyh-almstnd/01-sections-and-chapters.md).

[افتح مثالًا في Overleaf](https://www.overleaf.com/project/new/template/19401?id=65465598\&templateName=Cross+referencing+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

## الإشارة إلى المعادلات والأشكال والجداول

في [المقدمة](#introduction) تم عرض مثال على صورة تمت الإشارة إليها، وفيما يلي يتم عرض الإشارة المتقاطعة إلى المعادلات.

```latex
\section{مراجع الرياضيات} \label{mathrefs}
كما ذُكر في القسم \ref{introduction}، يمكن الإشارة إلى عناصر مختلفة داخل المستند.

\subsection{متسلسلة القوى} \label{subsection}

\begin{equation} \label{eq:1}
\sum_{i=0}^{\infty} a_i x^i
\end{equation}

المعادلة \ref{eq:1} هي متسلسلة قوى نموذجية.
```

![CrossReferencesEx2Overleaf.png](/files/dfc2557501f3cb49aa3d3a6562bcec9f65e474c5)

لمزيد من الأمثلة الأكثر مرونة مع التسميات والمراجع، انظر

* [محاذاة المعادلات باستخدام amsmath](/latex/ar/alryadhyat/06-aligning-equations-with-amsmath.md)
* [الجداول](/latex/ar/alashkal-waljdawl/01-tables.md)
* [إدراج الصور](/latex/ar/mzyd-mn-almwdhwaat/27-inserting-images.md)

[افتح مثالًا في Overleaf](https://www.overleaf.com/project/new/template/19401?id=65465598\&templateName=Cross+referencing+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

## الإشارة إلى صفحة عنصر

عادةً ما يُشار إلى العناصر برقم يُخصَّص لها، ولكن إذا احتجت إلى ذلك، يمكنك إدراج الصفحة التي تظهر فيها.

```latex
\section{مراجع الرياضيات} \label{mathrefs}
كما ذُكر في القسم \ref{introduction}، يمكن الإشارة إلى عناصر مختلفة داخل المستند.

\subsection{متسلسلة القوى} \label{subsection}

\begin{equation} \label{eq:1}
\sum_{i=0}^{\infty} a_i x^i
\end{equation}

المعادلة \ref{eq:1} هي متسلسلة قوى نموذجية.
\vspace{0.5cm}

%\Blindtext

\section{القسم الأخير}
في القسم الفرعي \ref{subsection} على الصفحة \pageref{eq:1} قُدِّم مثال على متسلسلة قوى.
```

![CrossReferencesEx4Overleaf.png](/files/ba43442b107ac283e63ceb95c9087347f0bca0f6)

الأمر `\pageref` سيُدرج الصفحة التي يوجد فيها العنصر الذي *label* يُستخدم. في المثال أعلاه المعادلة 1. يمكن استخدام هذا الأمر مع جميع العناصر المرقمة الأخرى المذكورة في هذه المقالة.

[افتح مثالًا في Overleaf](https://www.overleaf.com/project/new/template/19401?id=65465598\&templateName=Cross+referencing+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

## تجميع المستندات مع المراجع المتقاطعة

في Overleaf تعمل المراجع المتقاطعة فورًا، ولكن لكي تعمل المراجع المتقاطعة بشكل صحيح في توزيعة LaTeX المحلية لديك يجب أن تُجمِّع المستند مرتين. وهناك أيضًا أمر يمكنه تنفيذ ذلك تلقائيًا لعمل جميع المراجع. على سبيل المثال، إذا كان مستندك محفوظًا باسم `main.tex`.

`latexmk -pdf main.tex`

فسيُنشئ الملف `main.pdf` مع عمل جميع المراجع المتقاطعة. لتغيير صيغة الإخراج استخدم `-dvi` أو `-ps`.

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

لمزيد من المعلومات، انظر:

* [إنشاء مستند في LaTeX](/latex/ar/asasyat-latex/01-learn-latex-in-30-minutes.md)
* [التعابير الرياضية](/latex/ar/alryadhyat/01-mathematical-expressions.md)
* [محاذاة المعادلات باستخدام amsmath](/latex/ar/alryadhyat/06-aligning-equations-with-amsmath.md)
* [إدراج الصور](/latex/ar/mzyd-mn-almwdhwaat/27-inserting-images.md)
* [تموضع الصور والجداول](/latex/ar/alashkal-waljdawl/02-positioning-images-and-tables.md)
* [الفهارس](/latex/ar/bnyh-almstnd/04-indices.md)
* [المسارد](/latex/ar/bnyh-almstnd/05-glossaries.md)
* [جدول المحتويات](/latex/ar/bnyh-almstnd/02-table-of-contents.md)
* [الإدارة في مشروع كبير](/latex/ar/bnyh-almstnd/07-management-in-a-large-project.md)
* [مشاريع LaTeX متعددة الملفات](/latex/ar/bnyh-almstnd/08-multi-file-latex-projects.md)
* [الروابط التشعبية](/latex/ar/bnyh-almstnd/09-hyperlinks.md)
* [العدادات](/latex/ar/altnsyq/10-counters.md)
* [المقدمة التي ليست قصيرة جدًا إلى LaTeX2ε](http://www.ctan.org/tex-archive/info/lshort/)


---

# 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/bnyh-almstnd/03-cross-referencing-sections-equations-and-floats.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.
