TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to LaTeX and I am having problems with my bibliography.

What I want : I am writing my thesis and I want to have Harvard style citation and bibliography. (http://libweb.anglia.ac.uk/referencing/harvard.htm)

Attempt 1 : documentclass is 'report'. In my main document, I added

\begin{thebibliography}{99}
\addcontentsline{toc}{chapter}{Bibliography}

\bibitem{Knuth92} D.E. Knuth, \emph{Two notes on notation}, Amer.
Math. Monthly \textbf{99} (1992), 403--422.

\end{thebibliography}

and

\cite{Knuth92}

I could write the bibitem anyway I want and it comes out as I wrote it. But the citation is [#ID#] and not (Author, Year). Also, it is tedious to write up all the bibliography entries according to the type of the source because I am expecting nearly 75+ sources.

Attempt 2 : I searched the inet, and created a modular document - a separate bib file with

@conference{citekeyconference,
author = "First Name, Second Name and Third Name",
title = "Title",
booktitle = "Title of book",
year = "YYYY",

editor = "Editor",
volume/number = "Volume 1",
number = "Number 1",
series = "Series 1",
pages = "Pages 1 - 10",
address = "Address",
month = "Month",
publisher = "Publisher",
organization = "Organisation",
note = "Additional note",
}

and no preamble in the .bib file.

And, used natbib like

\usepackage{natbib}
\bibliographystyle{agsm}
\begin{document}
...
\bibliography{<your-bib-file>}
\end{document}

no sucess (not getting the output like the way I wanted it tobe.

So, used bibtex like

\usepackage[style=authoryear]{biblatex}
\addbibresource{<your-bib-file.bib>} % note the .bib is required
\begin{document}
...
\printbibliography
\end{document}

Compiled for more than ten times successively as I read in the Wikibook, but still get some errors.

error for biblatex

package biblatex error : file Report.bbl not created by biblatex \begin{document}

error for natbib

package natbib error : bibliography not compatiable with author year citations ....

MY QUERY : Can you please help me get it right?

share|improve this question
    
Welcome to TeX.SX. – Claudio Fiandrino Mar 9 '13 at 9:19
1  
You can't use natbib and biblatex at the same time. See tex.stackexchange.com/questions/25701/… – lockstep Mar 9 '13 at 9:21
    
I am sorry if I was not clear above. I used the packages one at a time trying out different possibilities. I know there is no point in using two different packages to control one feature. – newbie Mar 9 '13 at 10:46

In this example I used \parencite{key} to put some parenthesis around the in text citation.

mythesis.tex

\documentclass[bibtotocnumbered]{article}
\usepackage[utf8]{inputenc}

\usepackage[style=authoryear,backend=biber]{biblatex}
\addbibresource{library.bib}

\begin{document}
\tableofcontents
\newpage

Some text to cite here \parencite[23]{Lin1973}. 
Another text to cite here \parencite[123]{Goedel1930}.

\printbibliography[heading=bibintoc]
\end{document}

library.bib

% This file was created with JabRef 2.9.2.
% Encoding: UTF8    

@BOOK{Goedel1930,
  title = {Die Vollständigkeit der Axiome des logischen Funktionenkalküls},
  publisher = {Monatshefte für Mathematik und Physik},
  year = {1930},
  author = {Kurt Gödel},
  address = {Wien}
}    

@ARTICLE{Lin1973,
  author = {Shen Lin and Brian W. Kernighan},
  title = {An Effective Heuristic Algorithm for the Travelling-Salesman Problem},
  journal = {Operations Research},
  year = {1973},
  volume = {21},
  pages = {498--516}
}

My Workflow:

pdflatex mythesis
biber mythesis
pdflatex mythesis
pdflatex mythesis

To edit your .bib file I would recommend you a reference manager like JabRef.

Make sure your files are encoded in UTF8.

share|improve this answer
    
I need to add that authoryear is not 100% compatible to the style you linked to but in my opinion it's really close to it. – Oliver Mar 9 '13 at 12:18
    
Still no sucess. My thoughts go into creating a new bib style for this effect using the custom-bib tool. Tried once, didnt turn out well. Trying again and again to get it right. I am also trying other methods when I get time. And will post a result when I am satisfied with what I get because I know there are people looking for this ( at least from my Uni. ) So, untill then, I will keep this question open. – newbie May 14 '13 at 14:55
    
Did you have any luck creating the biblatex file you seek? – wierts Jul 9 '13 at 11:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/101609/harvard-style-citation-and-bibliography
tex.stackexchange.com
crawl=CC-MAIN-2016-30
81315
application/http; msgtype=response
sha1:A7LVMOILNSPGUT2KR5T6P74IA5YNA63O
<urn:uuid:2929c7cd-01da-4713-8a78-0a617d7d7e44>
2016-07-25T06:24:18Z
151.101.65.69
sha1:YQZRX6TV4VNCSDBEPR57SH5OBHCZ6F5I
<urn:uuid:98a676b4-e1c2-4aa6-b6aa-957c6647ae74>
http://tex.stackexchange.com/questions/101609/harvard-style-citation-and-bibliography
response
<urn:uuid:eb04cc50-0322-4dc6-b896-94ee320647e6>
robots: classic
hostname: ip-10-185-27-174.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-30
operator: CommonCrawl Admin
description: Wide crawl of the web for July 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf