summaryrefslogtreecommitdiff
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
parent4a9987c60ecf28083f2701f4a5abfa724d6a56f0 (diff)
listlbls (26jul14)
git-svn-id: svn://tug.org/texlive/trunk@34735 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/listlbls/Makefile35
-rw-r--r--Master/texmf-dist/doc/latex/listlbls/README9
-rw-r--r--Master/texmf-dist/doc/latex/listlbls/README.txt9
-rw-r--r--Master/texmf-dist/doc/latex/listlbls/listlbls.hd0
-rw-r--r--Master/texmf-dist/doc/latex/listlbls/listlbls.pdfbin0 -> 239653 bytes
-rw-r--r--Master/texmf-dist/source/latex/listlbls/listlbls.dtx241
-rw-r--r--Master/texmf-dist/source/latex/listlbls/listlbls.ins74
-rw-r--r--Master/texmf-dist/tex/latex/listlbls/listlbls.sty59
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/listlbls.tlpsrc0
11 files changed, 429 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/listlbls/Makefile b/Master/texmf-dist/doc/latex/listlbls/Makefile
new file mode 100644
index 00000000000..60063219279
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listlbls/Makefile
@@ -0,0 +1,35 @@
+NAME = listlbls
+SHELL = bash
+PWD = $(shell pwd)
+TEMP := $(shell mktemp -d)
+TDIR = $(TEMP)/$(NAME)
+VERS = $(shell ltxfileinfo -v $(NAME).dtx)
+LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL)
+UTREE = $(shell kpsewhich --var-value TEXMFHOME)
+
+all: $(NAME).pdf clean
+ test -e README.txt && mv README.txt README || exit 0
+$(NAME).pdf: $(NAME).dtx
+ pdflatex -shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null
+ if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi
+ if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi
+ pdflatex --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
+ pdflatex --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
+clean:
+ rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,ins,log,out}
+distclean: clean
+ rm -f $(NAME).{pdf,sty} README
+inst: all
+ mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME)
+ cp $(NAME).dtx $(UTREE)/source/latex/$(NAME)
+ cp $(NAME).sty $(UTREE)/tex/latex/$(NAME)
+ cp $(NAME).pdf $(UTREE)/doc/latex/$(NAME)
+install: all
+ sudo mkdir -p $(LOCAL)/{tex,source,doc}/latex/$(NAME)
+ sudo cp $(NAME).dtx $(LOCAL)/source/latex/$(NAME)
+ sudo cp $(NAME).sty $(LOCAL)/tex/latex/$(NAME)
+ sudo cp $(NAME).pdf $(LOCAL)/doc/latex/$(NAME)
+zip: all
+ mkdir $(TDIR)
+ cp $(NAME).{pdf,dtx} Makefile README $(TDIR)
+ cd $(TEMP); zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)
diff --git a/Master/texmf-dist/doc/latex/listlbls/README b/Master/texmf-dist/doc/latex/listlbls/README
new file mode 100644
index 00000000000..80ad7fccbf8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listlbls/README
@@ -0,0 +1,9 @@
+----------------------------------------------------------------
+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
+----------------------------------------------------------------
+
+Some text about the package: probably the same as the abstract.
diff --git a/Master/texmf-dist/doc/latex/listlbls/README.txt b/Master/texmf-dist/doc/latex/listlbls/README.txt
new file mode 100644
index 00000000000..80ad7fccbf8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listlbls/README.txt
@@ -0,0 +1,9 @@
+----------------------------------------------------------------
+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
+----------------------------------------------------------------
+
+Some text about the package: probably the same as the abstract.
diff --git a/Master/texmf-dist/doc/latex/listlbls/listlbls.hd b/Master/texmf-dist/doc/latex/listlbls/listlbls.hd
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listlbls/listlbls.hd
diff --git a/Master/texmf-dist/doc/latex/listlbls/listlbls.pdf b/Master/texmf-dist/doc/latex/listlbls/listlbls.pdf
new file mode 100644
index 00000000000..4a9cdb5b5ad
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listlbls/listlbls.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/listlbls/listlbls.dtx b/Master/texmf-dist/source/latex/listlbls/listlbls.dtx
new file mode 100644
index 00000000000..e900b5febef
--- /dev/null
+++ b/Master/texmf-dist/source/latex/listlbls/listlbls.dtx
@@ -0,0 +1,241 @@
+% \iffalse meta-comment
+%<*internal>
+\iffalse
+%</internal>
+%<*readme>
+----------------------------------------------------------------
+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
+----------------------------------------------------------------
+
+Some text about the package: probably the same as the abstract.
+%</readme>
+%<*internal>
+\fi
+\def\nameofplainTeX{plain}
+\ifx\fmtname\nameofplainTeX\else
+ \expandafter\begingroup
+\fi
+%</internal>
+%<*install>
+\input docstrip.tex
+\keepsilent
+\askforoverwritefalse
+\preamble
+----------------------------------------------------------------
+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
+----------------------------------------------------------------
+
+\endpreamble
+\postamble
+
+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.
+
+\endpostamble
+
+\usedir{tex/latex/listlbls}
+\generate{
+ \file{\jobname.sty}{\from{\jobname.dtx}{package}}
+}
+%</install>
+%<install>\endbatchfile
+%<*internal>
+\usedir{source/latex/listlbls}
+\generate{
+ \file{\jobname.ins}{\from{\jobname.dtx}{install}}
+}
+\nopreamble\nopostamble
+\usedir{doc/latex/listlbls}
+\generate{
+ \file{README.txt}{\from{\jobname.dtx}{readme}}
+}
+\ifx\fmtname\nameofplainTeX
+ \expandafter\endbatchfile
+\else
+ \expandafter\endgroup
+\fi
+%</internal>
+% \fi
+%
+% \iffalse
+%<*driver>
+\ProvidesFile{listlbls.dtx}
+%</driver>
+%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+%<package>\ProvidesPackage{listlbls}
+%<*package>
+ [2014/07/25 v1.01 Creates a list of all labels used throughout a document]
+%</package>
+%<*driver>
+\documentclass{ltxdoc}
+\usepackage[a4paper,margin=25mm,left=50mm,nohead]{geometry}
+\usepackage{colordoc}
+\usepackage{dox}
+\doxitem{Option}{option}{option}
+\usepackage[numbered]{hypdoc}
+\usepackage{xspace}
+\usepackage[draft]{listlbls}
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges
+\newcommand\TSE{\href{http://tex.stackexchange.com/}{\TeX-Stackexchange}\xspace}
+\begin{document}
+ \DocInput{\jobname.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \GetFileInfo{\jobname.dtx}
+% \DoNotIndex{\newcommand,\newenvironment,\def,\detokenize,\dotfill,\else,\endinput,\expandafter,\fi,\ifeof,\ifx,\immediate,\jobname,\par,\pageref,\openin,\noindent,\newtoks,\newread,\newlabel,\loop,\long,\read,\ref,\relax,\repeat,\texttt,\the,\tmp,\zz,\ProcessOptions,\let,\ifdefined,\DeclareOption}
+%
+%\title{\textsf{listlbls} --- Creates a list of all labels used throughout a document\thanks{This file
+% describes version \fileversion, last revised \filedate.}
+%}
+%\author{Norbert Melzer\thanks{E-mail: \href{mailto:timmelzer@gmail.com}{timmelzer@gmail.com}}}
+%\date{Released \filedate}
+%
+%\maketitle
+%
+%\changes{v1.00}{2014/07/25}{First public release}
+%\changes{v1.01}{2014/07/25}{Changed maintainer email}
+%\changes{v1.01}{2014/07/25}{Changed some internal stuff to make it releaseable on CTAN}
+%
+% \begin{abstract}
+% This is a package meant to help a \LaTeX-writer to keep track all the defined labels by typesetting a complete list of labels whereever the author requests it. Keep in mind, that you might need to have additional \LaTeX\ runs to get the references right.
+%
+% This package is based on an answer \textsc{David Carlisle}\ gave on \TSE in the thread \href{http://tex.stackexchange.com/questions/147695/list-of-all-labels-with-hyperlinks/147705#147705}{List of all labels with hyperlinks}.
+% \end{abstract}
+%
+% \section{Installation}\label{sec:install}
+%
+% \begin{enumerate}
+% \item Check out the sourcecode from \href{https://github.com/}{GitHub}:\\
+% |git clone git@github.com:NobbZ/listlbls.git|
+% \item Switch to the source-folder:\\|cd listlbls|
+% \item Checkout the branch/tag you desire: |master| for latest release, |develop| for latest builds (might be broken) or the version number desired.\\
+% |git checkout <branch/tag>|
+% \item Compile the document using |make|:\\
+% |make all|
+% \item You can do either a user-installation or a system-wide installation:
+% \begin{description}
+% \item[user:] |make inst|
+% \item[system:] |make install| (will ask for root!)
+% \end{description}
+% \end{enumerate}
+%
+% Alternatively you might find the package at CTAN and download it. Instead of |git clone| you had to download the package, unzip it, change into that folder and then continue with compilation (step 4 above).
+%
+% \section{Usage}\label{sec:usage}
+%
+% \subsection{Initialization}\label{ssec:use-init}
+%
+% Just activate the package as usual: |\usepackage|\oarg{options}|{listlbls}|
+%
+% \DescribeOption{draft} If |draft| is given as option, |\listoflabels| will typeset the list of labels.
+%
+% \DescribeOption{final} If |final| is given as option, |\listoflabels| will do nothing.
+%
+% Then anywhere in your document, you can use the |\listoflabels|-macro to typeset a list of labels. An example can be seen on page \pageref{sec:lolabels}.
+%
+% \DescribeMacro{\label} Use |\label| as you are used to it!
+%
+% \DescribeMacro{\listoflabels} This macro will typeset the list of labels when this module is in draft mode.
+%
+%\StopEventually{^^A
+% \PrintChanges
+%
+% \PrintIndex
+%
+% \section{List of Labels}\label{sec:lolabels}
+% \listoflabels
+%}
+%
+% \section{Implementation}
+%
+% \begin{macrocode}
+%<*package>
+% \end{macrocode}
+% \begin{option}{draft}
+% \changes{1.01}{2014/07/25}{Added option}
+% Check for |draft|-option:
+% \begin{macrocode}
+\DeclareOption{draft}{\newcommand\@draftmode{true}}
+% \end{macrocode}
+% \end{option}
+% \begin{option}{final}
+% \changes{1.01}{2014/07/25}{Added option}
+% Check for |final|-option:
+% \begin{macrocode}
+\DeclareOption{final}{\let\@draftmode=\@undefined}
+% \end{macrocode}
+% \end{option}
+% Process the options:
+% \begin{macrocode}
+\ProcessOptions\relax
+% \end{macrocode}
+% \begin{macro}{\@findlabel}
+% No explanation yet.
+% \begin{macrocode}
+\long\def\@findlabel#1#2\@findlabel{%
+ \ifx\newlabel#1\lablist\expandafter{\the\lablist\@showlabel#2}\fi}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@showlabel}
+% No explanation yet.
+% \begin{macrocode}
+\def\@showlabel#1#2{%
+ \par\noindent Label: \texttt{\detokenize{#1}}\dotfill\ref{#1} on page \pageref{#1}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macrocode}
+\newtoks\lablist
+\newread\zz
+\immediate\openin\zz=\jobname.aux
+\loop
+\ifeof\zz\else
+\read\zz to \tmp
+\expandafter\@findlabel\tmp\relax\@findlabel
+\repeat
+% \end{macrocode}
+% \begin{macrocode}
+\ifdefined\@draftmode
+% \end{macrocode}
+% \begin{macro}{\listoflabels}
+% Print a list of all available lables that are defined throughout the document.
+% \begin{macrocode}
+ \newcommand\listoflabels{%
+ \the\lablist}
+% \end{macrocode}
+% \end{macro}
+% \begin{macrocode}
+\else
+ \let\listoflabels=\relax
+\fi
+\endinput
+%</package>
+% \end{macrocode}
+%\Finale
diff --git a/Master/texmf-dist/source/latex/listlbls/listlbls.ins b/Master/texmf-dist/source/latex/listlbls/listlbls.ins
new file mode 100644
index 00000000000..46ed4da88e1
--- /dev/null
+++ b/Master/texmf-dist/source/latex/listlbls/listlbls.ins
@@ -0,0 +1,74 @@
+%%
+%% This is file `listlbls.ins',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% listlbls.dtx (with options: `install')
+%% ----------------------------------------------------------------
+%% 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
+%% ----------------------------------------------------------------
+%%
+\input docstrip.tex
+\keepsilent
+\askforoverwritefalse
+\preamble
+----------------------------------------------------------------
+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
+----------------------------------------------------------------
+
+\endpreamble
+\postamble
+
+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.
+
+\endpostamble
+
+\usedir{tex/latex/listlbls}
+\generate{
+ \file{\jobname.sty}{\from{\jobname.dtx}{package}}
+}
+\endbatchfile
+%%
+%% 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.ins'.
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'.
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 51b9d0e935e..682985fbf58 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -290,7 +290,7 @@ my @TLP_working = qw(
libris lilyglyphs limap linearA linegoal
lineno linguex
lipsum lisp-on-tex
- listbib listing listings listings-ext listliketab listofsymbols
+ listbib listing listings listings-ext listlbls listliketab listofsymbols
lithuanian liturg lkproof lm lm-math lmake lobster2
locality localloc logbox logical-markup-utils logicproof logicpuzzle
logpap logreq lollipop
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index 8696bba162d..09113ac47f4 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -456,6 +456,7 @@ depend linegoal
depend lipsum
depend lisp-on-tex
depend listing
+depend listlbls
depend listofsymbols
depend listliketab
depend lkproof
diff --git a/Master/tlpkg/tlpsrc/listlbls.tlpsrc b/Master/tlpkg/tlpsrc/listlbls.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/listlbls.tlpsrc