Author-year citations in LaTeX with natbib: \citep and \citet

Help centre › LaTeX › References and citations · Packages: natbib

Load \usepackage{natbib}, choose an author-year style such as \bibliographystyle{plainnat}, and cite with \citet{key} for "Smith and Brown (2020)" in the sentence or \citep{key} for "(Smith and Brown, 2020)" in parentheses. Notes go in optional arguments: \citep[see][p.~5]{key}.

A complete example

A whole document: paste it into an empty project and compile it.

\begin{filecontents*}[overwrite]{refs.bib}
@article{smith2020,
  author  = {Smith, Jane and Brown, Paul},
  title   = {Measuring Things Carefully},
  journal = {Journal of Measurement},
  year    = {2020},
  volume  = {12},
  pages   = {1--10}
}
@book{garcia2018,
  author    = {Garcia, Maria and Chen, Wei and Okafor, Ngozi},
  title     = {Methods for Field Studies},
  publisher = {University Press},
  address   = {Boston},
  year      = {2018}
}
\end{filecontents*}
\documentclass{article}
\usepackage{natbib}
\begin{document}
\citet{smith2020} measured carefully; field work is covered elsewhere
\citep{garcia2018}. See \citet*{garcia2018} for the full author list,
and \citep[see][p.~5]{smith2020} for detail.
\bibliographystyle{plainnat}
\bibliography{refs}
\end{document}

The citing commands

  • \citet{key} → Smith and Brown (2020): the author as part of the sentence.
  • \citep{key} → (Smith and Brown, 2020): the whole citation in parentheses.
  • \citep[p.~5]{key} → (Smith and Brown, 2020, p. 5); \citep[see][]{key} → (see Smith and Brown, 2020); \citep[see][ch.~2]{key} uses both.
  • \citet* and \citep*: the full author list instead of "et al.".
  • \citealt and \citealp: like \citet and \citep without parentheses.
  • \citeauthor{key}, \citeyear{key}, \citeyearpar{key}: the authors, the year, or the year in parentheses.
  • \citep{a,b}: several works in one parenthesis, separated by semicolons.

Package options

When a class has already loaded natbib, change the style with \setcitestyle{square,comma} instead of loading the package again.

  • round (default), square, curly, angle: the brackets.
  • semicolon (default) or comma: the separator between citations.
  • authoryear (default) or numbers: author-year or numbered citations; super for superscript numbers.
  • sort and sort&compress: sort several citations, and compress numbers into ranges such as [1–4].
  • longnamesfirst: the full author list the first time each work is cited.

Bibliography styles that work with natbib

Author-year citations need a style that writes author and year information: plainnat, abbrvnat and unsrtnat (bundled with natbib), apalike, and journals' own author-year styles. With a numbered style such as plain, natbib stops with "Bibliography not compatible with author-year citations" and falls back to numbers.

Numbered citations with natbib

natbib is also the usual way to get sorted, compressed numbered citations. With the numbers option, \citet still names the authors: "Smith and Brown [1]".

\begin{filecontents*}[overwrite]{refs.bib}
@article{smith2020,
  author  = {Smith, Jane and Brown, Paul},
  title   = {Measuring Things Carefully},
  journal = {Journal of Measurement},
  year    = {2020},
  volume  = {12},
  pages   = {1--10}
}
@book{garcia2018,
  author    = {Garcia, Maria and Chen, Wei and Okafor, Ngozi},
  title     = {Methods for Field Studies},
  publisher = {University Press},
  address   = {Boston},
  year      = {2018}
}
\end{filecontents*}
\documentclass{article}
\usepackage[numbers,sort&compress]{natbib}
\begin{document}
Two studies \citep{smith2020,garcia2018}; \citet{smith2020} measured carefully.
\bibliographystyle{unsrtnat}
\bibliography{refs}
\end{document}

Common mistakes

In journal templates

Errors you may meet

In Manulyx

Typing \cite{ lists your references by key, author, year and title, and every compile runs BibTeX and the extra passes, so new citations resolve straight away.

Write in Manulyx for free · Journal templates

Related

The examples on this page were compiled with pdfLaTeX and BibTeX to check that they work as shown. LaTeX quick reference · LaTeX errors explained