[Tex/LaTex] How to solve Undefined-Control-Sequence Error for biblatex in AucTeX

auctexbiblatex

After reading many great things about biblatex in the forum, I would like to start using it. I tried the steps given in What to do to switch to biblatex? on a file on which I am already using BibTeX, but received an Undefined-Control-Sequence error on \addbibresource.

I set up an example document copying from the files in http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex//doc/examples, (01-introduction.tex and biblatex-examples.bib) and got the same error.

I am using AucTeX 11.866 with TeXLive 2009. Below is the document I am trying to compile, along with the error it outputs. I am using the Default engine and generating a PDF (or trying to). What should I do to make this work?

\documentclass[10pt]{article}
\usepackage[T1]{fontenc}

\usepackage[american]{babel}

\usepackage{csquotes}

\usepackage[style=authoryear]{biblatex}

% biblatex-examples.bib is located in ~/Library/texmf/bibtex/bib/
\addbibresource{biblatex-examples.bib}

\begin{document}

\section*{Name of first section here}

This is just filler text \parencite{companion}.

This is just filler text \parencite[59]{companion}.

This is just filler text \parencite[see][]{companion}.

This is just filler text \parencite[see][59--63]{companion}.

\printbibliography

\end{document}

Here's the error:

ERROR: Undefined control sequence.

--- TeX said ---
l.11 \addbibresource
                    {biblatex-examples.bib}
--- HELP ---
TeX encountered an unknown command name. You probably misspelled the
name. If this message occurs when a LaTeX command is being processed,
the command is probably in the wrong place---for example, the error
can be produced by an \item command that's not inside a list-making
environment. The error can also be caused by a missing \documentclass
command.

Best Answer

AUCTeX has nothing to do with this. The problem is that \addbibresource has been added to biblatex from version 1.2, which is not in TeX Live 2009.

The best is to upgrade by downloading MacTeX 2010 from http://tug.org/mactex and running TeX Live Manager to get an up-to-date distribution (I assume you are on Mac OS X from the

% biblatex-examples.bib is located in ~/Library/texmf/bibtex/bib/

line).
https://imathworks.com/tex/tex-latex-how-to-solve-undefined-control-sequence-error-for-biblatex-in-auctex/
imathworks.com
CC-MAIN-2023-06
24431
application/http; msgtype=response
sha1:WKN2D3EZKXUTU2MJAU2L5DJYJFCWIVUK
<urn:uuid:a74f8c2b-61e9-4eb9-b2b9-de85a20f7e75>
2023-02-04T16:18:55Z
45.77.5.190
text/html
sha1:4CX3C2HCYS3ICMPKSMB7TP764IKK7ITI
<urn:uuid:fe432c1f-6373-4ebe-a14d-b6bc913e0b53>
https://imathworks.com/tex/tex-latex-how-to-solve-undefined-control-sequence-error-for-biblatex-in-auctex/
response
<urn:uuid:617a7920-1d66-4bc8-af29-ddd71a4dd4a9>
isPartOf: CC-MAIN-2023-06
publisher: Common Crawl
description: Wide crawl of the web for January/February 2023
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-108
software: Apache Nutch 1.19 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.4-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/