TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

Some months ago, I asked a question regarding bibliography hyphenation issue here. In a nutshell, when I was having problems with the hyphenation of the citation keys in the text, I included the natbib package and the problem was solved. However, the list of references at the end of the article does not show the key that appears in the text as before.

Here is an example:

With the following code:





asd asd Hello world \citep{SaCouto:2010:HemodynamicBirth},



I get: with natbib

When commenting the natbib package, and changing \citep to \cite, I get: without natbib

What I would like is:

  • Correct hyphenation (possible when including natbib)
  • That the references include the key that is shown in the text (possible when not including natbib). This key should be [Lastname, year].

So my question is, how can I achieve this?

share|improve this question
What is the point of showing the citation key (other than adding needless clutter to the bibliography)? – Mico Oct 22 '15 at 12:01
up vote 3 down vote accepted

Try adding this to your preample:


Source: http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2008-07/msg00540.html

share|improve this answer
Excellent! This is exactly what I was looking for! I did not like the identation so I redefined \thebibliography as well, as shown on this link: latex-community.org/forum/… – YuppieNetworking Nov 22 '10 at 16:39

I had a similar question some times ago. Natbib does not put the citation keys in the reference section as a default.

The couple author+year should be enough to pick out the correct reference.

One way to do what you are asking is getting hands on the .bst file. I know it can be a little tricky, but I think that the LaTeX Companion may help in this case (I recently edited the palinnat.bst file with a trial-and error technique, and get what I want).

share|improve this answer
I agree that author+year should be enough, but I prefer showing the citation key. Many publications do this and I think it is easier to search the references. – YuppieNetworking Oct 18 '10 at 9:24
did you already try the numbers option? – Alessandro Cuttin Oct 19 '10 at 12:45
Yes. But this way the citation key is not Lastname-year (I realize now that my question should clarify this) – YuppieNetworking Oct 25 '10 at 8:40

Taking the same idea that @jpz presented here's a different version. With \citep there's a problem if you use hyperref.

This is the workaround I've came up with:


{\def\mycitep{#1, #2}}


I hope it's helpful for others

share|improve this answer
Greetings! Please see a new posting that's related to your answer. Can you help out the OP? – Mico Oct 30 '15 at 18:22

Your Answer


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.