summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/labelschanged/labelschanged.sty
blob: 01cb622ee7636843809c1697e7cbf51cc33b2735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%%
%% This is file `labelschanged.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% labelschanged.dtx  (with options: `package')
%% This is a generated file.
%% 
%% Packaged, documented, and maintained by Brian Dunn.
%% 
%% Based on code by David Carlisle.
%% 
%% In the public domain.
%% 
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{labelschanged}
    [2017/12/11 v1.0 Identifies endlessly-changing labels.]


\def\@testdef #1#2#3{%
    \def\reserved@a{#3}%
    \expandafter \ifx \csname #1@#2\endcsname \reserved@a  \else%
        \typeout{^^JLabel `#2' has changed:^^J%
        \meaning\reserved@a^^J%
        \expandafter\meaning\csname #1@#2\endcsname^^J}%
        \@tempswatrue%
    \fi%
}


\endinput
%%
%% End of file `labelschanged.sty'.