Skip to main content

Managing References with LaTeX/BibTeX

This LibGuide is designed for University of Melbourne staff and students to instruct on the various methods of reference management within LaTeX documents. The basics of a LaTeX bibliography is explained with reference to more popular editors such as Shar

Referencing within LaTeX

In order to create a reference list and cite within a LaTeX document there are a few steps that need to be carried out

  • Create a .bib file
    • This can either be created from scratch, or an easier method is to use a reference manager to create a .bib file. Each reference manager has a slightly different process, but these can be found for the most popular managers within this LibGuide. 

  • Add citation place holders (also known as citation keys)
  • Compile document through packages

Video on inserting citations and a reference list in LaTeX

Create a .bib file

This is a simple .bib file of a basic book:

@BOOK{Dummy:1,

AUTHOR="John Doe",

TITLE="The Book without Title",

PUBLISHER="Dummy Publisher",

YEAR="2100",

}

Use BibTeX

Once you've created a BibTeX file, we need to tell our LaTeX document where to find with bibliographic database. To do this we need the commands \bibliography (which tells LaTeX where the .bib file is located) and \bibliographystyle (which selects the appropriate bibliography style we need). 

\documentclass{article}

\begin{document}

Type your text here. This text requires a citation \cite{Dummy:1} to embed the citation in the required position in the text.

\newpage

\bibliography{name of .bib file}

\bibliographystyle{ieeetr}

\end document

It will look something like this:

Type your text here. This text requires a citation [1] to embed the citation in the required position in the text.

References

[1] J. Doe, The Book without Title. Dummy publisher, 2100.