Jeromy Anglim's Blog: Psychology and Statistics


Monday, March 15, 2010

APA Style References in LaTeX

This post discusses my experience getting APA style references in LaTeX. This includes both in-text citations and the end of document references list. It focuses on the use of the apacite package.

Setting up a BibTeX Bibliographic Database

Regardless of what citation style you want, you need to have your references formatted in BibTeX format. JabRef is a powerful reference manager for working with a BibTeX database. Also, see my previous post for migrating an Endnote database into BibTeX format and migrating a Word Document with Endnote references into LaTeX format.

APA Style References Several options exist:

From my initial examination apacite looks like it has more features and is more compatible with the nuances of APA style. However, natbib is somewhat of a standard in LaTeX. Thus, using natbib citation commands may enable easier conversion between citation styles. The remainder of this post focuses on my experience with the apacite package.

Using apacite

For comprehensive information on using apacite, see the documentation. The following sets out some basic details:

1. Ensure that you have a BibTeX database for the document. Your document will be more portable if the database is placed in either the same folder as the LaTeX files or in a subfolder of the LaTeX files.

However, you may prefer to maintain a general Bibliographic database that can be used across documents. If you wish to have a general database, you can use absolute file references to the database. Then when you need to share the BibTeX database, copy the database into a LaTeX project folder or subfolder and change the file reference in the bilbiography command .

2. Reference the apacite package in the preamble.

\usepackage{apacite}

3. Place the bibliography in the desired location in the document (usually after the main text) using the following code:

\bibliographystyle{apacite}
%http://www.ctan.org/tex-archive/biblio/bibtex/contrib/apacite/apacite.pdf
\bibliography{bibtex/thesis} % database is "thesis.bib" located in a "bibtex" subfolder

4. To insert citations in the text apacite has a range of commands (see "The citation commands" in the Manual). Table 1 in the manual lists some of the main commands. I find myself using the following ones most often:

  • cite: This inserts the author names and years in brackets. This is the standard methods. E.g., "(Anglim, 2002)".
  • citeA: Inserts the author names in the text and years in brackets. I use this to insert the authors names in the text e.g., "Anglim (2002)".
  • citeyear: inserts just the years in brackets. This is useful when I want to include the author's names in the text in a non-standard way. E.g., I've already written "Anglim's" then citeyear will insert "(2002)".

Each command takes a BibTeX reference as an argument and can have pre- and post- text. For example:

cite<e.g.,>{Ackerman1990JoEPLMaC}

displays as "(e.g., Ackerman, 1990)"

5. To produce the document with references included, the document typically needs to be built three times in order for all updates to occur.

Additional Challenges and Resolutions

French formatting
Problem: For some reason my document was using a French language version of apacite. This resulted in many unwanted  customisations, such as the French word for references (Références) being displayed at the start of the reference list.
Solution: I inserted the following code into the preamble to restore the English mode of apacite:

\usepackage[english]{babel}

Additional Resources