I am new to LaTex and using TexShop as my Editor. I have been able to generate my list of references and cite them in text using \cite{}
, but the thing is that I want to use the Harvard Referencing Style, so that in text, my citation comes with parentheses, authors' names and the year. There should also be a provision to specify a page number if I would like to in the in-text citation.
I am using BibLatex as outlined below:-
\usepackage[backend=bibtex]{biblatex}
\addbibresource{references.bib}
This is followed by
\printbibliography
at the end of the document (before \end{document}
)
A sample reference in my references.bib
file looks like this:
@article{einstein,
author = "Albert Einstein",
title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
[{On} the electrodynamics of moving bodies]",
journal = "Annalen der Physik",
volume = "322",
number = "10",
pages = "891--921",
year = "1905",
DOI = "http://dx.doi.org/10.1002/andp.19053221004"
I have tried using \cite{}
, \parencite{}
etc. and also with [] for specifying page number but nothing seems to work. I looked into various similar questions on Stackechange for Tex but am highly confused. My ultimate goal is to be able to generate in-text citations with author names, year, and page number (which can be specified if needed in-text). The final bibliography at the end of my document should look as well in the Harvard Referencing Style. Also, I have the query that if there are multiple authors in a paper, such as Firstname1 Lastname1, Firstname2 Lastname2 etc., so in the .bib file, should I mention authors name as complete names or as Firstname1_Initial.Lastname1, Firstname2_Initial.Lastname2 etc.
Any help in this regard would be highly appreciated. Many thanks and Cheers!
\usepackage[style=authoryear, backend=bibtex]{biblatex}
would give you "Harvard style" (i.e. author year citations)\parencite[380]{sigfridsson}
. Names should always be given as in tex.stackexchange.com/q/557/35864 and tex.stackexchange.com/q/36396/35864