summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/showlabels
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-05-27 00:52:47 +0000
committerKarl Berry <karl@freefriends.org>2006-05-27 00:52:47 +0000
commit1bb32c08a2c77aee09e03c5644231eaca3770563 (patch)
tree485563bcd5c4d5209e3dc23841e155ee53a8d821 /Master/texmf-dist/tex/latex/showlabels
parentb0d72d1435388dc39986ff56051d9c37e18ab28b (diff)
showlabels update
git-svn-id: svn://tug.org/texlive/trunk@1598 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/showlabels')
-rw-r--r--Master/texmf-dist/tex/latex/showlabels/showlabels.sty22
1 files changed, 16 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/showlabels/showlabels.sty b/Master/texmf-dist/tex/latex/showlabels/showlabels.sty
index 9c491462684..85319695262 100644
--- a/Master/texmf-dist/tex/latex/showlabels/showlabels.sty
+++ b/Master/texmf-dist/tex/latex/showlabels/showlabels.sty
@@ -8,7 +8,7 @@
%% Showlabels: Style to display labels in the margin
%% This is the showlabels package
%%
-%% This software is copyright, 1999, 2001--2005, Norman Gray.
+%% This software is copyright, 1999, 2001--2006, Norman Gray.
%%
%% This program is free software; you can redistribute it and/or
%% modify it under the terms of the GNU General Public License
@@ -30,12 +30,12 @@
%% See the file LICENCE for a copy of the GPL.
%% You can also find an online copy at http://www.gnu.org/copyleft/gpl.html .
%%
-%% $Id: showlabels.dtx,v 1.26 2005/03/17 18:39:35 norman Exp $
+%% $Id: showlabels.dtx,v 1.28 2006/05/26 16:29:11 norman Exp $
%%
\def\ParseRCSDate$#1: #2 #3 ${\def\SL@Date{#2}}
-\ParseRCSDate$Date: 2005/03/17 18:39:35 $
+\ParseRCSDate$Date: 2006/05/26 16:29:11 $
\def\filename{showlabels}
-\def\fileversion{1.5a}
+\def\fileversion{1.6}
\def\filedate{\SL@Date}
\def\docdate{\SL@Date}
\def\filemaintainer{norman@astro.gla.ac.uk}
@@ -82,11 +82,21 @@
\AtBeginDocument{\csname SL@init#1\endcsname}%
\expandafter\def\csname SL@#1\endcsname{\SL@showlabels{#1}}
}
-\def\SL@showlabels#1#2{%
+\def\SL@showlabels#1{%
+ \def\@tempa{\csname SL@orig#1\endcsname}
+ \@ifnextchar[\SL@showlabelsopt\SL@showlabelsplain
+}
+\def\SL@showlabelsopt[#1]#2{%
\@bsphack
\SL@setlabel{#2}\relax
\ifhmode \spacefactor\@savsf \ifdim\@savsk>\z@ \hskip1sp \fi\fi
- \csname SL@orig#1\endcsname{#2}%
+ \@tempa[#1]{#2}%
+}
+\def\SL@showlabelsplain#1{%
+ \@bsphack
+ \SL@setlabel{#1}\relax
+ \ifhmode \spacefactor\@savsf \ifdim\@savsk>\z@ \hskip1sp \fi\fi
+ \@tempa{#1}%
}
\def\SL@initmakecaption{%
\let\SL@origmakecaption\@makecaption