summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/refcheck
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-02-15 23:58:19 +0000
committerKarl Berry <karl@freefriends.org>2013-02-15 23:58:19 +0000
commitc1a3181be2e0466144b193df768e3fd64eaa6106 (patch)
tree003a4a247338d85cbb0815abc47225bc3834762a /Master/texmf-dist/tex/latex/refcheck
parentdcd3dfee2f53020c529e9289c438d3b8c661650e (diff)
refcheck (15feb13)
git-svn-id: svn://tug.org/texlive/trunk@29128 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/refcheck')
-rw-r--r--Master/texmf-dist/tex/latex/refcheck/refcheck.sty59
1 files changed, 30 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/latex/refcheck/refcheck.sty b/Master/texmf-dist/tex/latex/refcheck/refcheck.sty
index 702042f4158..c6f4fc29394 100644
--- a/Master/texmf-dist/tex/latex/refcheck/refcheck.sty
+++ b/Master/texmf-dist/tex/latex/refcheck/refcheck.sty
@@ -2,11 +2,11 @@
% checks lost and useless labels, shows `keys' of \label
% in the margins
%
-% version 1.9 for LaTeX2e
-% 31 March 2004
+% version 1.9.1 for LaTeX2e, 14 February 2013
+% (minor correction of ver. 1.9, issued on 31 March 2004)
%
-% Copyright 1997--2004 by Oleg Motygin
-% (mov@snark.ipme.ru, mov@mail15.com)
+% Copyright 1997--2004, 2013 by Oleg Motygin
+% (mov222@gmail.com, mov@mail15.com)
% this program is free software; you can redistribute it and/or
% modify it under the terms of the GNU General Public License
%
@@ -24,9 +24,9 @@
% Options msgs (default) and nomsgs state whether refcheck writes
% its messages to .log file or not.
% The messages have the format
-% <Info by RefCheck> Unused bibitem..
-% <Info by RefCheck> Unused label..
-% <Info by RefCheck> Unlabelled equation..
+% Package refcheck Warning: Unused bibitem..
+% Package refcheck Warning: Unused label..
+% Package refcheck Warning: Unlabelled equation..
%
% The check of unlabelled equations can be switched off by the option
% ignoreunlbld and on (default) by the option chkunlbld.
@@ -50,10 +50,10 @@
%
\def\filename{refcheck}
-\def\fileversion{v1.9}
-\def\filedate{2004/03/31}
+\def\fileversion{v1.9.1}
+\def\filedate{2013/02/14}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{refcheck}[2004/03/31 v1.9]
+\ProvidesPackage{refcheck}[2013/02/14 v1.9.1]
\let\mark@size=\footnotesize
\newif\if@labelled
@@ -86,14 +86,14 @@
\def\checkunlbld{\global\@show@unl@bldtrue}
\def\ignoreunlbld{\global\@show@unl@bldfalse}
-\def\@warning@rc@#1{\if@give@msgs\typeout{<Info by RefCheck> #1}\else\relax\fi}
+\def\@warning@rc@#1{\if@give@msgs\PackageWarning{refcheck}{#1}\else\relax\fi}
\newif\if@unsdlbl
\newtoks\btoks
\AtBeginDocument{%
-\typeout{Package: `refcheck' v1.9\space<2004/03/31>}%
+\typeout{Package: `refcheck' v1.9.1\space<2013/02/14>}%
\typeout{options: showrefs, showcites, msgs, chckunlbld}%
\immediate\write\@auxout{%
\string\providecommand\string{\string\usedref\string}[1]%
@@ -106,7 +106,7 @@
\renewcommand{\label}[1]{\@bsphack\global\@labelledtrue
\gdef\last@lbl{\@verbatim@{#1}}%
\@ifundefined{lab@#1}{\global\@unsdlbltrue
- \@warning@rc@{Unused label `#1' on page \thepage}}%
+ \@warning@rc@{Unused label `#1'}}%
{\global\@unsdlblfalse}%
\ifmmode\relax\else
{\setbox0=\vbox{\vss\@setnmmarginlbl}%
@@ -126,32 +126,33 @@
\expandafter\DeclareRobustCommand\expandafter
{\csname relax\string\pageref\endcsname}[1]{\@@pageref@@{#1}\wrtusdrf{#1}}%
\expandafter\let\expandafter\pageref\csname relax\string\pageref\endcsname
-\renewcommand{\bibitem}[2][\@nil]{%
- \@ifundefined{cit@#2}{%
- \@warning@rc@{Unused bibitem `#2' on page \thepage}%
+%
+\def\@bibitem@proceed@#1{%
+\@ifundefined{cit@#1}{\@warning@rc@{Unused bibitem `#1'}%
\if@show@cite
\gdef\@biblabel{\makebox[0pt][r]{\zero@height{{\mark@size{\bfseries\upshape?}}%
- \underline{\@verbatim@{#2}}{\mark@size{\bfseries\upshape?}}$\,$}}%
- \@@@biblabel@@
- }%
+ \underline{\@verbatim@{#1}}{\mark@size{\bfseries\upshape?}}$\,$}}%
+ \@@@biblabel@@}%
\fi
}{%
\if@show@cite
\set@fbox@par
- \gdef\@biblabel{\makebox[0pt][r]{\zero@height{\fbox{\@verbatim@{#2}}$\,$}}\@@@biblabel@@}%
+ \gdef\@biblabel{\makebox[0pt][r]{\zero@height{\fbox{\@verbatim@{#1}}$\,$}}\@@@biblabel@@}%
\fi
- }%
- \ifx#1\@nil\@@bibitem@@{#2}%
- \else\@@bibitem@@[#1]{#2}%
- \fi
-}%
+ }}%
+\def\bibitem{\@ifnextchar[\@lbibitem@rc@\@bibitem@rc@}%
+\def\@lbibitem@rc@[#1]#2{%
+\@bibitem@proceed@{#2}\@@bibitem@@[#1]{#2}}%
+\def\@bibitem@rc@#1{%
+\@bibitem@proceed@{#1}\@@bibitem@@{#1}}%
+%
\@ifpackageloaded{amsmath}{% With AMS-LaTeX tags
\let\@@label@@in@@=\label@in@display
\def\label@in@display#1{\@bsphack\global\@labelledtrue
\gdef\last@lbl{\@verbatim@{#1}}%
\@ifundefined{lab@#1}{%
\global\@unsdlbltrue
- \@warning@rc@{Unused label `#1' on page \thepage}}%
+ \@warning@rc@{Unused label `#1'}}%
{\global\@unsdlblfalse}%
\@@label@@in@@{#1}\@esphack
}%
@@ -164,7 +165,7 @@
\def\tagform@#1{\@tagform@@@@{#1}%
\ifmeasuring@\relax\else\if@display
\if@labelled\relax\else\if@show@unl@bld
- \@warning@rc@{Unlabelled equation (\theequation) on page \thepage}%
+ \@warning@rc@{Unlabelled equation (\theequation)}%
\fi\fi
\@setmarginlbl
\fi\fi
@@ -172,7 +173,7 @@
}{\let\@@eqnnum@@=\@eqnnum
\def\@eqnnum{%
\if@labelled\relax\else\if@show@unl@bld
- \@warning@rc@{Unlabelled equation (\theequation) on page \thepage}%
+ \@warning@rc@{Unlabelled equation (\theequation)}%
\fi\fi
\@@eqnnum@@
\@setmarginlbl
@@ -214,7 +215,7 @@
\def\zero@height#1{\setbox0=\hbox{#1}\dp0=0pt\ht0=0pt\copy0}
-\long\def\@verbatim@#1{\def\next{#1}%
+\long\def\@verbatim@#1{\edef\next{#1}%
{\mark@size\ttfamily\upshape\frenchspacing\expandafter\@strip@\meaning\next}}
\def\@strip@#1>{}