From 1bb32c08a2c77aee09e03c5644231eaca3770563 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 27 May 2006 00:52:47 +0000 Subject: showlabels update git-svn-id: svn://tug.org/texlive/trunk@1598 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/showlabels/showlabels.sty | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex') 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 -- cgit v1.2.3