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
:Additionally there are some extended commands too:
To extract just part of a citation, e.g. the author name or year, you can also use:
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. Thenatbib
documentation is a bit confusing in this respect, since the last section describes a bunch of other packages, all of whichnatbib
is intended to replace.