Literaturverzeichnis ins Inhaltsverzeichnis aufnehmen in LaTeX

Die Standardklassen führen das Literaturverzeichnis nicht im Inhaltsverzeichnis auf. Mit biblatex schreibst du \printbibliography[heading=bibintoc]. Mit BibTeX lädst du das Paket tocbibind.

Mit biblatex

heading=bibintoc lässt die Überschrift ohne Nummer und nimmt sie ins Inhaltsverzeichnis auf. heading=bibnumbered macht daraus einen nummerierten Abschnitt, in report und book ein nummeriertes Kapitel.

Vollständiges Dokument:

\documentclass{article}
\usepackage{biblatex}
\addbibresource{references.bib}
\begin{document}
\tableofcontents
\section{Introduction}
The sensors have no moving parts \cite{weber2019}.

\printbibliography[heading=bibintoc]
\end{document}
Ergebnis
Das kompilierte Beispiel

Im Editor öffnen

Mit BibTeX oder thebibliography

tocbibind nimmt Literaturverzeichnis, Index sowie Abbildungs- und Tabellenverzeichnis ins Inhaltsverzeichnis auf. Seine Option nottoc verhindert, dass das Inhaltsverzeichnis sich selbst aufführt, und numbib gibt dem Literaturverzeichnis eine Abschnittsnummer.

Vollständiges Dokument:

\documentclass{article}
\usepackage[nottoc]{tocbibind}
\begin{document}
\tableofcontents
\section{Introduction}
The sensors have no moving parts \cite{weber2019}.

\bibliographystyle{plain}
\bibliography{references}
\end{document}
Ergebnis
Das kompilierte Beispiel

Von Hand, ohne Paket

\addcontentsline vor dem Literaturverzeichnis schreibt den Eintrag. \refname enthält die Überschrift in article; in report und book ist die Überschrift ein Kapitel, nimm dort {chapter}{\bibname} und ein \clearpage vor der Zeile, sonst bekommt der Eintrag die Nummer der Seite davor.

Vollständiges Dokument:

\documentclass{article}
\begin{document}
\tableofcontents
\section{Introduction}
The sensors have no moving parts \cite{weber2019}.

\addcontentsline{toc}{section}{\refname}
\bibliographystyle{plain}
\bibliography{references}
\end{document}
Ergebnis
Das kompilierte Beispiel

KOMA-Script-Klassen

Die Klassenoption bibliography=totoc nimmt das Literaturverzeichnis ins Inhaltsverzeichnis auf, und bibliography=numbered nummeriert es zusätzlich. biblatex richtet sich nach dieser Option, ein einfaches \printbibliography genügt also.

Vollständiges Dokument:

\documentclass[bibliography=totoc]{scrartcl}
\usepackage{biblatex}
\addbibresource{references.bib}
\begin{document}
\tableofcontents
\section{Introduction}
The sensors have no moving parts \cite{weber2019}.

\printbibliography
\end{document}
Ergebnis
Das kompilierte Beispiel

Im Editor öffnen

Datei references.bib:

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

@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}
}

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

Stolperfallen

Kompiliert mit pdfLaTeX aus TeX Live 2023.

Verwandte Seiten