1 % Test file for showkeys cite at start of item
5 % Synopsis: showkeys breaks text when a theorem begins with \cite
7 % Fixed in showkeys v3.16
9 % Ari Brodsky/ DPC 2011/11/24
18 \documentclass{article}
22 \newtheorem{theorem}{Theorem}
24 \title{Bug with the showkeys package}
25 \author{Ari Meir Brodsky}
30 This document displays a bug with the \verb+showkeys+ package.
31 The bug appears when using \verb+showkeys+ version 3.15.
32 It seems to be caused by the \verb+\@inlabelfalse+ command
33 near the end of the \verb+showkeys.sty+ file.
34 Also, using the \verb+[notcite]+ option prevents the bug from appearing.
37 \begin{theorem}\label{T:1}
38 This is an ordinary theorem.
40 There is no problem here.
43 \begin{theorem}\label{T:2}\cite{abc}
44 This theorem begins by citing a bibliography item. The phrase ``Theorem 2" is missing entirely!
47 Notice that we can still refer to Theorem~\ref{T:2}.
49 \begin{theorem}\label{T:3} \cite{def}
50 This theorem also begins by citing a bibliography item.
52 Now it has a second paragraph. The phrase ``Theorem 3" has shifted to the beginning of the second paragraph.
53 And wow, it says ``Theorem 2" here as well, unless the \verb+amsthm+ package is loaded!
58 \begin{thebibliography}{99}
60 What's his name, \emph{What's the name of the book}.
63 This book has no title.