Skip to Main Content

BibTeX for LaTeX

This guide provides a brief overview of managing references in LaTeX using BibTeX. Follow the instructions to integrate BibTeX into your LaTeX documents, allowing you to cite sources and generate bibliographies.

Using Nabib package to enhance referencing

What is natbib?

Natbib is a LaTeX package that provides greater control over how citations are created and displayed in your document. It supports various citation styles including numerical style (Vancouver) and author / date (Harvard).

Inserting citations and generating a reference list 

  • Create a .bib File: compile your references in a .bib file (see Generating BibTeX file)
  • Include natbib package: add \usepackage{natbib} in the preamble of your LaTeX document
  • Add citations: use relevant variations of the \cite command to add in-text citations
  • Specify bibliography style: choose your referencing style with \bibliographystyle{style} (see Harvard, Vancouver, IEEE)
  • Generate reference list: add \bibliography{filename} at the end of your document to generate the reference list

In practice:


\documentclass{article}
\usepackage{natbib}
\begin{document}

You are citing a reference using Natbib: \citep{Unique_key}.

\bibliographystyle{agsm}
\bibliography{references}

\end{document}

 

Example: Using Harvard style with Natbib package

A screenshot illustrating the use of the Natbib package in creating a Harvard Referencing Style in Overleaf