I'm trying to build a Harvard reference template using biblatex. I at first gave the Harvard package a try but was then informed that this package is out-dated and instead should use biblatex. After setting up LaTex (see here) I went through the lovely 91 examples that came with the biblatex package. Sadly none of them had any full Harvard example. Which is a little strange seeing as this is the almost de-facto when it comes to references for academic papers.
My current code looks like this:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{refs.bib}
@BOOK
{KandR,
AUTHOR = "Kernighan, Brian W. and Ritchie, Dennis M.",
TITLE = "{The C Programming Language Second Edition}",
PUBLISHER = "Prentice-Hall, Inc.",
YEAR = 1988
}
@ONLINE
{CUEDCplusplus,
AUTHOR = "Love, T.P.",
TITLE = "{CUED C++}",
URL = "http://www-h.eng.cam.ac.uk/help/tpl/languages/C++.html",
URLYEAR = 2010,
PRESORT="aa"
}
\end{filecontents*}
\usepackage[style=authoryear-ibid,backend=biber]{biblatex}
\addbibresource{refs.bib}
\begin{document}
In 1988 C was totally awesome. \cite{KandR}
According to \cite{CUEDCplusplus} C++ was even better.
\printbibliography
\end{document}
Does anybody know how I can instead have an output that fully matches the Harvard referencing system.
In other words, instead of looking like this (as it currently does)
It will look like this (The bibliography is correct though, so no need to change that)
Any help would be really appreciated.
\cite{<key>}
can't read your mind as to when you want parenthetical citations versus citations as nouns. In the biblatex examples for the author-year styles you should have come across\parencite
and\textcite
. Loading biblatex withnatbib=true
will allow you to use natbib-like citation commands.