APAcite on Mac OS X with texlive

While compiling a LaTeX document, a blank template of my PhD thesis to be exact, when I got the following error "! LaTeX Error: File `apacite.sty' not found." Again a quick search for Mac ports indicated that the texlive-bibtex-extra package was required. It was quickly installed using;

sudo port install texlive-bibtex-extra

Subsequent compile yielded more errors, this time it was "! Undefined control sequence. \abstract". This was solved using the texlive-latex-extra package, installed using;

sudo port install texlive-latex-extra

Then adding the following to define the abstract in the book documentclass;

% Define abstract in book documentclass
  \chapter*{\centering Abstract}%

% Start the actual abstract

More errors resulted "! Use of \@year@ doesn't match its definition." I had to add "\bibliographystyle{apacite}" to the bibligraphy page, and all was well once again.

  1. https://trac.macports.org/wiki/TeXLivePackages
  2. http://www.cs.utexas.edu/~witchel/errorclasses.html

No comments:

Post a Comment