Using Harvard referencing style

Can someone point me to some good instructions and resources on how to setup Harvard referencing style (a.k.a. Author-year) with bibtex in a LaTeX document? The final formatting of the bibliography should look as in this page: http://libweb.anglia.ac.uk/referencing/harvard.htm

I'm not totally new to LaTeX itself, but didn't use BibTex a lot, other than the default, predefined setup.

-

The Harvard style covers a wide range of choices of exactly how to do things. Using the natbib package has already been mentioned, while you could also consider biblatex.

-
\usepackage[sorting=nyt,style=apa]{biblatex} will give you more or less Harvard citations through \textcite If you're super lazy (like me) add \let\cite\textcite to your preamble to use \cite instead of \textcite – Seamus Oct 3 '10 at 20:17
+1 for biblatex – Will Robertson Oct 4 '10 at 1:35

The package you want is here: CTAN/harvard

It depends on your tex distribution. If you are using MiKTex, or another distribution with a package manager you just need to call the bib style as per usual and the package manager will handle installation.

-
It's generally better to use natbib instead of harvard. – Lev Bishop Oct 3 '10 at 15:39
And better to use biblatex than natbib? :) (Okay, it can depend.) – Will Robertson Oct 4 '10 at 1:35
You can have your cake and eat it too: \usepackage{har2nat} - harvard.sty macros on top of natbib. – Charles Stewart May 6 '11 at 13:26

An option as been mentioned: \usepackage{harvard}

You can then use it like this:

\citeasnoun[p.42]{knuth} writes that TeX is great...
In \citepossesive[p.43]{knuth} book we can also see something else.


Which would become:

Knuth (1901, p.42) writes that TeX is great...
In Knuth's (1901, p.43)  book we can also see something else.

-
Note that there are several packages that offer the functionality of the harvard.sty macros. – Charles Stewart May 6 '11 at 13:27
is the p. in p.42 necessary? – pluton May 22 '12 at 14:55
@pluton: Yes, the p. is supposedly required. Source: libweb.anglia.ac.uk/referencing/harvard.htm Under "Page Numbers" it says you should abbreviate with p. X or pp. X-Y (for range of pages). Technically, there is no enforcement of you writing "p.", so do what you think is right. – Unapiedra May 22 '12 at 16:36

try doing the following:

Put the following in before the \begin{document}:

\usepackage{natbib}
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={(},close={)}}


And then...

Use: \citep{key} to cite into parenthesis, like --> (Sandwith et al., 2006)

OR

Use: \citet{key} to cite in text, like --> Sandwith et al. (2006)

-