texlive[67215] Master/texmf-dist: listlbls (25may23)
commits+karl at tug.org
commits+karl at tug.org
Thu May 25 22:37:25 CEST 2023
Revision: 67215
http://tug.org/svn/texlive?view=revision&revision=67215
Author: karl
Date: 2023-05-25 22:37:24 +0200 (Thu, 25 May 2023)
Log Message:
-----------
listlbls (25may23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/listlbls/listlbls.pdf
trunk/Master/texmf-dist/source/latex/listlbls/listlbls.dtx
trunk/Master/texmf-dist/tex/latex/listlbls/listlbls.sty
Added Paths:
-----------
trunk/Master/texmf-dist/source/latex/listlbls/Makefile
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/listlbls/Makefile
trunk/Master/texmf-dist/doc/latex/listlbls/listlbls.hd
trunk/Master/texmf-dist/source/latex/listlbls/listlbls.ins
Deleted: trunk/Master/texmf-dist/doc/latex/listlbls/Makefile
===================================================================
--- trunk/Master/texmf-dist/doc/latex/listlbls/Makefile 2023-05-25 20:37:01 UTC (rev 67214)
+++ trunk/Master/texmf-dist/doc/latex/listlbls/Makefile 2023-05-25 20:37:24 UTC (rev 67215)
@@ -1,48 +0,0 @@
-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 README.md README clean
-
-README: README.txt
- cp README.txt README
-
-README.txt: $(NAME).pdf
-
-README.md: $(NAME).pdf
-
-$(NAME).pdf: $(NAME).dtx
- xelatex -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
- xelatex -shell-escape -recorder -interaction=nonstopmode $(NAME).dtx > /dev/null
- xelatex -shell-escape -recorder -interaction=nonstopmode $(NAME).dtx > /dev/null
-
-clean:
- rm -f *.fls
- rm -f $(NAME).{aux,toc,fls,glo,gls,hd,idx,ilg,ind,ins,log,out}
-
-distclean: clean
- rm -f $(NAME).{pdf,sty} README{,.{md,txt}}
-
-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)
Deleted: trunk/Master/texmf-dist/doc/latex/listlbls/listlbls.hd
===================================================================
Modified: trunk/Master/texmf-dist/doc/latex/listlbls/listlbls.pdf
===================================================================
(Binary files differ)
Added: trunk/Master/texmf-dist/source/latex/listlbls/Makefile
===================================================================
--- trunk/Master/texmf-dist/source/latex/listlbls/Makefile (rev 0)
+++ trunk/Master/texmf-dist/source/latex/listlbls/Makefile 2023-05-25 20:37:24 UTC (rev 67215)
@@ -0,0 +1,50 @@
+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)
+PREFIX ?= $(LOCAL)
+LATEX = xelatex
+SUDO = sudo
+
+all: $(NAME).pdf README.md README
+ $(MAKE) clean
+
+README: README.txt
+ cp README.txt README
+
+README.txt: $(NAME).pdf
+
+README.md: $(NAME).pdf
+
+$(NAME).pdf: $(NAME).dtx
+ $(LATEX) -shell-escape -recorder $(NAME).dtx
+ 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
+ $(LATEX) -shell-escape -recorder -interaction=scrollmode $(NAME).dtx
+ $(LATEX) -shell-escape -recorder -interaction=scrollmode $(NAME).dtx
+ $(LATEX) -shell-escape -recorder -interaction=scrollmode $(NAME).dtx
+
+clean:
+ rm -f *.fls
+ rm -f $(NAME).{aux,toc,fls,glo,gls,hd,idx,ilg,ind,ins,log,out}
+
+distclean: clean
+ rm -f $(NAME).{pdf,sty} README{,.{md,txt}}
+
+inst: all
+ $(MAKE) install PREFIX=$(UTREE) SUDO=""
+
+install: all
+ $(SUDO) mkdir -p $(PREFIX)/{tex,source,doc}/latex/$(NAME)
+ $(SUDO) cp $(NAME).dtx $(PREFIX)/source/latex/$(NAME)
+ $(SUDO) cp $(NAME).sty $(PREFIX)/tex/latex/$(NAME)
+ $(SUDO) cp $(NAME).pdf $(PREFIX)/doc/latex/$(NAME)
+
+zip: all
+ mkdir $(TDIR)
+ cp $(NAME).{pdf,dtx} Makefile README $(TDIR)
+ cd $(TEMP); zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)
Property changes on: trunk/Master/texmf-dist/source/latex/listlbls/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/source/latex/listlbls/listlbls.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/listlbls/listlbls.dtx 2023-05-25 20:37:01 UTC (rev 67214)
+++ trunk/Master/texmf-dist/source/latex/listlbls/listlbls.dtx 2023-05-25 20:37:24 UTC (rev 67215)
@@ -120,17 +120,17 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{listlbls}
%<*package>
- [2014/08/04 v1.03 Creates a list of all labels used throughout a document]
+ [2023/05/24 v1.04 Creates a list of all labels used throughout a document]
%</package>
%<*driver>
\documentclass{ltxdoc}
\usepackage{microtype}
-\usepackage{libertine}
-\usepackage[a4paper,margin=25mm,left=50mm,nohead]{geometry}
-\usepackage{colordoc}
+\usepackage{lmodern}
+\usepackage{fontawesome5}
+\usepackage[a4paper,margin=25mm,left=45mm,nohead]{geometry}
\usepackage{multicol}
-\usepackage{dox}
-\doxitem{Option}{option}{option}
+\usepackage[reportchangedates]{doc}
+\usepackage{dtxdescribe}
\usepackage[numbered]{hypdoc}
\usepackage{xspace}
\usepackage{nameref}
@@ -140,6 +140,10 @@
\CodelineIndex
\RecordChanges
\newcommand\TSE{\href{http://tex.stackexchange.com/}{\TeX-Stackexchange}\xspace}
+
+\newcommand\link[2]{\href{#1}{#2}\footnote{\nolinkurl{#1}}}
+\newcommand\ghissue[3]{\link{https://github.com/#1/#2/issues/#3}{\faIcon{github}~#1/#2\##3}}
+\newcommand\thisissue[1]{\ghissue{nobbz}{listlbls}{#1}}
\begin{document}
\DocInput{\jobname.dtx}
\end{document}
@@ -160,9 +164,11 @@
%\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}
-%\changes{v1.02}{2014/07/26}{Local option wins agains global option}
+%\changes{v1.02}{2014/07/27}{Local option wins agains global option}
%\changes{v1.02}{2014/07/27}{Added languag-support for English, German and French.}
%\changes{v1.03}{2014/08/04}{Proceeding with namespacing internal macros}
+%\changes{v1.04}{2023/05/24}{Fix build problems due to bitrotten dependencies}
+%\changes{v1.04}{2023/05/24}{Switch back to lmodern for documentation}
% \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.
%
@@ -183,8 +189,10 @@
% \subsection{From Github}\label{ssec:inst-gh}
%
% \begin{enumerate}
-% \item Check out the sourcecode from \href{https://github.com/}{GitHub}:\\
-% |git clone git at github.com:NobbZ/listlbls.git|
+% \item Check out the sourcecode from \link{https://github.com/}{GitHub}:\\
+% |git clone https://github.com/NobbZ/nixos-config.git| or\\
+% |git clone git at github.com:NobbZ/listlbls.git| or\\
+% |gh repo clone NobbZ/listlbls|
% \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>|
@@ -240,9 +248,12 @@
%
% 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{special:listoflabels}.
%
-% \DescribeMacro{\label} Use |\label| as you are used to it!
+% \DescribeMacro{\label} \marg{name}
+% 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. It will itself register the label ``|special:listoflabels|''.
+% \DescribeMacro{\listoflabels} \oarg{label}
+% This macro will typeset the list of labels when this module is in draft mode.
+% It will itself register the label from the optional arg, defaulting to ``|special:listoflabels|''.
%
%\StopEventually{^^A
% \PrintChanges
@@ -254,11 +265,11 @@
%
% \section{Contribution and bugreports}\label{sec:contribute}
%
-% If you have feature-requests or bug-reports, please feel free to report them on the \href{https://github.com/NobbZ/listlbls}{project page at GitHub}.
+% If you have feature-requests or bug-reports, please feel free to report them on the \link{https://github.com/NobbZ/listlbls}{project page at GitHub}.
%
% If you want to contribute then follow these steps:
% \begin{enumerate}
-% \item Visit the \href{https://github.com/NobbZ/listlbls}{project page at GitHub},
+% \item Visit the \link{https://github.com/NobbZ/listlbls}{project page at GitHub},
% \item forkt it,
% \item clone it to your local machine,
% \item create a branch ``|feature/|\meta{feature name}'',
@@ -268,6 +279,17 @@
% \item and wait for approval.
% \end{enumerate}
% After approval your code will be merged to the |development|-branch and I will generally not accept pull-requests that edit |develop| directly.
+%
+% \section{Known issues and limitations}\label{sec:issues}
+% \changes{v1.04}{2023/05/24}{Add issues and limitations section}
+%
+% \subsection{\texttt{\textbackslash{}include}}\label{ssec:issues-include}
+%
+% Documents containing |\include| will not work.
+% Currently there is no logic to recurse through the different |.aux|-files.
+%
+% Please see \thisissue{4} for more information.
+%
% \section{Implementation}\label{sec:implementation}
%
% \begin{macrocode}
@@ -280,7 +302,7 @@
% \subsection{Options}\label{ssec:impl-options}
% \begin{option}{draft}
% \changes{v1.01}{2014/07/25}{Added option}
-% \changes{v1.02}{2014/07/26}{Introduced @ifdraft}
+% \changes{v1.02}{2014/07/27}{Introduced @ifdraft}
% Check for |draft|-option:
% \begin{macrocode}
\DeclareOption{draft}{\llbls at drafttrue}
@@ -288,7 +310,7 @@
% \end{option}
% \begin{option}{final}
% \changes{v1.01}{2014/07/25}{Added option}
-% \changes{v1.02}{2014/07/26}{Introduced @ifdraft}
+% \changes{v1.02}{2014/07/27}{Introduced @ifdraft}
% Check for |final|-option:
% \begin{macrocode}
\DeclareOption{final}{\llbls at draftfalse}
@@ -295,7 +317,7 @@
% \end{macrocode}
% \end{option}
% \begin{option}{totoc}
-% \changes{v1.02}{2014/07/26}{Added option}
+% \changes{v1.02}{2014/07/27}{Added option}
% Check for |totoc|-option:
% \begin{macrocode}
\DeclareOption{totoc}{\llbls at totoctrue}
@@ -302,7 +324,7 @@
% \end{macrocode}
% \end{option}
% \begin{option}{notoc}
-% \changes{v1.02}{2014/07/26}{Added option}
+% \changes{v1.02}{2014/07/27}{Added option}
% Check for |notoc|-option:
% \begin{macrocode}
\DeclareOption{notoc}{\llbls at totocfalse}
@@ -368,14 +390,27 @@
{llbls-onpage}%
{\`a la page}
% \end{macrocode}
+% \subsubsection{Portuguese}\label{sssec:impl-i18n-pt}
+% \changes{v1.04}{2023/05/24}{Add Portuguese translation}
+% \begin{macrocode}
+\DeclareTranslation{Portuguese}%
+ {llbls-listoflabels}%
+ {Lista de R\'{o}tulos}
+\DeclareTranslation{Portuguese}%
+ {llbls-onpage}%
+ {na p\'{a}gina}
+% \end{macrocode}
% \subsection{Internal stuff}\label{ssec:impl-internal}
% \begin{macro}{\llbls at headline}\begin{macro}{\llbls at toccommand}\begin{macro}{\llbls at tocgroup}
% Determine if we have |\chapter|s or not and create a command that maps to |\chapter| or |\section| as needed.
% \begin{macrocode}
-\ifdefined\chapter*
+\ifdefined\chapter
\ifllbls at numtoc
\def\llbls at headline{%
- \chapter{List of Labels}\label{special:listoflabels}}
+% \end{macrocode}
+% We are using |\llbls at labelname| here and in the other possible definitions of |\llbls at headline| to be able to set the label name in the |\listoflabels| macro.
+% \begin{macrocode}
+ \chapter{List of Labels}\label{\llbls at labelname}}
\else
\def\llbls at toccommand{\chapter*}
\def\llbls at tocgroup{chapter}
@@ -383,7 +418,7 @@
\else
\ifllbls at numtoc
\def\llbls at headline{%
- \section{List of Labels}\label{special:listoflabels}}
+ \section{List of Labels}\label{\llbls at labelname}}
\else
\def\llbls at toccommand{\section*}
\def\llbls at tocgroup{section}
@@ -392,7 +427,7 @@
\ifdefined\llbls at headline\else
\def\llbls at headline{%
\llbls at toccommand{\GetTranslation{llbls-listoflabels}}%
- \label{special:listoflabels}%
+ \label{\llbls at labelname}%
\ifllbls at totoc%
\addcontentsline{toc}%
{\llbls at tocgroup}%
@@ -428,7 +463,7 @@
% \end{macro}
%
% \begin{macro}{\llbls at showlabel}
-% \changes{v1.03}{2014/07/27}{Add support for nameref-package}
+% \changes{v1.02}{2014/08/04}{Add support for nameref-package}
% Displays a single entry in the |\listoflabels|
% \begin{macrocode}
\def\llbls at showlabel#1#2{%
@@ -454,13 +489,16 @@
\ifllbls at draft
% \end{macrocode}
% \begin{macro}{\listoflabels}
+% \changes{v1.04}{2023/05/24}{add optional argument to change the name of the label used.}
+% \begin{macro}{\llbls at labelname}
% Print a list of all available lables that are defined throughout the document.
% \begin{macrocode}
- \newcommand\listoflabels{%
+ \newcommand{\listoflabels}[1][special:listoflabels]{%
+ \def\llbls at labelname{#1}%
\llbls at headline%
\the\llbls at lablist}
% \end{macrocode}
-% \end{macro}
+% \end{macro}\end{macro}
% \begin{macrocode}
\else
\let\listoflabels=\relax
Deleted: trunk/Master/texmf-dist/source/latex/listlbls/listlbls.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/listlbls/listlbls.ins 2023-05-25 20:37:01 UTC (rev 67214)
+++ trunk/Master/texmf-dist/source/latex/listlbls/listlbls.ins 2023-05-25 20:37:24 UTC (rev 67215)
@@ -1,74 +0,0 @@
-%%
-%% 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 at 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 at 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 at 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 at 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'.
Modified: trunk/Master/texmf-dist/tex/latex/listlbls/listlbls.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/listlbls/listlbls.sty 2023-05-25 20:37:01 UTC (rev 67214)
+++ trunk/Master/texmf-dist/tex/latex/listlbls/listlbls.sty 2023-05-25 20:37:24 UTC (rev 67215)
@@ -15,7 +15,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{listlbls}
- [2014/08/04 v1.03 Creates a list of all labels used throughout a document]
+ [2023/05/24 v1.04 Creates a list of all labels used throughout a document]
\newif\ifllbls at draft\llbls at draftfalse
\newif\ifllbls at totoc\llbls at totocfalse
\newif\ifllbls at numtoc\llbls at numtocfalse
@@ -52,10 +52,16 @@
\DeclareTranslation{French}%
{llbls-onpage}%
{\`a la page}
-\ifdefined\chapter*
+\DeclareTranslation{Portuguese}%
+ {llbls-listoflabels}%
+ {Lista de R\'{o}tulos}
+\DeclareTranslation{Portuguese}%
+ {llbls-onpage}%
+ {na p\'{a}gina}
+\ifdefined\chapter
\ifllbls at numtoc
\def\llbls at headline{%
- \chapter{List of Labels}\label{special:listoflabels}}
+ \chapter{List of Labels}\label{\llbls at labelname}}
\else
\def\llbls at toccommand{\chapter*}
\def\llbls at tocgroup{chapter}
@@ -63,7 +69,7 @@
\else
\ifllbls at numtoc
\def\llbls at headline{%
- \section{List of Labels}\label{special:listoflabels}}
+ \section{List of Labels}\label{\llbls at labelname}}
\else
\def\llbls at toccommand{\section*}
\def\llbls at tocgroup{section}
@@ -72,7 +78,7 @@
\ifdefined\llbls at headline\else
\def\llbls at headline{%
\llbls at toccommand{\GetTranslation{llbls-listoflabels}}%
- \label{special:listoflabels}%
+ \label{\llbls at labelname}%
\ifllbls at totoc%
\addcontentsline{toc}%
{\llbls at tocgroup}%
@@ -108,7 +114,8 @@
\expandafter\llbls at findlabel\llbls at tmp\relax\llbls at findlabel
\repeat
\ifllbls at draft
- \newcommand\listoflabels{%
+ \newcommand{\listoflabels}[1][special:listoflabels]{%
+ \def\llbls at labelname{#1}%
\llbls at headline%
\the\llbls at lablist}
\else
More information about the tex-live-commits
mailing list.