ביבליוגרפיה ב-LaTeX עם BibTeX, natbib ו-biblatex
שמים את המקורות בקובץ .bib בפרויקט, מצטטים אותם עם \cite{key} (או \citep, \citet, \parencite, \textcite), וכותבים \bibliography{...} או \printbibliography במקום שבו רשימת המקורות צריכה להופיע.
קובץ ה-.bib
קובץ .bib מכיל רשומה אחת לכל מקור. לכל רשומה יש סוג (@article, @book, @inproceedings, @misc ...), מפתח שבאמצעותו מצטטים אותה, ושדות כמו מחבר, כותר ושנה. הדוגמאות בדף הזה משתמשות בקובץ הזה, refs.bib:
@article{doe2024,
author = {John Doe and Erika Mustermann},
title = {Measuring Things Carefully},
journal = {Journal of Examples},
year = {2024},
volume = {44},
pages = {1--12}
}
@book{mustermann2021,
author = {Erika Mustermann},
title = {A Short Book on Long Tables},
publisher = {Example Press},
address = {Berlin},
year = {2021}
}מוסיפים את הקובץ לפרויקט כמו כל קובץ אחר. Scissor LaTeX קורא כל קובץ .bib בפרויקט וממזג אותם, כך ששם הקובץ ב-\bibliography{refs} או ב-\addbibresource{refs.bib} לא חייב להתאים. כדי לנקות, למיין ולהסיר כפילויות מקובץ .bib מראש, משתמשים במעצב ה-BibTeX; מנקה מפתחות הציטוט הופך את המפתחות לאחידים.
BibTeX פשוט: \cite ו-\bibliography
הדרך הקלאסית היא \cite{key} בטקסט, ואחר כך \bibliographystyle{...} ו-\bibliography{...} במקום שבו הרשימה צריכה להופיע.
\cite עם סגנון ממוספר
Careful measuring is discussed by \cite{doe2024}, and long tables
in \cite[p.~44]{mustermann2021}.
\bibliographystyle{plain}
\bibliography{refs}רק המקורות שמצטטים מופיעים ברשימה. כדי לכלול מקור שלא מצטטים, כותבים \nocite{key}; \nocite{*} מציג את כל הרשומות של קובצי ה-.bib, כמו בהתקנת TeX.
natbib: ציטוטים בשיטת מחבר-שנה
עם natbib וסגנון מחבר-שנה כמו plainnat, \citet נותן ציטוט כחלק מהמשפט ("Doe and Mustermann (2024)"), ו-\citep נותן ציטוט בסוגריים.
\citet ו-\citep עם plainnat
\citet{doe2024} measured carefully. Tables can be long
\citep{mustermann2021}, and plots can explain themselves
\citep[p.~44]{mustermann2023}.
\bibliographystyle{plainnat}
\bibliography{refs}biblatex: \parencite ו-\textcite
מי שמשתמש ב-biblatex טוען את החבילה, מציין את קובץ ה-.bib עם \addbibresource ומדפיס את הרשימה עם \printbibliography.
biblatex עם \parencite ו-\textcite
\documentclass{article}
\usepackage{biblatex}
\addbibresource{refs.bib}
\begin{document}
\textcite{doe2025} keeps notes on typesetting.
Plots can explain themselves \parencite{mustermann2023}.
\printbibliography
\end{document}פקודות ציטוט
| פקודה | ב-Scissor LaTeX | הערות |
|---|---|---|
\cite{key}, \cite{a,b} | עובד | כמה מפתחות מדפיסים ציטוט אחד לכל מפתח, זה לצד זה. |
\cite[p.~44]{key} | עובד | ההערה שאחרי המפתח ("p. 44") נכנסת לתוך הציטוט. |
\citep, \parencite, \autocite | עובד | בסוגריים; סגנונות ממוספרים מדפיסים מספר. |
\citep[see][p.~44]{key} | חלקית | ההערה שלפני ("see") מודפסת לפני הסוגריים, לא בתוכם. |
\citet, \textcite | עובד | כחלק מהמשפט: המחבר, ואחריו השנה או המספר. |
\citeauthor{key} | חלקית | מדפיס כמו \citet, ולא רק את השמות. |
\citeyear{key} | עובד | השנה בלבד. |
\citealt, \citealp, \citenum | חלקית | מודפסים כ-\cite רגיל. |
\footcite{key} | חלקית | מודפס בתוך השורה כציטוט רגיל, לא בהערת שוליים. |
\nocite{key} | עובד | מופיע ברשימה בלי ציטוט בטקסט. |
\nocite{*} | עובד | מציג את כל הרשומות של קובצי ה-.bib. |
סגנונות הפניה
השם ב-\bibliographystyle{...} בוחר את הסגנון. Scissor LaTeX ממפה את שמות הסגנונות הנפוצים של BibTeX לסגנונות דומים:
| \bibliographystyle{…} | התוצאה ב-Scissor LaTeX |
|---|---|
apalike, apa, apacite, authoryear | APA: author and year |
natbib, plainnat, abbrvnat, acl_natbib | Author and year, as natbib (plainnat) |
unsrtnat | Numbers in citation order, as unsrtnat |
ieeenat_fullname, ieee_fullname | IEEE: numbers in citation order |
splncs04, splncs03, splncs | Springer LNCS: numbers |
ACM-Reference-Format | ACM: numbers |
chicago, chicago-author-date | Chicago: author and date |
mla | MLA: author and page |
ieeetr, IEEEtran, ieee, plain, abbrv, unsrt, plainurl, abbrvurl, unsrturl, siam, acm | IEEE: numbers in citation order |
nature | Nature: superscript numbers |
vancouver | Vancouver: numbers |
harvard, agsm, dcu | Harvard: author and year |
apsrev4-2, apsrev4-1, apsrev, apsrmp4-2, apsrmp4-1, sn-aps | american-physics-society |
aipnum4-2, aipnum4-1, aipnum | american-institute-of-physics |
aipauth4-2, aipauth4-1 | Author and year, as natbib (plainnat) |
elsarticle-num, elsarticle-num-names, model1-num-names | elsevier-with-titles |
elsarticle-harv, model2-names | elsevier-harvard |
sn-mathphys-num, sn-mathphys | springer-mathphys |
sn-mathphys-ay, sn-basic, sn-vancouver-ay | springer-basic-author-date |
sn-vancouver-num, sn-vancouver | springer-vancouver |
sn-nature | Nature: superscript numbers |
sn-apacite, sn-apa | APA: author and year |
sn-chicago | Chicago: author and date |
amsplain, amsplainurl | AMS |
aa, aa-note, aa_url, aasjournalv7, aasjournal, aasjournal7, apj | APJ |
iopart-num, iopart | institute-of-physics-numeric |
mdpi | multidisciplinary-digital-publishing-institute |
plos2025, plos2015, plos2009 | plos |
icml…, iclr… (with a year) | Author and year, as natbib (plainnat) |
journal styles that number references (…-num, apsrev…, JHEP, aip…, achemso, siam…) | IEEE: numbers in citation order |
journal author-year styles (aasjournal…, …-harv, mnras, aa, agu, ametsoc) | Author and year, as natbib (plainnat) |
any other name (alpha, a project .bst …) | IEEE: numbers in citation order, with a note in the Problems tab |
plain, abbrv, unsrt ושאר הסגנונות הממוספרים הקלאסיים משתמשים בסגנון IEEE: מספרים בסוגריים מרובעים, לפי הסדר שבו המקורות מצוטטים לראשונה. כל שם שלא מופיע בטבלה, כמו alpha או amsalpha (שהתוויות שלהם נראות כמו [Knu84]) או קובץ .bst משלך, משתמש באותו סגנון ממוספר, ולשונית הבעיות מציינת זאת: "Bibliography style alpha is not available; using numbered references [1] instead". פריסות הכנסים בוחרות סגנון משלהן.
מקורות חסרים ו-thebibliography
מפתח שלא נמצא באף קובץ .bib מודפס כ-[key?] באדום, ולשונית הבעיות מציגה אותו:
מפתח שלא נמצא בקובץ ה-.bib
This is in the file \cite{doe2024}, this is not \cite{nobody2020}.
\bibliography{refs}לשונית הבעיות: Citations not found in the .bib file: nobody2020
רשומה בקובץ .bib שאי אפשר לקרוא, למשל רשומה שחסר בה סוגר מסולסל סוגר או מפתח שמופיע פעמיים, מושמטת לבדה: לשונית הבעיות מציינת אותה עם מספר השורה, למשל "Skipped .bib entries: doe2023 (line 12, a closing brace is missing)", ושאר הרשומות מצוטטות כרגיל.
רשימת thebibliography שנכתבה ביד מודפסת כרשימה, אבל אי אפשר לצטט את מפתחות ה-\bibitem שלה. כדי לצטט את הרשומות, מעבירים אותן לקובץ .bib.
מה שונה מהתקנת TeX
לחבילות עצמן, ראו natbib ו-biblatex. המדריכים המלאים נמצאים ב-CTAN: natbib, biblatex.
שאלות ותשובות
איך מוסיפים ביבליוגרפיה ב-LaTeX?
מוסיפים קובץ .bib לפרויקט, מצטטים רשומות עם \cite{key}, וכותבים \bibliography{refs} (או \printbibliography עם biblatex) במקום שבו הרשימה צריכה להופיע.
למה הציטוט שלי מוצג כ-[key?]?
המפתח לא נמצא באף קובץ .bib בפרויקט. בודקים את האיות, ובודקים שקובץ ה-.bib נוסף לפרויקט. לשונית הבעיות מציגה כל מפתח חסר.
מה ההבדל בין \citet ל-\citep?
\citet מיועד לציטוטים שהם חלק מהמשפט ("Doe and Mustermann (2024) show ..."). \citep שם את כל הציטוט בסוגריים.
צריך להריץ BibTeX?
לא. Scissor LaTeX קורא בעצמו את קובצי ה-.bib בכל פעם שהוא מסדר את המסמך, כך שהציטוטים ורשימת המקורות תמיד מעודכנים.
כל דוגמה בדף הזה מסודרת על ידי Scissor LaTeX בזמן בניית האתר. עודכן לאחרונה: 2026-11-07.