Master bibliography management in LaTeX using BibTeX. Learn citation styles, .bib files, and automated reference formatting with examples.
.bib
file with your references, cite them with \cite{key}
, and LaTeX handles the formatting based on your chosen style.Prerequisites: Basic LaTeX knowledge. For citations basics, see Bibliography & Citations.pdflatex main.tex
(first pass)bibtex main
(process bibliography)pdflatex main.tex
(incorporate citations)pdflatex main.tex
(finalize references)Your Name
November 28, 2024
According to [1], the theory of special relativity revolutionized physics. Later work by [2] expanded our understanding of the universe.
[1] Albert Einstein. On the electrodynamics of moving bodies. Annalen der Physik, 17:891–921, 1905.
[2] Stephen Hawking. A Brief History of Time. Bantam Books, New York, 1988.
All BibTeX entry types with required and optional fields
Command | Output (plain style) | Output (author-year) |
---|---|---|
\cite | [1] | (Einstein, 1905) |
\cite | [1, 2] | (Einstein, 1905; Hawking, 1988) |
\cite[p.~42] | [2, p. 42] | (Hawking, 1988, p. 42) |
\citet | — | Einstein (1905) |
\citep | — | (Einstein, 1905) |
\bibliographystyle
Entries sorted alphabetically by author, numbered [1], [2], [3]…
\bibliographystyle
Labels like [Ein05], [Haw88] based on author and year
\bibliographystyle
Like plain but with abbreviated first names, journal names
\bibliographystyle
Entries in order of citation, not alphabetically
.bst
files. Common examples:author2023keyword
- e.g., einstein1905relativity
author2023a
, author2023b
- for multiple papers same yearconference2023author
- e.g., icml2023smith
paper1
, paper2
- not descriptivemy-favorite-paper
- too subjectiveref:2023/05/28
- uses special charactersBibliography not appearing
\bibliography{filename}
commandbibtex main
Citation shows as [?] or bold
Incorrect sorting or formatting
{}
to preserve capitalizationEncoding and special character issues
.bib
file and cite your references - we take care of the compilation sequence for you.