> 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/almraja-walastshhadat/06-natbib-citation-styles.md).

# أنماط الاستشهاد Natbib

يستخدم Natbib نمط الاستشهاد المرتبط بـ [نمط المراجع](/latex/ar/almraja-walastshhadat/04-bibtex-bibliography-styles.md#natbib-styles) إذا لم يتم تعريف أوامر استشهاد محددة. توجد بعض الأوامر الإضافية للتحكم في بعض معلمات علامات الترقيم. انظر المثال أدناه:

```latex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

%استيراد حزمة natbib وتعيين أنماط المراجع والاستشهاد
\usepackage{natbib}
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={((},close={))}} %أوامر متعلقة بالاستشهاد

\title{مثال على Natbib}

\author{فريق Overleaf}

\begin{document}

\maketitle

\section{القسم الأول}
هذه الوثيقة مثال يحتوي على عنصرين مستشهد بهما: \textit{The \LaTeX\ Companion} كتاب \cite[see][chap 2]{latexcompanion} وورقة أينشتاين في مجلة \citep{einstein}.

%يستورد ملف المراجع "sample.bib"
\bibliography{sample}

\end{document}
```

![CitationStylesEx1Overleaf.png](/files/4eccbd9f1efb8ba0bfd536caa93e4e7d9900b5b7)

الأمر المحدد لتنسيق نمط الاستشهاد هو:

```latex
\setcitestyle{authoryear, open={((},close={))}
```

تخبر المعلمات، المفصولة بفواصل، LaTeX باستخدام *authoryear* وضع الاستشهاد واستخدام قوسين مزدوجين كعلامتي فتح وإغلاق. المعلمات المختلفة التي يمكن تمريرها إلى هذا الأمر هي التالية:

* وضع الاستشهاد: `authoryear`, `أرقام` أو `فوقي`.
* الأقواس: `دائرية` أو `مربعة`. يمكنك تعيين أي أحرف فتح وإغلاق أخرى يدويًا باستخدام `open={char}` و `close={char}`.
* فاصل الاستشهاد: `فاصلة منقوطة`, `فاصلة`.
* الفاصل بين المؤلف والسنة: `aysep{char}`.
* الفاصل بين السنوات ذات المؤلف المشترك: `yysep={char}`.
* النص قبل الملاحظة اللاحقة: `notesep={text}`.

توجد أوامر استشهاد إضافية أخرى تعتمد على وضع الاستشهاد. على سبيل المثال، في المثال أعلاه، الأمر `\cite[see][chap 2]{latexcompanion}` يأخذ معاملين إضافيين؛ المعامل الاختياري الأول *انظر* يُطبع قبل علامة الاستشهاد، والمعامل الاختياري الثاني *الفصل 2* يُطبع بعد علامة الاستشهاد. فيما يلي جدول يصف بعض أوامر الاستشهاد الإضافية:

| الأمر           | الوصف                                                         |
| --------------- | ------------------------------------------------------------- |
| `\citet{}`      | استشهاد نصي                                                   |
| `\citep{}`      | استشهاد بين قوسين                                             |
| `\citet*{}`     | مثل `\citet` ولكن إذا كان هناك عدة مؤلفين، تُطبع جميع الأسماء |
| `\citep*{}`     | مثل `\citep` ولكن إذا كان هناك عدة مؤلفين، تُطبع جميع الأسماء |
| `\citeauthor{}` | يطبع فقط اسم المؤلف(ين)                                       |
| `\citeyear{}`   | يطبع فقط سنة النشر.                                           |

لمزيد من المعلومات حول بقية الأوامر في هذا المثال، انظر [إدارة الببليوغرافيا باستخدام natbib](/latex/ar/almraja-walastshhadat/02-bibliography-management-with-natbib.md)

[افتح مثالًا على `natbib` الحزمة في Overleaf](https://www.overleaf.com/project/new/template/19422?id=65532643\&templateName=Natbib+citation+styles+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

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

* [إدارة الببليوغرافيا باستخدام natbib](/latex/ar/almraja-walastshhadat/02-bibliography-management-with-natbib.md)
* [أنماط مراجع Natbib](/latex/ar/almraja-walastshhadat/05-natbib-bibliography-styles.md)
* [توثيق حزمة Natbib](http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/natbib/natbib.pdf)
* [دعم اللغات الدولية](/latex/ar/allghat/03-international-language-support.md)
* [الإدارة في مشروع كبير](/latex/ar/bnyh-almstnd/07-management-in-a-large-project.md)
* [جدول المحتويات](/latex/ar/bnyh-almstnd/02-table-of-contents.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/almraja-walastshhadat/06-natbib-citation-styles.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.
