diff options
author | Karl Berry <karl@freefriends.org> | 2023-05-25 20:37:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-05-25 20:37:24 +0000 |
commit | 99ca1c9e484208d10d4172dfcbcc1ba2dc79d781 (patch) | |
tree | 0da7c9f9ac16c9ad14634c9b16febf9260403ffb /Master/texmf-dist | |
parent | ad6578d6856afa22343b993c4450655a7b11505a (diff) |
listlbls (25may23)
git-svn-id: svn://tug.org/texlive/trunk@67215 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/listlbls/Makefile | 48 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/listlbls/listlbls.hd | 0 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/listlbls/listlbls.pdf | bin | 74422 -> 102919 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/listlbls/Makefile | 50 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/listlbls/listlbls.dtx | 86 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/listlbls/listlbls.ins | 74 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/listlbls/listlbls.sty | 19 |
7 files changed, 125 insertions, 152 deletions
diff --git a/Master/texmf-dist/doc/latex/listlbls/Makefile b/Master/texmf-dist/doc/latex/listlbls/Makefile deleted file mode 100644 index 20ecc6f4686..00000000000 --- a/Master/texmf-dist/doc/latex/listlbls/Makefile +++ /dev/null @@ -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) diff --git a/Master/texmf-dist/doc/latex/listlbls/listlbls.hd b/Master/texmf-dist/doc/latex/listlbls/listlbls.hd deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Master/texmf-dist/doc/latex/listlbls/listlbls.hd +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/listlbls/listlbls.pdf b/Master/texmf-dist/doc/latex/listlbls/listlbls.pdf Binary files differindex 15a732d7991..537f54e51a7 100644 --- a/Master/texmf-dist/doc/latex/listlbls/listlbls.pdf +++ b/Master/texmf-dist/doc/latex/listlbls/listlbls.pdf diff --git a/Master/texmf-dist/source/latex/listlbls/Makefile b/Master/texmf-dist/source/latex/listlbls/Makefile new file mode 100644 index 00000000000..64df745ce72 --- /dev/null +++ b/Master/texmf-dist/source/latex/listlbls/Makefile @@ -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) diff --git a/Master/texmf-dist/source/latex/listlbls/listlbls.dtx b/Master/texmf-dist/source/latex/listlbls/listlbls.dtx index 52da33c3817..a52b55a6cfc 100644 --- a/Master/texmf-dist/source/latex/listlbls/listlbls.dtx +++ b/Master/texmf-dist/source/latex/listlbls/listlbls.dtx @@ -120,17 +120,17 @@ Running "make install" installs the files in the local TeX tree. %<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 @@ Running "make install" installs the files in the local TeX tree. \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 @@ Running "make install" installs the files in the local TeX tree. %\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 @@ Running "make install" installs the files in the local TeX tree. % \subsection{From Github}\label{ssec:inst-gh} % % \begin{enumerate} -% \item Check out the sourcecode from \href{https://github.com/}{GitHub}:\\ -% |git clone git@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@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 @@ Running "make install" installs the files in the local TeX tree. % % 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 @@ Running "make install" installs the files in the local TeX tree. % % \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 @@ Running "make install" installs the files in the local TeX tree. % \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 @@ Running "make install" installs the files in the local TeX tree. % \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@drafttrue} @@ -288,21 +310,21 @@ Running "make install" installs the files in the local TeX tree. % \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@draftfalse} % \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@totoctrue} % \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@totocfalse} @@ -368,14 +390,27 @@ Running "make install" installs the files in the local TeX tree. {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@headline}\begin{macro}{\llbls@toccommand}\begin{macro}{\llbls@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@numtoc \def\llbls@headline{% - \chapter{List of Labels}\label{special:listoflabels}} +% \end{macrocode} +% We are using |\llbls@labelname| here and in the other possible definitions of |\llbls@headline| to be able to set the label name in the |\listoflabels| macro. +% \begin{macrocode} + \chapter{List of Labels}\label{\llbls@labelname}} \else \def\llbls@toccommand{\chapter*} \def\llbls@tocgroup{chapter} @@ -383,7 +418,7 @@ Running "make install" installs the files in the local TeX tree. \else \ifllbls@numtoc \def\llbls@headline{% - \section{List of Labels}\label{special:listoflabels}} + \section{List of Labels}\label{\llbls@labelname}} \else \def\llbls@toccommand{\section*} \def\llbls@tocgroup{section} @@ -392,7 +427,7 @@ Running "make install" installs the files in the local TeX tree. \ifdefined\llbls@headline\else \def\llbls@headline{% \llbls@toccommand{\GetTranslation{llbls-listoflabels}}% - \label{special:listoflabels}% + \label{\llbls@labelname}% \ifllbls@totoc% \addcontentsline{toc}% {\llbls@tocgroup}% @@ -428,7 +463,7 @@ Running "make install" installs the files in the local TeX tree. % \end{macro} % % \begin{macro}{\llbls@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@showlabel#1#2{% @@ -454,13 +489,16 @@ Running "make install" installs the files in the local TeX tree. \ifllbls@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@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@labelname{#1}% \llbls@headline% \the\llbls@lablist} % \end{macrocode} -% \end{macro} +% \end{macro}\end{macro} % \begin{macrocode} \else \let\listoflabels=\relax diff --git a/Master/texmf-dist/source/latex/listlbls/listlbls.ins b/Master/texmf-dist/source/latex/listlbls/listlbls.ins deleted file mode 100644 index 46ed4da88e1..00000000000 --- a/Master/texmf-dist/source/latex/listlbls/listlbls.ins +++ /dev/null @@ -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@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 index 79f1eb33ab4..09cc798c082 100644 --- a/Master/texmf-dist/tex/latex/listlbls/listlbls.sty +++ b/Master/texmf-dist/tex/latex/listlbls/listlbls.sty @@ -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@draft\llbls@draftfalse \newif\ifllbls@totoc\llbls@totocfalse \newif\ifllbls@numtoc\llbls@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@numtoc \def\llbls@headline{% - \chapter{List of Labels}\label{special:listoflabels}} + \chapter{List of Labels}\label{\llbls@labelname}} \else \def\llbls@toccommand{\chapter*} \def\llbls@tocgroup{chapter} @@ -63,7 +69,7 @@ \else \ifllbls@numtoc \def\llbls@headline{% - \section{List of Labels}\label{special:listoflabels}} + \section{List of Labels}\label{\llbls@labelname}} \else \def\llbls@toccommand{\section*} \def\llbls@tocgroup{section} @@ -72,7 +78,7 @@ \ifdefined\llbls@headline\else \def\llbls@headline{% \llbls@toccommand{\GetTranslation{llbls-listoflabels}}% - \label{special:listoflabels}% + \label{\llbls@labelname}% \ifllbls@totoc% \addcontentsline{toc}% {\llbls@tocgroup}% @@ -108,7 +114,8 @@ \expandafter\llbls@findlabel\llbls@tmp\relax\llbls@findlabel \repeat \ifllbls@draft - \newcommand\listoflabels{% + \newcommand{\listoflabels}[1][special:listoflabels]{% + \def\llbls@labelname{#1}% \llbls@headline% \the\llbls@lablist} \else |