How can I add the citation key to the bibliography?
Let's take this entry as an example:
@book{Fowler1999,
address = {Boston, MA, USA},
author = {Fowler, Martin},
description = {AOEvolutionchapter short paper},
isbn = {0-201-48567-2},
publisher = {Addison-Wesley},
title = {Refactoring: Improving the Design of Existing Code},
year = 1999
}
I would now want the bibliography in my PDF document to look like this:
[Fowler1999] Martin Fowler. Refactoring: Improving the Design of Existing Code. Addison-Wesley, Boston, MA, USA, 1999. ISBN 0-201-48567-2.
Can someone please help me? I'm using natbib and bibliographystyle plainnat. And since it's the last day before deadline and I'm not that familiar with LaTeX, I'd prefer a solution where I don't need to change those two...
EDIT: apparently I did not express myself well. I don't want those keys in the text. There I already have them. I want them to appear in my bibliography as well.
Instead of:
Martin Fowler. Refactoring: Improving the Design of Existing Code. Addison-Wesley,
Boston, MA, USA, 1999. ISBN 0-201-48567-2.
I want:
[Fowler1999] Martin Fowler. Refactoring: Improving the Design of Existing Code. Addison-Wesley,
Boston, MA, USA, 1999. ISBN 0-201-48567-2.
Note that Fowler1999 is the citation key I used.
natbib
? In this case you could use theauthoryear
option, assumed you have the keys like that in your bib-file.