[Tex/LaTex] Undefined control sequence \citeasnoun

harvard-stylenatbib

I want to use harvard referencing style. I have the following document:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{natbib}
\bibliographystyle{agsm}

\title{test}
\author{ }
\date{February 2016}

\begin{document}

\maketitle

blab \cite{Jensen2007} has done it
\citeasnoun{Jensen2007} blub bla
\citeasnoun{Jensen2007} blub bla blub.


\section{Introduction}
\bibliography{bibliography} 

\end{document}

Latex keeps saying ! Undefined control sequence. l.19 \citeasnoun {Jensen2007} blub bla blub.

But I wrote \citeasnoun correctly and followed the instruction on How do I use the Harvard citation style? (using natbib). Why do I get this error all the time?

Best Answer

The following basic citation commands are defined in natbib:

\citet{jon90,jam91} ⇒ Jones et al. (1990); James et al. (1991)
\citep{jon90,jam91} ⇒ (Jones et al., 1990; James et al. 1991)
\citep{jon90,jon91} ⇒ (Jones et al., 1990, 1991)
\citep{jon90a,jon90b} ⇒ (Jones et al., 1990a,b)

Additionally there are some extended commands too:

\citealt{jon90} ⇒ Jones et al. 1990
\citealt*{jon90} ⇒ Jones, Baker, and Williams 1990
\citealp{jon90} ⇒ Jones et al., 1990
\citealp*{jon90} ⇒ Jones, Baker, and Williams, 1990
\citealp{jon90,jam91} ⇒ Jones et al., 1990; James et al., 1991
\citealp[pg.~32]{jon90}  ⇒ Jones et al., 1990, pg. 32
\citenum{jon90} ⇒ 11
\citetext{priv.\ comm.} ⇒ (priv. comm.)

To extract just part of a citation, e.g. the author name or year, you can also use:

\citeauthor{jon90} ⇒ Jones et al.
\citeauthor*{jon90} ⇒ Jones, Baker, and Williams
\citeyear{jon90}  ⇒ 1990
\citeyearpar{jon90} ⇒ (1990)

There are also uppercase versions of the citation commands for sentence initial citations of names that have a name prefix such as "de" or "von".

The \citeasnoun command is from a different package. The natbib documentation is a bit confusing in this respect, since the last section describes a bunch of other packages, all of which natbib is intended to replace.

Related Question