Aufbau einer .bib-Datei in LaTeX (Eintragstypen und Felder)

Eine .bib-Datei ist eine Textdatei mit einem Eintrag pro Quelle. Jeder Eintrag hat einen Typ wie @article, einen Schlüssel, den du in \cite verwendest, und eine Liste von Feldern in der Form name = {Wert}.

Die Teile eines Eintrags

Der Schlüssel folgt auf die öffnende Klammer; er muss eindeutig sein und enthält weder Leerzeichen noch Kommas. Die Felder werden durch Kommas getrennt. Mehrere Autoren verbindest du mit dem Wort and, jeden in der Form Nachname, Vorname. Ein Seitenbereich bekommt zwei Bindestriche.

@article{weber2019,
  author  = {Weber, Ben and Schmidt, Anna},
  title   = {Ultrasonic Sensors in Wind Tunnels},
  journal = {Journal of Example Studies},
  volume  = {12},
  number  = {3},
  pages   = {45--67},
  year    = {2019}
}

Häufige Eintragstypen

@book braucht author oder editor, title, publisher und year. @inproceedings ist ein Beitrag in einem Tagungsband, mit dem Titel des Bands in booktitle. @mastersthesis und @phdthesis nennen die Hochschule in school. @online ist für Webseiten, mit url und dem Abrufdatum in urldate. @incollection (ein Kapitel in einem Sammelband), @techreport und @misc folgen demselben Muster.

@book{schmidt2021,
  author    = {Schmidt, Anna},
  title     = {Wind Measurement in Practice},
  edition   = {2},
  publisher = {Example Press},
  address   = {Berlin},
  year      = {2021}
}

@inproceedings{keller2022,
  author    = {Keller, Mia and Weber, Ben},
  title     = {Filtering Noisy Wind Data},
  booktitle = {Proceedings of the 5th Example Conference on Sensors},
  pages     = {101--110},
  publisher = {Example Press},
  year      = {2022}
}

@mastersthesis{mueller2020,
  author = {Müller, Jörg},
  title  = {Kalibrierung von {Ultraschallsensoren}},
  school = {Example University},
  year   = {2020}
}

@online{keller2023,
  author  = {Keller, Mia},
  title   = {Calibrating a Wind Sensor},
  year    = {2023},
  url     = {https://www.example.org/calibration},
  urldate = {2025-03-01}
}

Organisationen, lange Autorenlisten und Großschreibung

Ein zweites Klammerpaar um eine Organisation verhindert, dass ihr Name in Vor- und Nachname zerlegt wird. and others am Ende der Autorenliste wird zu „et al.“. Klammern um ein Wort im Titel, wie in {Doppler}, schützen dessen Großbuchstaben in Stilen, die Titel kleinschreiben.

@misc{committee2017,
  author = {{International Example Committee}},
  title  = {A Guideline for {Doppler} Wind Sensors},
  year   = {2017}
}

@article{weber2023,
  author  = {Weber, Ben and Schmidt, Anna and Keller, Mia and others},
  title   = {Wind Tunnel Tests at 20 m/s},
  journal = {Journal of Example Studies},
  volume  = {16},
  pages   = {3--19},
  year    = {2023}
}

Die Datei prüfen

Ein kurzes Dokument mit \nocite{*} gibt jeden Eintrag der Datei aus und zeigt Tippfehler sofort.

Vollständiges Dokument:

\documentclass{article}
\usepackage[style=authoryear]{biblatex}
\addbibresource{references.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
Ergebnis
Das kompilierte Beispiel

Im Editor öffnen

Datei references.bib:

@article{weber2019,
  author  = {Weber, Ben and Schmidt, Anna},
  title   = {Ultrasonic Sensors in Wind Tunnels},
  journal = {Journal of Example Studies},
  volume  = {12},
  number  = {3},
  pages   = {45--67},
  year    = {2019}
}

@book{schmidt2021,
  author    = {Schmidt, Anna},
  title     = {Wind Measurement in Practice},
  edition   = {2},
  publisher = {Example Press},
  address   = {Berlin},
  year      = {2021}
}

@inproceedings{keller2022,
  author    = {Keller, Mia and Weber, Ben},
  title     = {Filtering Noisy Wind Data},
  booktitle = {Proceedings of the 5th Example Conference on Sensors},
  pages     = {101--110},
  publisher = {Example Press},
  year      = {2022}
}

@mastersthesis{mueller2020,
  author = {Müller, Jörg},
  title  = {Kalibrierung von {Ultraschallsensoren}},
  school = {Example University},
  year   = {2020}
}

@online{keller2023,
  author  = {Keller, Mia},
  title   = {Calibrating a Wind Sensor},
  year    = {2023},
  url     = {https://www.example.org/calibration},
  urldate = {2025-03-01}
}

@misc{committee2017,
  author = {{International Example Committee}},
  title  = {A Guideline for {Doppler} Wind Sensors},
  year   = {2017}
}

@article{weber2023,
  author  = {Weber, Ben and Schmidt, Anna and Keller, Mia and others},
  title   = {Wind Tunnel Tests at 20 m/s},
  journal = {Journal of Example Studies},
  volume  = {16},
  pages   = {3--19},
  year    = {2023}
}

Stolperfallen

Kompiliert mit pdfLaTeX aus TeX Live 2023.

Verwandte Seiten