I have a question about how to take off the reference number from in text cite? to explain more, I am using a thesis template, which uses the bibtex. This is how I cite a reference in text:
\citep[Rost and Riebesell, 2004]{rost2004coccolithophores}
the previous line produce a number before the Author names as follow: ....(1, Rost and Riebesell, 2004) and when I use additional square brackets the number appears to the right of the names:
\citep[Rost and Riebesell, 2004][]{rost2004coccolithophores}
the cite will appear as follow:
....(Rost and Riebesell, 2004 1)
I want to take off this number from the in text cite to be like this:
....(Rost and Riebesell, 2004)
So I hope someone will guide me to the right way to do this?
here is the reference that I included in a file "thesis.bib":
@article{rost2004coccolithophores,
title={Coccolithophores and the biological pump: responses to environmental changes},
author={Rost, Bj{\"o}rn and Riebesell, Ulf},
booktitle={Coccolithophores},
pages={99--125},
year={2004},
publisher={Springer}
}
and I used the same package of \usepackage{natbib}, \bibliographystyle{apalike} and \bibliography{thesis}, but when I run the file I got this message:
Package natbib Error: Bibliography not compatible with author-year citations. ...mand\NAT@force@numbers{}\NAT@force@numbers
\citep{rost2004whatever}
should be sufficient. You just need to choose an appropriate bibliography style i.e. one that uses author-year citations rather than numerical labels.\bibliographystyle{}
is the key command here. You need to change the value to correspond to the format you need.natbib
. Otherwise,biblatex
andbiber
are good.