Bibliographies and Citations

Superscript and Author-Year Citations in LaTeX

Get superscript or author-year citations in LaTeX with natbib options. Includes square-bracket author-year output, example code, and a note on biblatex.

On this page
  1. Choose the citation look before you cite
  2. Superscript citations with natbib
  3. Author-year citations in square brackets
  4. Options at a glance
  5. Author-year with biblatex
  6. Compile and check your output
  7. Common mistakes

Choose the citation look before you cite

The package options you pass to natbib apply to every citation in the document. Set them once, early in the preamble, so you do not have to change citations later.

This guide focuses on natbib, the package most BibTeX-based templates use for superscript and author-year citations. Elsevier’s elsarticle template is one example, with its author-year style. A section near the end covers biblatex.

Superscript citations with natbib

To get numbered citations in superscript, load natbib with the super option:

\documentclass{article}
\usepackage[super]{natbib}

\begin{document}
Earlier work reported the same effect\cite{smith2020}.

\bibliographystyle{plainnat}
\bibliography{references}
\end{document}

The citation appears as a small raised number, and the bibliography lists the same numbers. The super option is designed for \cite. If you also use \citep or \citet, test them in your own document before you rely on them.

Use a natbib-compatible bibliography style such as plainnat, unsrtnat, or abbrvnat. The super option changes how citations look, so it works with any of these.

Author-year citations in square brackets

For the author and year inside square brackets, load natbib with the square and authoryear options:

\usepackage[square,authoryear]{natbib}

Then use one of two commands:

  • \citep{key} for a citation at the end of a sentence, with the author and year together in brackets.
  • \citet{key} for a citation where the author is part of the sentence, with the year in brackets.

Here is a complete example:

\documentclass{article}
\usepackage[square,authoryear]{natbib}

\begin{document}
Tables can be hard to typeset \citep{smith2020}.
\citet{smith2020} describe the same problem.

\bibliographystyle{plainnat}
\bibliography{references}
\end{document}

Options at a glance

Options \citep{key} \citet{key}
square,authoryear [Smith and Lee, 2020] Smith and Lee [2020]
round,authoryear (Smith and Lee, 2020) Smith and Lee (2020)

Without authoryear, natbib produces numbered citations, even with square brackets. The output above is typical. The exact punctuation, such as the comma between author and year, comes from the bibliography style, so check your compiled PDF.

Author-year with biblatex

biblatex’s built-in author-year style uses parentheses by default:

\usepackage[backend=biber,style=authoryear]{biblatex}

Getting square brackets with biblatex means changing the citation style, which takes more work than the natbib options above. If your template uses biblatex, check whether it already sets the look you need, and follow its instructions.

For superscript numbers, natbib’s super option is the simplest route. If your template uses biblatex, check its instructions for superscript citations.

Compile and check your output

Run the BibTeX sequence: pdflatex, bibtex, pdflatex, pdflatex. Then check the PDF, not only the source. A citation can look different from what you expect, especially when the bibliography style and the citation options do not match.

For the full compile workflow and the structure of the .bib file, see Bibliographies and Citations in LaTeX.

Common mistakes

  • Using a plain BibTeX style with natbib. Use plainnat, unsrtnat, or abbrvnat. Styles such as plain may not produce the author-year or superscript output you expect.
  • Loading two citation packages. Load natbib or biblatex, not both. Loading both causes conflicts.
  • Question marks in the PDF. This means a key is missing or the bibliography has not been built. Check the spelling of the key, then run the full compile sequence.

The complete guide to bibliographies and citations

Bibliographies and Citations in LaTeX
Read the guide

Keep exploring

Guides from other topics

All topics →