Citation styles in LaTeX (APA, IEEE, Harvard, numeric)
With biblatex the style option sets the citation style: numeric prints [1], alphabetic prints [Sch21], authoryear prints "Schmidt 2021", and apa and ieee follow those two standards. With BibTeX the style is the argument of \bibliographystyle.
Author and year (Harvard)
"Harvard" is a name for the author-year pattern, not one fixed standard. authoryear implements the pattern: \parencite prints "(Weber and Schmidt 2019)" and \textcite prints "Weber and Schmidt (2019)".
Complete document:
\documentclass{article}
\usepackage[style=authoryear]{biblatex}
\addbibresource{references.bib}
\begin{document}
The sensors have no moving parts \parencite{weber2019}.
\textcite{schmidt2021} describes the calibration.
\printbibliography
\end{document}APA
style=apa follows the 7th edition of the APA manual: "(Weber & Schmidt, 2019)" in the text, and titles in sentence case in the list. The style needs a language from babel; load csquotes with it.
Complete document:
\documentclass{article}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\addbibresource{references.bib}
\begin{document}
The sensors have no moving parts \parencite{weber2019}.
\textcite{schmidt2021} describes the calibration.
\printbibliography
\end{document}IEEE and other numeric styles
style=ieee numbers the sources in the order of their first citation and formats the list as IEEE journals do. The built-in numeric sorts the list by author instead; numeric-comp shortens [1, 2, 3] to [1–3].
Complete document:
\documentclass{article}
\usepackage[style=ieee]{biblatex}
\addbibresource{references.bib}
\begin{document}
The sensors have no moving parts \cite{weber2019}.
The calibration is described in \cite{schmidt2021}.
\printbibliography
\end{document}Adjust a style with options
sorting=none lists the sources in the order of citation, giveninits=true shortens first names to initials, maxcitenames=2 shortens a citation with more than two authors to the first author and "et al.", and maxbibnames=99 prints all authors in the list.
Complete document:
\documentclass{article}
\usepackage[style=numeric-comp, sorting=none, giveninits=true,
maxcitenames=2, maxbibnames=99]{biblatex}
\addbibresource{references.bib}
\begin{document}
Three sources at once \cite{weber2019,schmidt2021,keller2023}.
\printbibliography
\end{document}Styles for BibTeX
With BibTeX each style is a .bst file. plain, unsrt, abbrv and alpha are numeric or label styles, ieeetr follows IEEE and apalike is close to APA. For author-year citations, load natbib with plainnat; natdin formats the list according to the German standard DIN 1505.
Complete document:
\documentclass{article}
\begin{document}
The sensors have no moving parts \cite{weber2019}.
\bibliographystyle{ieeetr}
\bibliography{references}
\end{document}File 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}
}Pitfalls
- A style changes the citations and the list together. To mix them, set
citestyleandbibstyleseparately in place ofstyle. \citetand\citepfromnatbibwith a numeric style such asplainstop with "Bibliography not compatible with author-year citations", see Bibliography not compatible with author-year citations.- Universities and journals often prescribe details that no ready-made style matches exactly. Start from the nearest style and adjust it with the options above.
Compiled with pdfLaTeX from TeX Live 2023.
Related pages
- Package
biblatex - Package
natbib - How-to Create a bibliography in LaTeX with biblatex and Biber
- How-to Cite sources in LaTeX
- Error Bibliography not compatible with author-year citations
- Package
babel - Package
csquotes