BibTeX, biblatex and biber! Undefined control sequence. \citeauthoryear

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
iamsskim
Posts: 1
Joined: Sun Aug 09, 2009 9:29 pm

! Undefined control sequence. \citeauthoryear

Post by iamsskim »

I'm a beginner of LaTex, and I want to use it to write my dissertation.
Today I downloaded a template file http://guides.library.jhu.edu/data/file ... expert.zip
And I installed protext (http://www.tug.org/protext/), which is based on MikTex 2.7, and installs TeXnicCenter.

** Everything compiled perfectly.

Now, the problem is that, if I change the 'IEEEtran' bibtex style file to 'namedplus' (or 'jneurosci', 'named' and so on), then it spit out the following error and many similar ones. I copied the first error from the .log file.

Code: Select all

! Undefined control sequence.
\@B@citeB ->\citeauthoryear 
                            {Llinas \bgroup et al.\egroup }{1998}
l.7 A citation \cite{A}
                       .
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Is there anything that I have to have, or should I use special package to use 'namedplus'? Or is there a compatibility issue in using different bibtex style files?

Thank you.
SS

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

! Undefined control sequence. \citeauthoryear

Post by gmedina »

Hi,

some preparations must be made to use the namedplus style:

1) the namedplus style requires the natbib package which is not compatible with the cite package. In the preamble of your document, delete this line (if present)

Code: Select all

\usepackage{cite}
and add the following

Code: Select all

\usepackage{natbib}
2) Apparently the class that you are using defines the \newblock command in the wrong place, so add this line to the preamble of your document:

Code: Select all

\def\newblock{\hskip .11em plus .33em minus .07em}
(definition taken from JHU Thesis LaTeX FAQ).
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply