I want to print the bibtex key being cited, just like the showkeys package prints the label names, above the text where it appears, maybe in color.

I do NOT want to change the cite format in the text itself - i want the citations to appear as usual, like this[1][2].

I'm sure this has been asked (and answered) before, but I can't seem to locate it.

  • 2
    showkeys should do this. See also refcheck. Jul 22, 2015 at 14:26
  • So I added \usepackage{natbib} at the top, cleaned out all the auxiliary files and built again, and now it works! Wonder why it didn't work without natbib?
    – kabZX
    Jul 22, 2015 at 16:24

1 Answer 1


May not be a complete answer but here's what works for me after trial and error, they key point is ordering of the various \usepackage commands.

%Better refs

and at the end of the document:


It throws this warning, but not sure how to fix that yet.

The `cite' package should not be used(natbib) with natbib. Use option `sort' instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.