\bibliography{references}

LaTeX قائمة المراجع

دليل كامل لإدارة المراجع في LaTeX، من ملف BibTeX .bib البسيط إلى سير العمل الحديث BibLaTeX مع Biber. يشمل أنواع المدخلات وأوامر الاقتباس وأنماط قائمة المراجع وترتيب التجميع الصحيح.

BibTeX— قديم، ومدعوم على نطاق واسعBibLaTeX— حديث، وموصى به

أيهما تستخدم؟

استخدم BibLaTeX مع Biber في المشاريع الجديدة. فهو يدعم أنواع مدخلات أكثر وأنماط اقتباس مرنة وقوائم مراجع لكل فصل وصيانة نشطة. أما BibTeX فقديم لكنه لا يزال مدعومًا على نطاق واسع، وهو مطلوب لإيداعات arXiv وقوالب المجلات الأقدم.

\section{بداية سريعة}

بداية سريعة مع BibTeX

ملفان: قاعدة بيانات .bib ومستندك .tex .

الخطوة 1 — أنشئ references.bib

% references.bib
@article{einstein1905,
  author  = {Einstein, Albert},
  title   = {On the Electrodynamics of Moving Bodies},
  journal = {Annalen der Physik},
  year    = {1905},
  volume  = {17},
  pages   = {891--921}
}

@book{knuth1984,
  author    = {Knuth, Donald E.},
  title     = {The \TeX{}book},
  publisher = {Addison-Wesley},
  year      = {1984}
}

الخطوة 2 — أشر إليه في مستندك

\documentclass{article}
\usepackage{natbib}

\begin{document}

Einstein's theory of special relativity \citep{einstein1905} revolutionized physics.
The \TeX{}book by \citet{knuth1984} is the definitive reference.

\bibliographystyle{plain}
\bibliography{references}

\end{document}

\section{أنواع المدخلات}

أنواع مدخلات BibTeX

أنواع المدخلات الشائعة وحقولها المطلوبة.

النوعالوصف
@articleمقال في مجلة
@bookكتاب منشور
@inproceedingsورقة مؤتمر
@thesisرسالة جامعية أو أطروحة
@onlineمورد ويب (BibLaTeX)
@miscمصدر متنوع

\section{أوامر الاقتباس}

أوامر الاقتباس

أوامر natbib لـ BibTeX، وأوامر biblatex لسير العمل الحديث.

الحزمةالأمر
natbib\cite{key}
natbib\citep{key}
natbib\citet{key}
natbib\citealp{key}
biblatex\autocite{key}
biblatex\textcite{key}
biblatex\parencite{key}

\section{النهج الحديث}

النهج الحديث: BibLaTeX

يحل BibLaTeX مع الواجهة الخلفية Biber محل سلسلة أدوات BibTeX القديمة. يدعم UTF-8 أصلًا، وأنواع مدخلات أكثر، وضبطًا مرنًا لنمط الاقتباس عبر خيارات الحزمة.

\documentclass{article}
\usepackage[
  backend=biber,
  style=authoryear,
  sorting=nyt
]{biblatex}

\addbibresource{references.bib}

\begin{document}

This result was shown by \textcite{einstein1905}.
For LaTeX fundamentals, see \autocite{knuth1984}.

\printbibliography

\end{document}

style=authoryear

اقتباسات المؤلف والسنة (Smith, 2024). الافتراضي في العلوم الإنسانية.

style=numeric

اقتباسات مرقّمة [1] و[2]. شائعة في العلوم والهندسة.

style=alphabetic

تسميات أبجدية رقمية [Ein05]. حل وسط بين الأسماء والأرقام.

\section{أنماط قائمة المراجع}

أنماط قائمة المراجع

النمطالحزمةالوصف
plainBibTeXمرقّم، بترتيب أبجدي
alphaBibTeXقائم على التسميات (مثل [Ein05])
abbrvBibTeXأسماء مؤلفين مختصرة
IEEEtranBibTeXنمط مجلات IEEE
authoryearBibLaTeXاقتباسات المؤلف والسنة (شبيهة بـ Chicago)
numericBibLaTeXاقتباسات مرقّمة
alphabeticBibLaTeXتسميات أبجدية رقمية

\section{ترتيب التجميع}

ترتيب التجميع

يتطلب LaTeX مع BibTeX عدة تمريرات لحل الاقتباسات وبناء قائمة المراجع.

الخطوة 1
pdflatex

يكتب .aux

الخطوة 2
bibtex

يقرأ .aux ← .bbl

الخطوة 3
pdflatex

يقرأ .bbl

الخطوة 4
pdflatex

يحل المراجع

أو أتمت ذلك باستخدام latexmk -pdf ، وراجع دليل latexmk للتفاصيل.

\section{أخطاء شائعة}

أخطاء شائعة

Missing \bibliography command

BibTeX only generates the bibliography where \bibliography{filename} appears. Without it, no reference list is printed, even if \cite commands are present.

الإصلاح:Add \bibliographystyle{plain} and \bibliography{references} before \end{document}.

اسم ملف .bib خاطئ

\bibliography{references} expects a file named references.bib in the same directory. A mismatch produces a "I found no \bibstyle command" or similar error.

الإصلاح:Ensure the filename in \bibliography{} exactly matches your .bib file, without the .bib extension.

عدم تشغيل BibTeX

لا يعالج LaTeX وحده ملفات .bib. وتخطي تشغيل bibtex يترك الاقتباسات على شكل [?] ويحذف قائمة المراجع، وهو خطأ شائع جدًا بين المبتدئين.

الإصلاح:شغّل: pdflatex → bibtex → pdflatex → pdflatex. أو استخدم latexmk -pdf لأتمتة ذلك.

\begin{document}

جمّع قائمة المراجع عبر الإنترنت

يشغّل FormaTeX محرك pdfLaTeX مع BibTeX تلقائيًا. الصق مصدر .tex واحصل على PDF دون الحاجة إلى تثبيت محلي.