0

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. – Torbjørn T. Jul 22 '15 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 '15 at 16:24
0

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
\usepackage{varioref}
\usepackage{hyperref}
\usepackage[nameinlink]{cleveref}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[square,sort,comma,numbers]{natbib}
\usepackage[color]{showkeys}

and at the end of the document:

\bibliographystyle{IEEEtran}
\bibliography{IEEEabrv,My_Bib_File_Name}

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.