summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/listlbls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-07-26 23:03:58 +0000
committerKarl Berry <karl@freefriends.org>2014-07-26 23:03:58 +0000
commitf24688afffa8c38ec19dfb9cd0a0a3e5d4267f24 (patch)
tree2caf1cdd038a911514f4f0ebebbc5d194cde18cb /Master/texmf-dist/tex/latex/listlbls
parent4a9987c60ecf28083f2701f4a5abfa724d6a56f0 (diff)
listlbls (26jul14)
git-svn-id: svn://tug.org/texlive/trunk@34735 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/listlbls')
-rw-r--r--Master/texmf-dist/tex/latex/listlbls/listlbls.sty59
1 files changed, 59 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/listlbls/listlbls.sty b/Master/texmf-dist/tex/latex/listlbls/listlbls.sty
new file mode 100644
index 00000000000..f20e430e534
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/listlbls/listlbls.sty
@@ -0,0 +1,59 @@
+%%
+%% This is file `listlbls.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% listlbls.dtx (with options: `package')
+%% ----------------------------------------------------------------
+%% listlbls --- Creates a list of all labels used throughout a document
+%% Author: Norbert Melzer
+%% E-mail: timmelzer@gmail.com
+%% License: Released under the LaTeX Project Public License v1.3c or later
+%% See: http://www.latex-project.org/lppl.txt
+%% ----------------------------------------------------------------
+%%
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackage{listlbls}
+ [2014/07/25 v1.01 Creates a list of all labels used throughout a document]
+\DeclareOption{draft}{\newcommand\@draftmode{true}}
+\DeclareOption{final}{\let\@draftmode=\@undefined}
+\ProcessOptions\relax
+\long\def\@findlabel#1#2\@findlabel{%
+ \ifx\newlabel#1\lablist\expandafter{\the\lablist\@showlabel#2}\fi}
+\def\@showlabel#1#2{%
+ \par\noindent Label: \texttt{\detokenize{#1}}\dotfill\ref{#1} on page \pageref{#1}}
+\newtoks\lablist
+\newread\zz
+\immediate\openin\zz=\jobname.aux
+\loop
+\ifeof\zz\else
+\read\zz to \tmp
+\expandafter\@findlabel\tmp\relax\@findlabel
+\repeat
+\ifdefined\@draftmode
+ \newcommand\listoflabels{%
+ \the\lablist}
+\else
+ \let\listoflabels=\relax
+\fi
+%%
+%% Copyright (C) 2014 by Norbert Melzer <timmelzer@gmail.com>
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License (LPPL), either
+%% version 1.3c of this license or (at your option) any later
+%% version. The latest version of this license is in the file:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status) by
+%% Norbert Melzer.
+%%
+%% This work consists of the file listlbls.dtx and a Makefile.
+%% Running "make" generates the derived files README, listlbls.pdf and listlbls.sty.
+%% Running "make inst" installs the files in the user's TeX tree.
+%% Running "make install" installs the files in the local TeX tree.
+%%
+%%
+%% End of file `listlbls.sty'.