> 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/mzyd-mn-almwdhwaat/40-multibib.md).

# Multibib

Multibib هي حزمة LaTeX يمكن استخدامها لإنشاء عدة قوائم مراجع في ورقة. وهي مفيدة لإنشاء عدة قوائم مراجع، على سبيل المثال واحدة تحتوي على مقالات المجلات، وأخرى تحتوي على مراجع الكتب الدراسية، وأخرى تحتوي على مراجع للبراءات؛ وهكذا.

تستخدم الحزمة الأمر \newcites من أجل إنشاء عدة عناوين ووضع الاستشهادات المناسبة تحت كل عنوان. وتُستدعى الحزمة في المقدمة باستخدام أمر قياسي - في هذه الحالة \usepackage{multibib}.

ويلي ذلك الأمر \newcites، بإنشاء مثيل واحد لكل نوع من قوائم المراجع المطلوبة.

على سبيل المثال، يمكن إنشاء قائمتين للمراجع، واحدة لمصادر الكتب وأخرى لمقالات المجلات، باستخدام تسلسل LaTeX التالي في المقدمة:

```latex
\usepackage{multibib}
\newcites{book}{مراجع الكتب}
\newcites{journal}{مراجع المجلات}
```

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

```latex
تستشهد هذه الجملة بكتاب هنا \footcitebook{Walpol:2005} وتستشهد بمقال مجلة هنا \footcitejournal{Steinbeck:2013}.
```

تُنشأ قائمة المراجع بوضع التسلسل التالي في نهاية المستند أو في نهاية أي قسم مطلوب:

```latex
\bibliographystylebook{plain}
\bibliographybook{all}
\bibliographystylejournal{plain}
\bibliographyjournal{all}
```

ويلي ذلك تشغيل bibtex مرة واحدة لكل مثيل من قائمة المراجع المراد إنشاؤها. في هذه الحالة يوجد اثنتان، لذا يجب تشغيل bibtex مرتين كما يلي:

```latex
% bibtex book
% bibtex journal
```

أخيرًا، يجب تجميع ملف `.tex` مرتين في هذا المثال. *ينفذ Overleaf هذه الخطوات ويكررها تلقائيًا حسب الحاجة، لذلك لن تحتاج إلى تشغيلها يدويًا بنفسك.*

فيما يلي مثال على كود LaTeX كامل يحتوي على قائمتين للمراجع:

```latex
\documentclass{article}
\usepackage{multibib}
\newcites{book}{مراجع الكتب}
\newcites{journal}{مراجع المجلات}

\begin{document}
أحد أكثر المؤلفات المرجعية موثوقية عن ظاهرة
رنين البلازمون السطحي كتبه \cite{Homola:2006}.
ونُشر مقال في مجلة حول الموضوع نفسه بواسطة \cite{Merwe:2012}.
```

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

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

* [مثال Multibib في معرض Overleaf](https://www.overleaf.com/latex/examples/multiple-bibliographies-with-multibib/fzmrrgbcvqhf)


---

# 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/mzyd-mn-almwdhwaat/40-multibib.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.
