This is a search tool for the LaTeX bugs database.

This search tool allows you to search the LaTeX3 project team's database of all bug reports for LaTeX. If you discover what you believe to be a bug with LaTeX, you can search this database to find out if it has already been reported.

Note that you can only search for bugs which were reported after December 1994, when we made the database public.


You can search for all the bug reports about:
which are the responsibility of:
with the status of:
containing the keyword:
or having the reference
(of the form category/number):
by pressing here:  .
PR number: tools/4173
Synopsis: showkeys breaks text when a theorem begins with \cite
Confidential: no
State: closed
Arrival date: Mon Oct 03 12:11:01 +0200 2011


Originator (email address hidden)
Mon, 3 Oct 2011 12:06:44 +0200

Description of bug:
The \@inlabelfalse command near the end of the showkeys.sty file causes a problem when a proclamation begins with \cite.  The name and number of the theorem get omitted or misplaced.

Sample file which indicates the problem:
========================================
% showkeys_bug.tex
\documentclass{article}

%\usepackage{amsthm}

\usepackage%[notcite]
	{showkeys} 

\newtheorem{theorem}{Theorem}

\title{Bug with the showkeys package}
\author{Ari Meir Brodsky}

\begin{document}
\maketitle

This document displays a bug with the \verb+showkeys+ package.  
The bug appears when using \verb+showkeys+ version 3.15.  
It seems to be caused by the \verb+\@inlabelfalse+ command 
near the end of the \verb+showkeys.sty+ file.
Also, using the \verb+[notcite]+ option prevents the bug from appearing.

\begin{theorem}\label{T:1}
This is an ordinary theorem.  

There is no problem here.
\end{theorem}

\begin{theorem}\label{T:2} \cite{abc}
This theorem begins by citing a bibliography item.  The phrase ``Theorem 2" is missing entirely!
\end{theorem}

Notice that we can still refer to Theorem~\ref{T:2}.

\begin{theorem}\label{T:3} \cite{def}
This theorem also begins by citing a bibliography item.

Now it has a second paragraph.  The phrase ``Theorem 3" has shifted to the beginning of the second paragraph.  
And wow, it says ``Theorem 2" here as well, unless the \verb+amsthm+ package is loaded!
\end{theorem}


% Bibliography
\begin{thebibliography}{99}
\bibitem{abc}
What's his name, \emph{What's the name of the book}.

\bibitem{def}
This book has no title.
\end{thebibliography}
\end{document}

The log file from running LaTeX on the sample:
==============================================
This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9) (preloaded format=xelatex 2011.9.20)  3 OCT 2011 05:52
entering extended mode
**showkeys_bug.tex

("C:\Documents and Settings\Ari-user\My Documents\Computer use\LaTeX\testing\sh
owkeys_bug.tex"
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, 
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\tools\showkeys.sty"
Package: showkeys 2007/08/07 v3.15 Show cite and label keys (DPC, MH)
)
\c@theorem=\count88

("C:\Documents and Settings\Ari-user\My Documents\Computer use\LaTeX\testing\sh
owkeys_bug.aux")
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
Requested font "cmr17" at 17.28pt
 -> cmr17
Requested font "cmr12" at 12.0pt
 -> cmr12
Requested font "cmr8" at 8.0pt
 -> cmr8
Requested font "cmr6" at 6.0pt
 -> cmr6
Requested font "cmmi12" at 12.0pt
 -> cmmi12
Requested font "cmmi8" at 8.0pt
 -> cmmi8
Requested font "cmmi6" at 6.0pt
 -> cmmi6
Requested font "cmsy10" at 12.0pt
 -> cmsy10
Requested font "cmsy8" at 8.0pt
 -> cmsy8
Requested font "cmsy6" at 6.0pt
 -> cmsy6
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <12> on input line 15.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 15.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 15.
Requested font "cmtt10" at 10.0pt
 -> cmtt10

Overfull \hbox (0.99005pt too wide) in paragraph at lines 17--22
\OT1/cmr/m/n/10 when us-ing []\OT1/cmtt/m/n/10 showkeys \OT1/cmr/m/n/10 ver-sio
n 3.15. It seems to be caused by the []\OT1/cmtt/m/n/10 \@inlabelfalse
 []

Requested font "cmbx10" at 10.0pt
 -> cmbx10
Requested font "cmti10" at 10.0pt
 -> cmti10
Requested font "cmr9" at 9.0pt
 -> cmr9
Requested font "cmtt9" at 9.0pt
 -> cmtt9
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 29.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 29.
Requested font "cmtt8" at 8.0pt
 -> cmtt8
Requested font "cmr12" at 14.4pt
 -> cmr12
Requested font "cmbx12" at 14.4pt
 -> cmbx12
[1

]
("C:\Documents and Settings\Ari-user\My Documents\Computer use\LaTeX\testing\sh
owkeys_bug.aux") ) 
Here is how much of TeX's memory you used:
 330 strings out of 429156
 3602 string characters out of 3168943
 52458 words of memory out of 3000000
 3648 multiletter control sequences out of 15000+200000
 8736 words of font info for 32 fonts, out of 3000000 for 9000
 786 hyphenation exceptions out of 8191
 23i,8n,18p,143b,189s stack positions out of 5000i,500n,10000p,200000b,50000s

Output written on showkeys_bug.pdf (1 page).

>Fix:
Unknown

David Carlisle
Wed, 23 Nov 2011 11:11:16 +0000
On 3 October 2011 11:11,  <ari.brodsky@utoronto.ca> wrote:
>>Number: =A0 =A0 =A0 =A0 4173
>>Category: =A0 =A0 =A0 tools
>>Synopsis: =A0 =A0 =A0 showkeys breaks text when a theorem begins with \ci=
te

Thanks for your report, and your off-list confirmation that it worked
with SK 3.12.

I'll look in to it and report back via this bug address.

David


David Carlisle
Wed, 23 Nov 2011 22:33:45 +0000
I think your are correct that the @inlabelfalse is the culprit.
I think that the fix is to change the file so that it ends as below.
If you change this please change the \providespackage line to note
that your package has been modified

          [2007/08/07 v3.15 Show cite and label keys (DPC, MH)
modified for tools/4173]

I think the fix required is:

\def\SK@@ref#1>#2\SK@{%
%  {\@inlabelfalse\leavevmode\vbox to\z@{%
% revert change made at {v3.14}{2006/09/25}
% because of tools/4173
% instead make vbox color safe by adding extra group
  \leavevmode\vbox to\z@{{%
    \vss
    \SK@refcolor
    \rlap{\vrule\raise .75em%
       \hbox{\underbar{\normalfont\footnotesize\ttfamily#2}}}}}}
\endinput
%%
%% End of file `showkeys.sty'.



thanks again for your report, and sorry about the inconvenience,

David


"Ari Meir Brodsky"
Wed, 23 Nov 2011 19:10:47 -0500
Hi David,
Thanks very much for the fix.  I look forward to downloading the =
corrected
version in the next MiKTeX update.

Thanks,
-Ari

-----------------------
Ari M. Brodsky
ari.brodsky@utoronto.ca


-----Original Message-----
From: d.p.carlisle@gmail.com [mailto:d.p.carlisle@gmail.com] On Behalf =
Of
David Carlisle
Sent: 23.Nov.2011 5:34 PM
To: ari.brodsky@utoronto.ca
Cc: latex-bugs@latex-project.org
Subject: Re: tools/4173: showkeys breaks text when a theorem begins with
\cite


I think your are correct that the @inlabelfalse is the culprit. I think =
that
the fix is to change the file so that it ends as below. If you change =
this
please change the \providespackage line to note that your package has =
been
modified

          [2007/08/07 v3.15 Show cite and label keys (DPC, MH) modified =
for
tools/4173]

I think the fix required is:

\def\SK@@ref#1>#2\SK@{%
%  {\@inlabelfalse\leavevmode\vbox to\z@{%
% revert change made at {v3.14}{2006/09/25}
% because of tools/4173
% instead make vbox color safe by adding extra group
  \leavevmode\vbox to\z@{{%
    \vss
    \SK@refcolor
    \rlap{\vrule\raise .75em%
       \hbox{\underbar{\normalfont\footnotesize\ttfamily#2}}}}}}
\endinput
%%
%% End of file `showkeys.sty'.



thanks again for your report, and sorry about the inconvenience,

David

State-Changed-From-To: open->closed
State-Changed-By: gnats
State-Changed-When: Tue, 22 Apr 2014 00:42:19 +0200
State-Changed-Why:


Address information
Copyright 1994 — 2011 the LaTeX3 project and Alan Jeffrey.


The LaTeX home page