summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/showlabels
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-06-09 22:09:12 +0000
committerKarl Berry <karl@freefriends.org>2016-06-09 22:09:12 +0000
commitc2dd4a1f282809d86d6dce3fca10225d9da37a3f (patch)
treec3d953104c5ab416c27dd6d195e15e70ebc073ef /Master/texmf-dist/tex/latex/showlabels
parent9bbb661832e0d0f03721cd45084b8c0b6e1abf15 (diff)
showlabels (9jun16)
git-svn-id: svn://tug.org/texlive/trunk@41322 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/showlabels')
-rw-r--r--Master/texmf-dist/tex/latex/showlabels/showlabels.sty38
1 files changed, 26 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/showlabels/showlabels.sty b/Master/texmf-dist/tex/latex/showlabels/showlabels.sty
index 408968da868..7942695bbc9 100644
--- a/Master/texmf-dist/tex/latex/showlabels/showlabels.sty
+++ b/Master/texmf-dist/tex/latex/showlabels/showlabels.sty
@@ -8,12 +8,12 @@
%% Showlabels: Style to display labels in the margin
%% This is the showlabels package
%%
-%%%% Copyright 1999, 2001--09, 2013--15, Norman Gray
+%%%% Copyright 1999, 2001-09, 2013-16, Norman Gray
%%
%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3
-%% of this license or (at your option) any later version.
-%% The latest version of this license is in
+%% conditions of the LaTeX Project Public Licence, either version 1.3
+%% of this licence or (at your option) any later version.
+%% The latest version of this licence is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
@@ -23,11 +23,15 @@
%% The Current Maintainer of this work is Norman Gray <http://nxg.me.uk>
%%
%% This work consists of the files showlabels.dtx and showlabels.ins,
-%% and the derived file showlabels.cls.
+%% and the derived file showlabels.sty.
+
+%%%% File: showlabels.dtx
+%%%% Source: 95a544e6b41b, 2016-06-09T16:51:03+01:00
+
\def\filename{showlabels}
-\def\fileversion{1.7}
-\def\filedate{2015/12/08}
-\def\docdate{2015 December 8}
+\def\fileversion{1.8}
+\def\filedate{2016/06/09}
+\def\docdate{2016 June 9}
\def\filemaintainer{norman@astro.gla.ac.uk}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{showlabels}[\filedate\space v\fileversion]
@@ -55,9 +59,7 @@
\fi
\global\let\SL@labelname\relax}}
\ifSL@AMS
- \let\SL@orig@maketag@@@=\maketag@@@
- \def\SL@maketag@@@#1{%
- \SL@orig@maketag@@@{#1}%
+ \def\SL@setlabel@ams{%
\ifx\df@label\@empty
\ifx\SL@labelname\relax
% do nothing
@@ -69,6 +71,16 @@
\fi
\global\let\SL@labelname\relax
}
+ \let\SL@orig@maketag@@@=\maketag@@@
+ \def\SL@maketag@@@#1{%
+ \SL@orig@maketag@@@{#1}%
+ \SL@setlabel@ams
+ }
+ \let\SL@orig@tagform@\tagform@
+ \def\SL@tagform@#1{%
+ \SL@orig@tagform@{#1}%
+ \SL@setlabel@ams
+ }
\else
%% \let\SL@eqnnum=\@eqnnum
%% \def\@eqnnum{%
@@ -330,7 +342,9 @@
\ifx\showlabels\@gobble
% do nothing -- we're in [final] mode (see test case t13)
\else
- \let\maketag@@@\SL@maketag@@@
+ \AtBeginDocument{%
+ \let\maketag@@@\SL@maketag@@@
+ \let\tagform@\SL@tagform@}
\fi
\fi
\@ifundefined{theIEEEsubequationdis}\relax % and \theequationdis