LaTeX Referencing


Tag: TIL

LaTeX has a feature rich referencing package called BibLaTeX, but as with most of LaTeX it's not always intuitive getting started. I found that the TexStudio editor is relatively easy to use and provides good support for referencing with BibLateX. After the initial setup, it's relatively easy to use and scales well to large documents. This is an outline of how to perform the initial setup.

  • Download TexStudio.
  • Download the Biber packages required to use BibLaTeX, for example on Ubuntu do:
sudo apt-get install texlive-bibtex-extra biber
  • Open TexStudio, go to Options → Configure → Build and change default bibliography tool to Biber.
  • Create a ".bib" file which contains all the references.
    • Bibtex format references can usually be found on web pages containing the papers, see for example the "Export Bibtex Citation" button here.
  • For the most basic usage include the lines
\usepackage{biblatex}
\addbibresource{sample.bib}
  • Make any citations with the usual
\cite{ref}
  • Create the bibliography with
\printbibliography

BibLaTeX will automatically get the reference numbers in the right order, allow you to quickly change the referencing style and order of the references. You can also configure the Mendeley Web Importer extension to automatically generate a .bib file for you for a relatively seamless experience.