summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/showlabels
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-12-08 22:02:12 +0000
committerKarl Berry <karl@freefriends.org>2013-12-08 22:02:12 +0000
commit122cba4bcd2c885728520b93eee930a448ad8bf8 (patch)
tree6521fff46f977e8496c70480b303189a85786b5b /Master/texmf-dist/tex/latex/showlabels
parent8a0e29b0e58b2bc46dd9227f4d3e6c009414306c (diff)
showlabels (8dec13)
git-svn-id: svn://tug.org/texlive/trunk@32364 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/showlabels')
-rw-r--r--Master/texmf-dist/tex/latex/showlabels/showlabels.sty57
1 files changed, 26 insertions, 31 deletions
diff --git a/Master/texmf-dist/tex/latex/showlabels/showlabels.sty b/Master/texmf-dist/tex/latex/showlabels/showlabels.sty
index 9edf8e9b878..ccbbeb32ec0 100644
--- a/Master/texmf-dist/tex/latex/showlabels/showlabels.sty
+++ b/Master/texmf-dist/tex/latex/showlabels/showlabels.sty
@@ -8,32 +8,26 @@
%% Showlabels: Style to display labels in the margin
%% This is the showlabels package
%%
-%% This software is copyright, 1999, 2001--2009, Norman Gray.
+%%%% Copyright 2005--2013, Norman Gray
%%
-%% This program is free software; you can redistribute it and/or
-%% modify it under the terms of the GNU General Public License
-%% as published by the Free Software Foundation; either version 2
-%% of the License, or (at your option) any later version.
+%% 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
+%% 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.
%%
-%% This program is distributed in the hope that it will be useful,
-%% but WITHOUT ANY WARRANTY; without even the implied warranty of
-%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-%% GNU General Public License for more details.
+%% This work has the LPPL maintenance status `maintained'.
%%
-%% You should have received a copy of the GNU General Public License
-%% along with this program; if not, write to the Free Software
-%% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-%%
-%% Author: Norman Gray, norman@astro.gla.ac.uk.
-%% Department of Physics and Astronomy, University of Glasgow, UK
-%%
-%% 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 .
+%% 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.
\def\filename{showlabels}
-\def\fileversion{1.6.5}
-\def\filedate{2009/05/29}
-\def\docdate{2009 May 29}
+\def\fileversion{1.6.6}
+\def\filedate{2013/12/06}
+\def\docdate{2013 December 6}
\def\filemaintainer{norman@astro.gla.ac.uk}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{showlabels}[\filedate\space v\fileversion]
@@ -77,7 +71,7 @@
\@ifundefined{ttfamily}
{\providecommand{\showlabelfont}{\small\tt}}
{\providecommand{\showlabelfont}{\small\ttfamily}}
-\providecommand{\showlabelsetlabel}[1]{\normalfont\showlabelfont #1}
+\providecommand{\showlabelsetlabel}[1]{{\normalfont\showlabelfont #1}}
\def\SL@gobblethree#1#2#3{}
\def\SL@prlabelname#1{%
\expandafter\expandafter\expandafter\SL@gobblethree
@@ -146,21 +140,22 @@
\else
\ifSL@setleft
\hbox to 0pt{%
-\hss
-\vbox to 0pt{\vss
- \hbox to 0pt{\hss\box\@tempboxa}%
- \hrule width 0.05em height 1.5ex depth 0pt
-}}%
+ \hss
+ \vbox to 0pt{\vss
+ \hbox to 0pt{\hss\box\@tempboxa}%
+ \showlabelrefline
+ }}%
\else
\hbox to 0pt{%
-\vbox to 0pt{\vss
- \box\@tempboxa
- \hrule width 0.05em height 1.5ex depth 0pt
-}\hss}%
+ \vbox to 0pt{\vss
+ \box\@tempboxa
+ \showlabelrefline
+ }\hss}%
\fi
\penalty10000
\fi
}
+\def\showlabelrefline{\hrule width 0.05em height 1.5ex depth 0pt }
\def\SL@margintext#1{{\showlabelsetlabel{\{\SL@prlabelname{#1}\}}}}
\def\SL@righttext#1{\hfill\rlap{\quad\SL@margintext{#1}}}
\def\SL@lefttext #1{\llap{\SL@margintext{#1}\quad}\hfill}