Is it possible to place the labels of the showkeys package for bibliographic items on the right side instead of the default left?

I tried


which indeed changes the location of the label but not very satisfying.


\item \label{test} test
\item \label{test2} test2
  • You mean in the right margin?
    – egreg
    Jul 10, 2014 at 16:50
  • ...and this is specific to showing \bibitems or \items from any list?
    – Werner
    Jul 10, 2014 at 16:52

2 Answers 2


You can try the package showlabels that solved similar issue for me. It has a number of options to display labels at various sides of the page or in the text.


You need to do a little more to shove entries over to the right of your document. Another patch pushes it over by \textwidth+\marginparsep:

enter image description here


  \bibitem{abc} test1
  \bibitem{def} test2

\patchcmd{\SK@@label}{\llap}{\fullrlap}{}{}% Insert appropriate (full)rlap patch

  \bibitem{ghi} test3
  \bibitem{jkl} test4


The negative \@totalleftmargin moves the label flush with the left margin. To that, we add \textwidth in order to shove the label over to the right margin and then another \marginparsep.


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.