I've been scouting various websites, including stackexchange looking for an easy solution to make natbib work within my tex file so to use the harvard referencing system. I've only managed to get one reference working, the rest have made a bit of a mess of my document.
I am looking to have the format (Author last name, year) and my bib file (bibfile.bib) is as shown below (given a few examples at least):
@comment{ Aardvark, T. (2012) China Bans It's Airlines From Taking Part In EU
Emissions Trading Scheme. [online] Available at:
http://toryaardvark.com/2012/02/06/china-bans-its-airlines-from-taking-part-in-eu-emissions-trading-scheme/
[Accessed: 10 Mar 2013]. }
@book{aardvark2013china,
author = "Aardvark, T.",
title = "China Bans It's Airlines From Taking Part In {EU} Emissions Trading Scheme",
publisher = "[online] {Available} at: http://toryaardvark.com/2012/02/06/china- bans-its-airlines-from-taking-part-in-eu-emissions-trading-scheme/ [{Accessed}: 10",
month = mar,
year = 2013"
]}
@comment{ Aef.org.uk (1990) Aviation Environment Federation » Short haul
flights should be “progressively replaced” by rail, says
transport minister. [online] Available at:
http://www.aef.org.uk/?p=803 [Accessed: 10 Mar 2013]. }
@article{aef2013org,
author = "Aef",
title = "org",
journal = "uk",
volume = "10",
month = mar,
year = 2013,
url = "http://www.aef.org.uk/?p=803"
}
My document itself has :
\usepackage[numbers]{natbib}
\bibliographystyle{plainnat}
\begin{document}
AEF have been doing so and so \citep{aef2013org} etc.
\bibliography{bibfile}
Please help! The constant searching through endless websites is driving me crazy and I have a two reports due in this week!
natbibpackage with the optionroundinstead ofnumbers(as the latter institutes a numeric citation style) and (ii) fixing various (generally minor) mistakes in your.bibfile. E.g., change the entry type ofaardvark2013chinafrom@bookto something more suitable, e.g.,@misc, change thepublisheritem tourl, and omit stuff such as "[online] {Available} at: " entirely. Be sure to rerun LaTeX, BibTeX, and LaTeX twice more to fully update everything. – Mico Mar 17 '13 at 19:42natbibas it is just an TeX editor. see andy-roberts bibliography for using natbib. check also any wrong/missing syntax of",unbalanced characters in wrong locations in.bib. see harvard-style tags. Edit your question to include the errors.log and clean minimal working example along with desired output in image. The better you present the better it will help you to resolve. – texenthusiast Mar 18 '13 at 07:45natbib(or even tobibtex) yet, I highly recommend you usebiblatex. It has a variety of built-in styles (including author-year), it is extremely user-friendly, particulary when it comes to make custom changes to a given style, and its fan base is a lot larger than natbib's, which will help you significantly if you need assistance. – Nils L Mar 18 '13 at 08:00