texlive[73048] Master/texmf-dist: undolabl (5dec24)
commits+karl at tug.org
commits+karl at tug.org
Thu Dec 5 22:23:25 CET 2024
Revision: 73048
https://tug.org/svn/texlive?view=revision&revision=73048
Author: karl
Date: 2024-12-05 22:23:25 +0100 (Thu, 05 Dec 2024)
Log Message:
-----------
undolabl (5dec24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/undolabl/README
trunk/Master/texmf-dist/doc/latex/undolabl/undolabl-example.pdf
trunk/Master/texmf-dist/doc/latex/undolabl/undolabl-example.tex
trunk/Master/texmf-dist/doc/latex/undolabl/undolabl.pdf
trunk/Master/texmf-dist/source/latex/undolabl/undolabl.drv
trunk/Master/texmf-dist/source/latex/undolabl/undolabl.dtx
trunk/Master/texmf-dist/source/latex/undolabl/undolabl.ins
trunk/Master/texmf-dist/tex/latex/undolabl/undolabl.sty
Modified: trunk/Master/texmf-dist/doc/latex/undolabl/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/undolabl/README 2024-12-05 21:23:16 UTC (rev 73047)
+++ trunk/Master/texmf-dist/doc/latex/undolabl/README 2024-12-05 21:23:25 UTC (rev 73048)
@@ -1,4 +1,4 @@
-README for undolabl package, 2023-02-14, v1.0m
+README for undolabl package, 2024-12-05, v1.0n
TABLE OF CONTENTS
@@ -126,8 +126,7 @@
undolabl is not compatible with versions of the acronym package
older than 2015/03/21 v1.41. The recent version of acronym is
-available at
-https://www.ctan.org/pkg/acronym
+available at https://www.ctan.org/pkg/acronym.
6 AUTHORS/MAINTAINER
Modified: trunk/Master/texmf-dist/doc/latex/undolabl/undolabl-example.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/undolabl/undolabl-example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/undolabl/undolabl-example.tex 2024-12-05 21:23:16 UTC (rev 73047)
+++ trunk/Master/texmf-dist/doc/latex/undolabl/undolabl-example.tex 2024-12-05 21:23:25 UTC (rev 73048)
@@ -9,9 +9,9 @@
%% This is a generated file.
%%
%% Project: undolabl
-%% Version: 2023-02-14 v1.0m
+%% Version: 2024-12-05 v1.0n
%%
-%% Copyright (C) 2010 - 2023 by
+%% Copyright (C) 2010 - 2024 by
%% H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
%% Portions of code copyrighted by other people as marked.
%%
@@ -50,8 +50,8 @@
%% Tommy Muench + 2014-01-02
%% Hans-Klaus Muench + 2014-08-24
%%
-\documentclass[british]{article}[2022/07/02]% v1.4n
-\usepackage{undolabl}[2023-02-14]% v1.0m
+\documentclass[british]{article}[2024/02/08]% v1.4n
+\usepackage{undolabl}[2024-12-05]% v1.0n
%% There are no options for the undolabl package. %%
\usepackage[%
extension=pdf,%
@@ -67,47 +67,42 @@
pdfstartview=FitH,%
pdfpagelayout=OneColumn,%
bookmarksopen=true%
-]{hyperref}[2023-02-07]% v7.00v; when you want to use nameref
+]{hyperref}[2024-10-30]% v7.01k; when you want to use nameref
\listfiles
\begin{document}
\pagenumbering{arabic}
\section*{Example for undolabl}
This example demonstrates the use of package\newline
-\textsf{undolabl}, v1.0m as of 2023-02-14 (HMM).\newline
+\textsf{undolabl}, v1.0n as of 2024-12-05 (HMM).\newline
For details please see the documentation!
-
\bigskip
\section{Test}
-text \label{testlabel}\\
-page-reference: \pageref{testlabel}\\%% -> page 4
-sectional-reference: \ref{testlabel}\\%% -> section 4
-name-reference: \nameref{testlabel}%% -> Still another test
+text \label{testlabel} and text \overridelabel{testlabel}\par
+page-reference: \pageref{testlabel}\par%% -> page 4
+sectional-reference: \ref{testlabel}\par%% -> section 4
+name-reference: \nameref{testlabel}%% -> Still another test
\newpage
-
\section{Another test}
-text \overridelabel{testlabel}\\
-page-reference: \pageref{testlabel}\\%% -> page 4
-sectional-reference: \ref{testlabel}\\%% -> section 4
-name-reference: \nameref{testlabel}%% -> Still another test
+text \overridelabel{testlabel}\par
+page-reference: \pageref{testlabel}\par%% -> page 4
+sectional-reference: \ref{testlabel}\par%% -> section 4
+name-reference: \nameref{testlabel}%% -> Still another test
\newpage
-
\section{Yet another test}
-text \overridelabel{testlabel}\\
-page-reference: \pageref{testlabel}\\%% -> page 4
-sectional-reference: \ref{testlabel}\\%% -> section 4
-name-reference: \nameref{testlabel}%% -> Still another test
+text \overridelabel{testlabel}\par
+page-reference: \pageref{testlabel}\par%% -> page 4
+sectional-reference: \ref{testlabel}\par%% -> section 4
+name-reference: \nameref{testlabel}%% -> Still another test
\newpage
-
\section{Still another test}
-text \overridelabel{testlabel}\\
-page-reference: \pageref{testlabel}\\%% -> page 4
-sectional-reference: \ref{testlabel}\\%% -> section 4
-name-reference: \nameref{testlabel}%% -> Still another test
-
+text \overridelabel{testlabel}\par
+page-reference: \pageref{testlabel}\par%% -> page 4
+sectional-reference: \ref{testlabel}\par%% -> section 4
+name-reference: \nameref{testlabel}%% -> Still another test
\end{document}
\endinput
%%
Modified: trunk/Master/texmf-dist/doc/latex/undolabl/undolabl.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/undolabl/undolabl.drv
===================================================================
--- trunk/Master/texmf-dist/source/latex/undolabl/undolabl.drv 2024-12-05 21:23:16 UTC (rev 73047)
+++ trunk/Master/texmf-dist/source/latex/undolabl/undolabl.drv 2024-12-05 21:23:25 UTC (rev 73048)
@@ -9,9 +9,9 @@
%% This is a generated file.
%%
%% Project: undolabl
-%% Version: 2023-02-14 v1.0m
+%% Version: 2024-12-05 v1.0n
%%
-%% Copyright (C) 2010 - 2023 by
+%% Copyright (C) 2010 - 2024 by
%% H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
%% Portions of code copyrighted by other people as marked.
%%
@@ -50,10 +50,10 @@
%% Tommy Muench + 2014-01-02
%% Hans-Klaus Muench + 2014-08-24
%%
-\NeedsTeXFormat{LaTeX2e}[2022-11-01]
+\NeedsTeXFormat{LaTeX2e}[2024-06-01]
\ProvidesFile{undolabl.drv}%
- [2023-02-14 v1.0m Overriding labels (HMM)]
-\documentclass{ltxdoc}[2022/06/22]% v2.1i
+ [2024-12-05 v1.0n Overriding labels (HMM)]
+\documentclass{ltxdoc}[2024/02/08]% v2.1j
\usepackage{holtxdoc}[2019/12/09]% v0.30
\hypersetup{%
pdfsubject={Overriding labels (HMM)},%
Modified: trunk/Master/texmf-dist/source/latex/undolabl/undolabl.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/undolabl/undolabl.dtx 2024-12-05 21:23:16 UTC (rev 73047)
+++ trunk/Master/texmf-dist/source/latex/undolabl/undolabl.dtx 2024-12-05 21:23:25 UTC (rev 73048)
@@ -1,10 +1,10 @@
% \iffalse meta-comment
%
% File: undolabl.dtx
-% Version: 2023-02-14 v1.0m
+% Version: 2024-12-05 v1.0n
% Info: Overriding labels
%
-% Copyright © 2010 - 2023 by
+% Copyright © 2010 - 2024 by
% H.-Martin Münch <Martin dot Muench at Uni-Bonn dot de>
% Portions of code copyrighted by other people as marked.
%
@@ -59,7 +59,7 @@
\input docstrip.tex
\Msg{*************************************************************}
\Msg{* Installation *}
-\Msg{* Package: undolabl 2023-02-14 v1.0m Overriding labels (HMM)*}
+\Msg{* Package: undolabl 2024-12-05 v1.0n Overriding labels (HMM)*}
\Msg{*************************************************************}
\keepsilent
@@ -71,9 +71,9 @@
This is a generated file.
Project: undolabl
-Version: 2023-02-14 v1.0m
+Version: 2024-12-05 v1.0n
-Copyright (C) 2010 - 2023 by
+Copyright (C) 2010 - 2024 by
H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
Portions of code copyrighted by other people as marked.
@@ -163,12 +163,12 @@
% and specify the \texttt{driver} option when \texttt{docstrip}
% asks for options.
%
-% \begin{macrocode}
+% \begin{macrocode}
%<*driver>
-\NeedsTeXFormat{LaTeX2e}[2022-11-01]
+\NeedsTeXFormat{LaTeX2e}[2024-06-01]
\ProvidesFile{undolabl.drv}%
- [2023-02-14 v1.0m Overriding labels (HMM)]
-\documentclass{ltxdoc}[2022/06/22]% v2.1i
+ [2024-12-05 v1.0n Overriding labels (HMM)]
+\documentclass{ltxdoc}[2024/02/08]% v2.1j
\usepackage{holtxdoc}[2019/12/09]% v0.30
\hypersetup{%
pdfsubject={Overriding labels (HMM)},%
@@ -193,7 +193,7 @@
\DocInput{undolabl.dtx}%
\end{document}
%</driver>
-% \end{macrocode}
+% \end{macrocode}
% \fi
%
% \GetFileInfo{undolabl.drv}
@@ -213,19 +213,18 @@
% }%^^A
% \expandafter\endgroup\x
%
-% \DoNotIndex{\@auxout,\@bsphack,\@esphack,\@firstofone,\@gobble,\@ifl at t@r,\@ifundefined}
-% \DoNotIndex{\@namedef,\@secondoftwo,\\,\AddToHook,\begin,\begindocument,\bigskip}
-% \DoNotIndex{\csname,\documentclass,\empty,\end,\endcsname,\fmtversion,\g at addto@macro}
-% \DoNotIndex{\holtxdoc,\hypdoc,\hyperref,\if at filesw,\IfFormatAtLeastTF,\IfPackageAtLeastTF}
-% \DoNotIndex{\IfPackageLoadedTF,\ifx,\label,\listfiles,\MessageBreak,\nameref}
-% \DoNotIndex{\NeedsTeXFormat,\newcommand,\newline,\newpage,\PackageError,\PackageWarning}
-% \DoNotIndex{\pagenumbering,\pageref,\ProvidesPackage,\ref,\section,\space,\textsf}
-% \DoNotIndex{\usepackage}
+% \DoNotIndex{\@auxout,\@bsphack,\@esphack,\@firstofone,\@gobble,\@ifl at t@r,\@ifundefined,%
+% \@namedef,\@secondoftwo,\\,\AddToHook,\begin,\begindocument,\bigskip,%
+% \csname,\documentclass,\empty,\end,\endcsname,\endinput,\fmtversion,\g at addto@macro,%
+% \holtxdoc,\hypdoc,\hyperref,\if at filesw,\IfFormatAtLeastTF,\IfPackageAtLeastF,%
+% \IfPackageLoadedT,\IfPackageLoadedTF,\ifx,\label,\listfiles,\MessageBreak,\nameref,%
+% \NeedsTeXFormat,\newcommand,\newline,\newpage,\PackageError,\PackageWarning,%
+% \pagenumbering,\pageref,\par,\ProvidesPackage,\ref,\section,\space,\textsf,%
+% \usepackage}
%
% \title{The \xpackage{undolabl} package}
-% \date{2023-02-14 v1.0m}
+% \date{2024-12-05 v1.0n}
% \author{H.-Martin Münch\\\xemail{Martin.Muench at Uni-Bonn.de}}
-%
% \maketitle
%
% \begin{abstract}
@@ -234,26 +233,26 @@
% \end{abstract}
%
% \noindent \textbf{WARNING}: Since version 1.0d [2010-07-15] the |\undonewlabel|
-% command takes only one argument,\\
-% \texttt{\textbackslash undonewlabel\{<\textit{label name}>\}},\\
-% instead of two,\\
-% \texttt{\textbackslash undonewlabel\{<\textit{label name}>\}\{\textbackslash on at line\}}.\\
+% command takes only one argument,\newline
+% \texttt{\textbackslash undonewlabel\{<\textit{label name}>\}},\newline
+% instead of two,\newline
+% \texttt{\textbackslash undonewlabel\{<\textit{label name}>\}\{\textbackslash on at line\}}.\newline
% Packages or documents, which used older versions of the \xpackage{undolabl} package, must be
-% updated by removing the second argument of |\undonewlabel|, i.\,e. the |{\on at line}|.\\
+% updated by removing the second argument of |\undonewlabel|, i.\,e.~the |{\on at line}|.
+% \bigskip
%
-% \noindent Note: The main code of this package was invented by\\
-% \textbf{ULRICH DIEZ}\\
-% and first published in the \Newsgroup{comp.text.tex} newsgroup at\\
-% \texttt{Sun,~20~Apr~2008~16:39:26~+0200}, with subject:\\
-% \texttt{Re:~How~to~undefine/overwrite~a~label?} (see e.\,g.
+% \noindent Note: The main code of this package was invented by\newline
+% \textbf{ULRICH DIEZ}\newline
+% and first published in the \Newsgroup{comp.text.tex} newsgroup at\newline
+% \texttt{Sun,~20~Apr~2008~16:39:26~+0200}, with subject:\newline
+% \texttt{Re:~How~to~undefine/overwrite~a~label?} (see e.\,g.~%
% \url{https://groups.google.com/g/comp.text.tex/c/MBiR-EpPceo/m/2pdwkZP-bK8J}%
-% ).\\
+% ).\newline
% While \textbf{ULRICH DIEZ} neither wanted to create a~package himself yet
% nor have one published under his name, he granted the publication of his code.
% Therefore: Thanks!
% I submitted this package to CTAN (after some updates of the documentation,
% mainly layout, typos and such things) and try to maintain it.
-%
% \bigskip
%
% \noindent Disclaimer for web links: The author is not responsible for any contents
@@ -261,58 +260,41 @@
% If any damage occurs by the use of information presented there,
% only the author of the respective pages might be liable,
% not the one who has referred to those pages.
-%
+% \newpage
% \tableofcontents
%
% \section{Introduction\label{sec:Introduction}}
% \indent The package's name \texttt{undolabl} is an eight-letter
-% abbreviation for the phrases ``undo'' and ``label''.\\
+% abbreviation for the phrases ``undo'' and ``label''.\bigskip
%
% This package allows to override existing labels,
-% especially automatically generated ones.\\
+% especially automatically generated ones.\bigskip
%
% When an instance of the |\label|-macro occurs in the document\linebreak
-% (e.\,g.~|\label{foo}|), then a delayed |\write| (a~write which is
+% (e.\,g.~|\label{FOO}|), then a delayed |\write| (a~write which is
% performed at shipout-time when the page-number is determined) to
% the \xfile{.aux} file is issued and you find in the \xfile{.aux} file
% something like:
% \begin{verbatim}
-% \newlabel{foo}{{<page-no>}{<sectional no>}{<probably something else>}}
+% \newlabel{FOO}{{eval(\@currentlabel)}{eval(\thepage)}%
+% {eval(\@currentlabelname)}{eval(\@currentHref)}{%
+% eval(\@kernel at reserved@label at data)}}
% \end{verbatim}
-% During the beginning of the next \LaTeX{}-run, the \xfile{.aux} file will be
-% read and
+% (in one line). During the beginning of the next \LaTeX{}-run,
+% the \xfile{.aux} file will be read and |\newlabel{FOO}{...}| is expanded to
+% |\@newl at bel r{FOO}{...}|, which in turn gets expanded to something
+% like (pseudo code):
+% \newpage
% \begin{verbatim}
-% \newlabel{foo}{{<page-no>}{<sectional no>}{<probably something else>}}
-% \end{verbatim}
-% is expanded to
-% \begin{verbatim}
-% \@newl at bel r{foo}{{<page-no>}{<sectional no>}{<probably something else>}}
-% \end{verbatim}
-% which in turn gets expanded to something like (pseudo code):
-% \begin{verbatim}
-% IF (macro \r at foo is already defined)
-% THEN
-% - issue an error-message,
-% - make sure that the multiply-defined-labels-warning occurs
-% in the log-file
-% ELSE
-% \def\r at foo{{<page-no>}{<sectional no>}{<probably something else>}}
+% IF (macro \r at FOO is already defined)
+% THEN - issue an error-message,
+% - make sure that the multiply-defined-labels-warning occurs
+% in the log-file.
+% ELSE \def\r at FOO{...}
% ENDIF
% \end{verbatim}
%
-% Referencing works as follows:\\
-% |\ref{foo}| |->|
% \begin{description}
-% \item[-] expand |\r at foo|: |{<page-no>}{<sectional no>}{<probably something else>}|
-% \item[-] grab the second from the resulting arguments: |<sectional no>|
-% \end{description}
-% |\pageref{foo}| |->|
-% \begin{description}
-% \item[-] expand |\r at foo|: |{<page-no>}{<sectional no>}{<probably something else>}|
-% \item[-] grab the first from the resulting arguments: |<page-no>|
-% \end{description}
-% Back to the |\label|-mechanism:
-% \begin{description}
% \item[-] At the beginning of the \LaTeX{}-run, all the |\r@<label>|-macros
% get defined from reading the \xfile{.aux} file. The |\r@<label>|-macros
% get used by the referencing-macros (|\ref|, |\pageref|,\ldots{}) during
@@ -324,15 +306,13 @@
% \LaTeX{}-run.
% \end{description}
% But this time |\@newl at bel| is redefined (|\let| equal to |\@testdef|)
-% and thus this time\\
-% \begin{verbatim}
-% \@newl at bel r{foo}{{<page-no>}{<sectional no>}{<probably something else>}}
-% \end{verbatim}
+% and thus this time\newline
+% |\@newl at bel r{FOO}{{...}{...}{...}{...}{...}}|\newline
% expands to something like (pseudo code):
% \begin{verbatim}
% Compare the (newly written) third argument (that is:
-% {{<page-no>}{<sectional no>}{<probably something else>}} )
-% to the (current/former) definition of \r at foo.
+% {{...}{...}{...}{...}{...}})
+% to the (current/former) definition of \r at FOO.
% If the two are different, then some page- or section-number
% related to referencing has changed from the last to the current
% LaTeX-run, thus in this case issue a message in the log-file:
@@ -348,7 +328,7 @@
% \begin{verbatim}
% \undonewlabel{<label>}
% \end{verbatim}
-% |\undonewlabel| \textquotedblleft undefines\textquotedblright\ the
+% |\undonewlabel| \textquotedblleft undefines\textquotedblright{} the
% |\r@<label>|-macro. (How this works will be explained below.)
% \item[-] Then |\overridelabel| can call |\label{<label>}| again
% and thus produce another |\newlabel{<label>}|-entry to the
@@ -368,6 +348,7 @@
% |->| a new \r@<label>-macro but no multiply-label-defined warning
% gets produced.
% \end{verbatim}
+% \pagebreak
%
% There is another issue left:
% \begin{description}
@@ -387,7 +368,7 @@
%
% \textbf{ULRICH DIEZ} decided to catch this up by his |\undolabl at testdef| command.
% The |\undolabl at testdef|-comparison-mechanism gets enhanced via
-% \textquotedblleft replacing\textquotedblright{}. This works as follows:
+% \textquotedblleft replacing\textquotedblright . This works as follows:
% When the \xfile{.aux} file is read at the beginning of the \LaTeX{}-run,
% |\@newl at bel| is \underline{not} let equal to |\@testdef|.
% When the \xfile{.aux} file is read at the end of the \LaTeX{}-run,
@@ -395,8 +376,8 @@
% Thus it is sufficient to write into the beginning of the \xfile{.aux} file
% a direction which leads to \nolinebreak{|\let|ting} |\@newl at bel| equal to
% |\undolabl at testdef| in case its definition equals |\@testdef|. That direction
-% is called \nolinebreak{\textquotedblleft |\reset at newl@bel|\textquotedblright{}.}
-% Also, when the \xfile{.aux} file is read at the end of the \LaTeX{}-run,
+% is called \nolinebreak{\textquotedblleft |\reset at newl@bel|\textquotedblright .}
+% Also, when the \xfile{.aux} file is read at the end of the \LaTeX -run,
% |\undonewlabel|-entries therein should do nothing, thus
% |\undonewlabel| is |\let| equal to |\@gobble|.
%
@@ -405,22 +386,21 @@
% \begin{quote}
% |\usepackage{undolabl}|
% \end{quote}
-% \noindent in the preamble of your \LaTeXe\ source file.\\
+% \noindent in the preamble of your \LaTeXe\ source file.\bigskip
%
-% When an existing label shall be replaced by a new one, say\\
-% |\overridelabel{<label name>}|\\
+% \noindent When an existing label shall be replaced by a new one, say\newline
+% |\overridelabel{<label name>}|\newline
% (where |<label name>| is the name of the label to be replaced
% by the new one), instead of just |\label{<label name>}|,
-% which would produce a\\
+% which would produce a\newline
% |LaTeX Warning: Label `<label name>' multiply defined.|
-%
% \newpage
%
% \section{Example}
% \begin{macrocode}
%<*example>
-\documentclass[british]{article}[2022/07/02]% v1.4n
-\usepackage{undolabl}[2023-02-14]% v1.0m
+\documentclass[british]{article}[2024/02/08]% v1.4n
+\usepackage{undolabl}[2024-12-05]% v1.0n
%% There are no options for the undolabl package. %%
\usepackage[%
extension=pdf,%
@@ -436,47 +416,42 @@
pdfstartview=FitH,%
pdfpagelayout=OneColumn,%
bookmarksopen=true%
-]{hyperref}[2023-02-07]% v7.00v; when you want to use nameref
+]{hyperref}[2024-10-30]% v7.01k; when you want to use nameref
\listfiles
\begin{document}
\pagenumbering{arabic}
\section*{Example for undolabl}
This example demonstrates the use of package\newline
-\textsf{undolabl}, v1.0m as of 2023-02-14 (HMM).\newline
+\textsf{undolabl}, v1.0n as of 2024-12-05 (HMM).\newline
For details please see the documentation!
-
\bigskip
\section{Test}
-text \label{testlabel}\\
-page-reference: \pageref{testlabel}\\%% -> page 4
-sectional-reference: \ref{testlabel}\\%% -> section 4
-name-reference: \nameref{testlabel}%% -> Still another test
+text \label{testlabel} and text \overridelabel{testlabel}\par
+page-reference: \pageref{testlabel}\par%% -> page 4
+sectional-reference: \ref{testlabel}\par%% -> section 4
+name-reference: \nameref{testlabel}%% -> Still another test
\newpage
-
\section{Another test}
-text \overridelabel{testlabel}\\
-page-reference: \pageref{testlabel}\\%% -> page 4
-sectional-reference: \ref{testlabel}\\%% -> section 4
-name-reference: \nameref{testlabel}%% -> Still another test
+text \overridelabel{testlabel}\par
+page-reference: \pageref{testlabel}\par%% -> page 4
+sectional-reference: \ref{testlabel}\par%% -> section 4
+name-reference: \nameref{testlabel}%% -> Still another test
\newpage
-
\section{Yet another test}
-text \overridelabel{testlabel}\\
-page-reference: \pageref{testlabel}\\%% -> page 4
-sectional-reference: \ref{testlabel}\\%% -> section 4
-name-reference: \nameref{testlabel}%% -> Still another test
+text \overridelabel{testlabel}\par
+page-reference: \pageref{testlabel}\par%% -> page 4
+sectional-reference: \ref{testlabel}\par%% -> section 4
+name-reference: \nameref{testlabel}%% -> Still another test
\newpage
-
\section{Still another test}
-text \overridelabel{testlabel}\\
-page-reference: \pageref{testlabel}\\%% -> page 4
-sectional-reference: \ref{testlabel}\\%% -> section 4
-name-reference: \nameref{testlabel}%% -> Still another test
-
+text \overridelabel{testlabel}\par
+page-reference: \pageref{testlabel}\par%% -> page 4
+sectional-reference: \ref{testlabel}\par%% -> section 4
+name-reference: \nameref{testlabel}%% -> Still another test
\end{document}
%</example>
% \end{macrocode}
@@ -483,11 +458,12 @@
%
% \StopEventually{}
%
+% \newpage
% \section{The implementation}
-% For a somewhat longer description see section~\ref{sec:Introduction}.\\
+% For a somewhat longer description see section~\ref{sec:Introduction}.\bigskip
%
% We start off by checking that we are loading into \LaTeXe{} and
-% announcing the name and version of this package.\\
+% announcing the name and version of this package.\bigskip
%
% \begin{macrocode}
%<*package>
@@ -494,88 +470,18 @@
% \end{macrocode}
%
% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}[2022-11-01]
-\ProvidesPackage{undolabl}[2023-02-14 v1.0m Overriding labels (HMM)]
+\NeedsTeXFormat{LaTeX2e}[2024-06-01]
+\ProvidesPackage{undolabl}[2024-12-05 v1.0n Overriding labels (HMM)]
-\@ifl at t@r\fmtversion{2022/11/01}{% would have understood
- % \IfFormatAtLeastTF{2022-11-01}{<true code>}{<false code>}
- }{\PackageError{undolabl}{%
- Newer LaTeX format needed or older undolabl package%
- }{Needed LaTeX format version: 2022-11-01 or newer.\MessageBreak%
- Found\space\space LaTeX format version: \fmtversion.\MessageBreak%
- Either update your TeX distribution\MessageBreak%
- or use an archived version of undolabl\MessageBreak%
- (see section History in the documentation).\MessageBreak%
- }
- }
+\@ifl at t@r\fmtversion{2024/06/01}{}{\PackageError{undolabl}{%
+ LaTeX format 2024-06-01 or newer needed}{%
+ Needed LaTeX format version: 2024-06-01 or newer.\MessageBreak%
+ Found\space\space LaTeX format version: \fmtversion.\MessageBreak%
+ Please update your TeX distribution!\MessageBreak%
+ Loading of undolabl package is aborted.}
+ \expandafter\endinput}
% \end{macrocode}
-%
-% At |begindocument| it is checked whether writing to files is allowed.
-% Some packages (e.\,g. \xpackage{tikz} and \xpackage{selectp}) sometimes prevent
-% the output to the \xfile{aux} file. In that case a warning or an error message
-% is issued. This is no problem as long as there is/was another compilation run
-% where the labels can/could be processed via the \xfile{aux} file.
-%
-% \begin{macrocode}
-\AddToHook{begindocument}{%
- \if at filesw%
-% \end{macrocode}
-%
-% \noindent then |\relax|.\newline
-% When writing to files is not allowed, nothing can be done. But when
-% the labels were already processed via the \xfile{aux} file,
-% nothing needs to be done (if enough compilation runs have been done before).
-%
-% \begin{macrocode}
- \else%
- \IfPackageLoadedTF{tikz}{%
- \PackageWarning{undolabl}%
- {The undolabl package was not allowed to write to an\MessageBreak%
- .aux file. This package does not work without access\MessageBreak%
- to an .aux file.\MessageBreak%
- It is OK if the .aux file was already updated\MessageBreak%
- by a previouse compiler run\MessageBreak%
- and would not have changed anyway.\MessageBreak%
- }%
- }{\PackageError{undolabl}{No writing to auxiliary file allowed}%
- {The undolabl package was not allowed to write to an .aux file.\MessageBreak%
- This package does not work without access to an .aux file.\MessageBreak%
- Press Ctrl+Z to exit.\MessageBreak%
- But it is OK if the .aux file was already updated\MessageBreak%
- by a previouse compiler run\MessageBreak%
- and would not have changed anyway.\MessageBreak%
- }%
- }%
- \fi%
-% \end{macrocode}
-%
-% The \textsf{undolabl} and the \textsf{acronym} packages shared some commands
-% with the same names and where therefore incompatible. \textsc{Jan Heisswolf}
-% (ITIV at KIT) reported this in 2014 (Thanks!). Changing the macros in the
-% \textsf{undolabl} package also required changing them in the \textsf{pageslts}
-% package and providing a fallback mechanism for the old commands used in
-% existing \xfile{.aux} files. When I wanted to implement this in 2015,
-% it turned out the \textsf{acronym} package had been updated a week before
-% (Thanks!) and fixed the incompatibility. Now what remained to be done
-% was just to check that no older acronym package is used:
-%
-% \begin{macrocode}
- \IfPackageLoadedTF{acronym}%
- {\IfPackageAtLeastTF{acronym}{2015/03/21}{% later, OK
- }{\PackageError{undolabl}{Incompatible old acronym package detected}%
- {The undolabl package is not compatible with the acronym package%
- \MessageBreak%
- older than 2015/03/21 v1.41. Please update your acronym package!%
- \MessageBreak%
- }%
- }%
- }{% not loaded, OK
- }%
- }
-
-% \end{macrocode}
-%
% \begin{macro}{\overridelabel}
% \DescribeMacro{\overridelabel}
% In order to override a label, first one needs to write to the
@@ -594,7 +500,7 @@
\@overriddenmessage s{#1}%
% \end{macrocode}
%
-% Then |\overridelabel| can call |\label{<label>}| again
+% \noindent Then |\overridelabel| can call |\label{<label>}| again
% and thus produce another |\newlabel{<label>}|-entry to the
% \xfile{.aux} file.
%
@@ -608,6 +514,7 @@
% \end{macro}
% \begin{macro}{\undonewlabel}
% \DescribeMacro{\undonewlabel}
+% \vspace{-1.15\baselineskip}
% \begin{macrocode}
\newcommand\undonewlabel{\@und at newl@bel r}
@@ -622,12 +529,11 @@
\PackageError{undolabl}{Label `#2' shall be overridden ^^J%
although it does not yet exist}{%
A label which does not exist cannot be overridden.}%
- }{%
% \end{macrocode}
% \noindent otherwise:\newline
% Undefine |\r at label| via letting it equal to |\relax|:
% \begin{macrocode}
- \expandafter\global
+ }{\expandafter\global
\expandafter\let
\csname #1@#2\endcsname\relax%
}%
@@ -635,6 +541,7 @@
% \end{macrocode}
% \end{macro}
+% \newpage
% \begin{macro}{\@overriddenmessage}
% \DescribeMacro{\@overriddenmessage}
% Command for the notification of overriding a label:
@@ -643,7 +550,7 @@
\@ifundefined{#1@#2}{\global\@namedef{#1@#2}{i}}{%
\expandafter\g at addto@macro\csname #1@#2\endcsname{i}%
}%
- \PackageWarning{undolabl}{Label `#2' overridden}%
+ \PackageNote{undolabl}{Label `#2' overridden}%
}
% \end{macrocode}
@@ -650,6 +557,7 @@
% \end{macro}
% \begin{macro}{\undolabl at testdef}
% \DescribeMacro{\undolabl at testdef}
+% \vspace{-1.15\baselineskip}
% \begin{macrocode}
\newcommand\undolabl at testdef[3]{%
\@ifundefined{s@#2}\@secondoftwo\@firstofone{%
@@ -669,15 +577,9 @@
% \end{macrocode}
% \end{macro}
-% \begin{macro}{\@auxout}
-% \DescribeMacro{\@auxout}
-% \begin{macrocode}
-\if at filesw\protected at write\@auxout{}{\string\reset at newl@bel}\fi
-
-% \end{macrocode}
-% \end{macro}
% \begin{macro}{\reset at newl@bel}
% \DescribeMacro{\reset at newl@bel}
+% \vspace{-1.15\baselineskip}
% \begin{macrocode}
\newcommand\reset at newl@bel{%
\ifx\@newl at bel\@testdef%
@@ -688,7 +590,69 @@
% \end{macrocode}
% \end{macro}
+% \begin{macro}{AddToHook\{begindocument\}}
+% \DescribeMacro{AddToHook\{begindocument\}}
+% \vspace{-1.15\baselineskip}\par%
+% At |begindocument| it is checked whether writing to files is allowed.
+% Some packages (e.\,g.~\xpackage{tikz} and \xpackage{selectp}) sometimes prevent
+% the output to the \xfile{aux} file. In that case a warning or an error message
+% is issued. This is no problem as long as there is/was another compilation run
+% where the labels can/could be processed via the \xfile{aux} file.\bigskip
+%
+% \noindent If writing is allowed, a |\reset at newl@bel| (see above)
+% is written into the \xfile{aux} file.
+%
% \begin{macrocode}
+\AddToHook{begindocument}{%
+ \if at filesw%
+ \immediate\write\@auxout{\string\reset at newl@bel}%
+% \end{macrocode}
+%
+% \noindent When writing to files is not allowed, nothing can be done.
+% But when the labels were already processed via the \xfile{aux} file,
+% nothing needs to be done (if enough compilation runs have been done before).
+%
+% \begin{macrocode}
+ \else%
+ \IfPackageLoadedTF{tikz}{\PackageWarningNoLine{undolabl}{%
+ The undolabl package was not allowed to write to an\MessageBreak%
+ .aux file. This package does not work without access\MessageBreak%
+ to an .aux file.\MessageBreak%
+ It is OK if the .aux file was already updated\MessageBreak%
+ by a previouse compiler run\MessageBreak%
+ and would not have changed anyway.}%
+ }{\PackageError{undolabl}{No writing to auxiliary file allowed}{%
+ The undolabl package was not allowed to write to an .aux file.\MessageBreak%
+ This package does not work without access to an .aux file.\MessageBreak%
+ Press Ctrl+Z to exit.\MessageBreak%
+ But it is OK if the .aux file was already updated\MessageBreak%
+ by a previouse compiler run\MessageBreak%
+ and would not have changed anyway.}%
+ }%
+ \fi%
+% \end{macrocode}
+%
+% The \textsf{undolabl} and the \textsf{acronym} packages shared some commands
+% with the same names and where therefore incompatible. \textsc{Jan Heisswolf}
+% (ITIV at KIT) reported this in 2014 (Thanks!). Changing the macros in the
+% \textsf{undolabl} package also required changing them in the \textsf{pageslts}
+% package and providing a fallback mechanism for the old commands used in
+% existing \xfile{.aux} files. When I wanted to implement this in 2015,
+% it turned out the \textsf{acronym} package had been updated a week before
+% (Thanks!) and fixed the incompatibility. Now what remains to be done
+% is just to check that no ancient acronym package is used:
+%
+% \begin{macrocode}
+ \IfPackageLoadedT{acronym}{\IfPackageAtLeastF{acronym}{2015/03/21}{%
+ \PackageError{undolabl}{Incompatible old acronym package detected}{%
+ The undolabl package is not compatible with acronym package\MessageBreak%
+ older than 2015/03/21 v1.41.\MessageBreak%
+ Found version: \csname ver at acronym.sty\endcsname .\MessageBreak%
+ Please update your acronym package!%
+ }}}}
+% \end{macrocode}
+% \end{macro}
+% \begin{macrocode}
%</package>
% \end{macrocode}
%
@@ -695,19 +659,19 @@
% \section{Installation}
% \subsection{Downloads}
% Everything is available at \url{https://www.ctan.org}
-% but may need additional packages themselves.\\
+% but may need additional packages themselves.\bigskip
%
% \DescribeMacro{undolabl.dtx}
% For unpacking the |undolabl.dtx| file and constructing the documentation
% it is required:
% \begin{description}
-% \item[-] \TeX{} Format \LaTeXe{} [2022-11-01] (or newer),
+% \item[-] \TeX{} Format \LaTeXe{} [2024-06-01] (or newer),
% \url{https://www.CTAN.org}
-% \item[-] document class \xpackage{ltxdoc}, 2022/06/22, v2.1i,
+% \item[-] document class \xpackage{ltxdoc}, 2024/02/08, v2.1j,
% \url{https://www.ctan.org/pkg/ltxdoc}
% \item[-] package \xpackage{holtxdoc}, 2019/12/09, v0.30,
% \url{https://www.ctan.org/pkg/holtxdoc}
-% \item[-] package \xpackage{hypdoc}, 2023-01-23, v1.18,
+% \item[-] package \xpackage{hypdoc}, 2023-10-26, v1.19,
% \url{https://www.ctan.org/pkg/hypdoc}
% \end{description}
%
@@ -715,10 +679,8 @@
% The |undolabl.sty| for \LaTeXe{} (i.\,e.~each document using
% the \xpackage{undolabl} package) requires:
% \begin{description}
-% \item[-] \TeX{} Format \LaTeXe{} [2022-11-01] (or newer),
-% \url{https://www.CTAN.org}. Older versions of \pkg{undolabl}
-% work with older \LaTeXe{} distributions and have been archived,
-% see \nameref{History}.
+% \item[-] \TeX{} Format \LaTeXe{} [2024-06-01] (or newer),
+% \url{https://www.CTAN.org}.
% \end{description}
%
% \DescribeMacro{undolabl-example.tex}
@@ -725,36 +687,21 @@
% The |undolabl-example.tex| requires the same files as all
% documents using the \xpackage{undolabl} package and additionally:
% \begin{description}
-% \item[-] class \xpackage{article}, 2022/07/02, v1.4n,
+% \item[-] class \xpackage{article}, 2024/02/08, v1.4n,
% \url{https://www.ctan.org/pkg/article}
-% \item[-] package \xpackage{hyperref}, 2023-02-07, v7.00v,
+% \item[-] package \xpackage{hyperref}, 2024-10-30, v7.01k,
% \url{https://www.ctan.org/pkg/hyperref},
% if |\nameref| shall be used (and when the references
% shall be hyperlinked, of course)
-% \item[-] package \xpackage{undolabl}, 2023-02-14, v1.0m,
-% \url{https://www.ctan.org/pkg/undolabl}\\
+% \item[-] package \xpackage{undolabl}, 2024-12-06, v1.0n,
+% \url{https://www.ctan.org/pkg/undolabl}\newline
% (Well, it is the example file for this package, and because you are reading
% the documentation for the \xpackage{undolabl} package, it can be assumed
% that you already have some version of it -- is it the current one?)
% \end{description}
%
-% \DescribeMacro{Oberdiek}
-% \DescribeMacro{holtxdoc}
-% \DescribeMacro{hypdoc}
-% All packages of \textsc{Heiko Oberdiek}'s bundle `oberdiek'
-% (especially \xpackage{holtxdoc} and \xpackage{hypdoc})
-% are also available in a TDS compliant ZIP archive:\\
-% \url{https://mirror.ctan.org/install/macros/latex/contrib/oberdiek.tds.zip}.\\
-% It is probably best to download and use this, because the packages in there
-% are quite probably both recent and compatible among themselves.\\
-%
-% \DescribeMacro{hyperref}
-% \xpackage{hyperref} is not included in that bundle and needs to be
-% downloaded separately,\\
-% \url{https://mirror.ctan.org/install/macros/latex/contrib/hyperref.tds.zip}.\\
-%
% \DescribeMacro{Münch}
-% A hyperlinked list of my (other) packages can be found at\\
+% A hyperlinked list of my (other) packages can be found at\newline
% \url{https://www.ctan.org/author/muench-hm}.
%
% \subsection{Package, unpacking TDS}
@@ -765,7 +712,7 @@
% There is also an undolabl.tds.zip available:
% \url{https://mirror.ctan.org/install/macros/latex/contrib/undolabl.tds.zip}
% (everything in \xfile{TDS} compliant, compiled format),
-% which additionally contains\\
+% which additionally contains\par
% \begin{tabular}{ll}
% undolabl.ins & The installation file.\\
% undolabl.drv & The driver to generate the documentation.\\
@@ -784,7 +731,7 @@
% \verb|tex undolabl.dtx|
% \end{quote}
%
-% \noindent About generating the documentation see paragraph~\ref{GenDoc} below.\\
+% \noindent About generating the documentation see paragraph~\ref{GenDoc} below.\bigskip
%
% \paragraph{TDS.} Now the different files must be moved into
% the different directories in your installation TDS tree
@@ -909,14 +856,14 @@
%
% \section{Acknowledgements}
%
-% The main code of this package was invented by \\
-% \textbf{ULRICH DIEZ} (\texttt{eu\_angelion at web.de})\\
-% and first published in the \Newsgroup{comp.text.tex} newsgroup at\\
-% \texttt{Sun,~20~Apr~2008~16:39:26~+0200}, with subject:\\
+% The main code of this package was invented by\newline
+% \textbf{ULRICH DIEZ} (\texttt{eu\_angelion at web.de})\newline
+% and first published in the \Newsgroup{comp.text.tex} newsgroup at\newline
+% \texttt{Sun,~20~Apr~2008~16:39:26~+0200}, with subject:\newline
% \texttt{Re:~How~to~undefine/overwrite~a~label?} (see e.\,g.
% \url{https://groups.google.com/g/comp.text.tex/c/MBiR-EpPceo/m/2pdwkZP-bK8J}
-% as well as \linebreak
-% \url{https://groups.google.com/g/comp.text.tex/c/0jzpQsn5dPs/m/Lrb45ByCZtMJ}).\\
+% as well as\newline
+% \url{https://groups.google.com/g/comp.text.tex/c/0jzpQsn5dPs/m/Lrb45ByCZtMJ}).\newline
% I (\textsc{H.-Martin Münch}) would like to thank \textbf{ULRICH DIEZ}
% for this as well as for his permission to publish it on CTAN as well as
% for his bug reports.
@@ -924,10 +871,8 @@
% on the internet, where I found it first.
% Further I would like to thank \textsc{Heiko Oberdiek} for providing a~lot~(!) of useful
% packages (from which I also got everything I know about creating a file in \xfile{dtx} format,
-% OK, say it: copying), and the \Newsgroup{comp.text.tex} and \Newsgroup{de.comp.text.tex}
-% newsgroups for their help in all things \TeX{}.
+% OK, say it: copying).
%
-% \newpage
% \phantomsection
% \begin{History}\label{History}
% \begin{Version}{2008/04/20 v0.3(a)}
@@ -1020,8 +965,6 @@
% by \textsf{acronym} package, thanks! Check for older versions introduced.
% \item Introduced a check, whether writing to the \xfile{aux} file is allowed.
% \item Update of documentation, README, and \xfile{dtx} internals.
-% \item This version has been archived at\\
-% \url{https://web.archive.org/web/20190417090001/https://mirror.ctan.org/install/macros/latex/contrib/undolabl.tds.zip}
% \end{Version}
% \begin{Version}{2023-02-14 v1.0m}
% \item Removed |\unit|.
@@ -1029,6 +972,11 @@
% \item Updated to \LaTeX{} format 2022-11-01.
% \item Documentation updated (there were lots of outdated urls).
% \end{Version}
+% \begin{Version}{2024-12-05 v1.0n}
+% \item In an edge case, |\reset at newl@bel| was issued too late. Fixed.
+% \item Update of minor details in the code and update of documentation
+% (e.\,g.~regarding of the number of arguments in labels).
+% \end{Version}
% \end{History}
%
% \bigskip
Modified: trunk/Master/texmf-dist/source/latex/undolabl/undolabl.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/undolabl/undolabl.ins 2024-12-05 21:23:16 UTC (rev 73047)
+++ trunk/Master/texmf-dist/source/latex/undolabl/undolabl.ins 2024-12-05 21:23:25 UTC (rev 73048)
@@ -9,9 +9,9 @@
%% This is a generated file.
%%
%% Project: undolabl
-%% Version: 2023-02-14 v1.0m
+%% Version: 2024-12-05 v1.0n
%%
-%% Copyright (C) 2010 - 2023 by
+%% Copyright (C) 2010 - 2024 by
%% H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
%% Portions of code copyrighted by other people as marked.
%%
@@ -53,7 +53,7 @@
\input docstrip.tex
\Msg{*************************************************************}
\Msg{* Installation *}
-\Msg{* Package: undolabl 2023-02-14 v1.0m Overriding labels (HMM)*}
+\Msg{* Package: undolabl 2024-12-05 v1.0n Overriding labels (HMM)*}
\Msg{*************************************************************}
\keepsilent
@@ -65,9 +65,9 @@
This is a generated file.
Project: undolabl
-Version: 2023-02-14 v1.0m
+Version: 2024-12-05 v1.0n
-Copyright (C) 2010 - 2023 by
+Copyright (C) 2010 - 2024 by
H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
Portions of code copyrighted by other people as marked.
Modified: trunk/Master/texmf-dist/tex/latex/undolabl/undolabl.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/undolabl/undolabl.sty 2024-12-05 21:23:16 UTC (rev 73047)
+++ trunk/Master/texmf-dist/tex/latex/undolabl/undolabl.sty 2024-12-05 21:23:25 UTC (rev 73048)
@@ -9,9 +9,9 @@
%% This is a generated file.
%%
%% Project: undolabl
-%% Version: 2023-02-14 v1.0m
+%% Version: 2024-12-05 v1.0n
%%
-%% Copyright (C) 2010 - 2023 by
+%% Copyright (C) 2010 - 2024 by
%% H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
%% Portions of code copyrighted by other people as marked.
%%
@@ -50,56 +50,17 @@
%% Tommy Muench + 2014-01-02
%% Hans-Klaus Muench + 2014-08-24
%%
-\NeedsTeXFormat{LaTeX2e}[2022-11-01]
-\ProvidesPackage{undolabl}[2023-02-14 v1.0m Overriding labels (HMM)]
+\NeedsTeXFormat{LaTeX2e}[2024-06-01]
+\ProvidesPackage{undolabl}[2024-12-05 v1.0n Overriding labels (HMM)]
-\@ifl at t@r\fmtversion{2022/11/01}{% would have understood
- % \IfFormatAtLeastTF{2022-11-01}{<true code>}{<false code>}
- }{\PackageError{undolabl}{%
- Newer LaTeX format needed or older undolabl package%
- }{Needed LaTeX format version: 2022-11-01 or newer.\MessageBreak%
- Found\space\space LaTeX format version: \fmtversion.\MessageBreak%
- Either update your TeX distribution\MessageBreak%
- or use an archived version of undolabl\MessageBreak%
- (see section History in the documentation).\MessageBreak%
- }
- }
+\@ifl at t@r\fmtversion{2024/06/01}{}{\PackageError{undolabl}{%
+ LaTeX format 2024-06-01 or newer needed}{%
+ Needed LaTeX format version: 2024-06-01 or newer.\MessageBreak%
+ Found\space\space LaTeX format version: \fmtversion.\MessageBreak%
+ Please update your TeX distribution!\MessageBreak%
+ Loading of undolabl package is aborted.}
+ \expandafter\endinput}
-\AddToHook{begindocument}{%
- \if at filesw%
- \else%
- \IfPackageLoadedTF{tikz}{%
- \PackageWarning{undolabl}%
- {The undolabl package was not allowed to write to an\MessageBreak%
- .aux file. This package does not work without access\MessageBreak%
- to an .aux file.\MessageBreak%
- It is OK if the .aux file was already updated\MessageBreak%
- by a previouse compiler run\MessageBreak%
- and would not have changed anyway.\MessageBreak%
- }%
- }{\PackageError{undolabl}{No writing to auxiliary file allowed}%
- {The undolabl package was not allowed to write to an .aux file.\MessageBreak%
- This package does not work without access to an .aux file.\MessageBreak%
- Press Ctrl+Z to exit.\MessageBreak%
- But it is OK if the .aux file was already updated\MessageBreak%
- by a previouse compiler run\MessageBreak%
- and would not have changed anyway.\MessageBreak%
- }%
- }%
- \fi%
- \IfPackageLoadedTF{acronym}%
- {\IfPackageAtLeastTF{acronym}{2015/03/21}{% later, OK
- }{\PackageError{undolabl}{Incompatible old acronym package detected}%
- {The undolabl package is not compatible with the acronym package%
- \MessageBreak%
- older than 2015/03/21 v1.41. Please update your acronym package!%
- \MessageBreak%
- }%
- }%
- }{% not loaded, OK
- }%
- }
-
\newcommand\overridelabel[1]{%
\@bsphack%
\if at filesw%
@@ -117,8 +78,7 @@
\PackageError{undolabl}{Label `#2' shall be overridden ^^J%
although it does not yet exist}{%
A label which does not exist cannot be overridden.}%
- }{%
- \expandafter\global
+ }{\expandafter\global
\expandafter\let
\csname #1@#2\endcsname\relax%
}%
@@ -128,7 +88,7 @@
\@ifundefined{#1@#2}{\global\@namedef{#1@#2}{i}}{%
\expandafter\g at addto@macro\csname #1@#2\endcsname{i}%
}%
- \PackageWarning{undolabl}{Label `#2' overridden}%
+ \PackageNote{undolabl}{Label `#2' overridden}%
}
\newcommand\undolabl at testdef[3]{%
@@ -147,8 +107,6 @@
}%
}
-\if at filesw\protected at write\@auxout{}{\string\reset at newl@bel}\fi
-
\newcommand\reset at newl@bel{%
\ifx\@newl at bel\@testdef%
\let\@newl at bel\undolabl at testdef%
@@ -156,6 +114,33 @@
\fi%
}
+\AddToHook{begindocument}{%
+ \if at filesw%
+ \immediate\write\@auxout{\string\reset at newl@bel}%
+ \else%
+ \IfPackageLoadedTF{tikz}{\PackageWarningNoLine{undolabl}{%
+ The undolabl package was not allowed to write to an\MessageBreak%
+ .aux file. This package does not work without access\MessageBreak%
+ to an .aux file.\MessageBreak%
+ It is OK if the .aux file was already updated\MessageBreak%
+ by a previouse compiler run\MessageBreak%
+ and would not have changed anyway.}%
+ }{\PackageError{undolabl}{No writing to auxiliary file allowed}{%
+ The undolabl package was not allowed to write to an .aux file.\MessageBreak%
+ This package does not work without access to an .aux file.\MessageBreak%
+ Press Ctrl+Z to exit.\MessageBreak%
+ But it is OK if the .aux file was already updated\MessageBreak%
+ by a previouse compiler run\MessageBreak%
+ and would not have changed anyway.}%
+ }%
+ \fi%
+ \IfPackageLoadedT{acronym}{\IfPackageAtLeastF{acronym}{2015/03/21}{%
+ \PackageError{undolabl}{Incompatible old acronym package detected}{%
+ The undolabl package is not compatible with acronym package\MessageBreak%
+ older than 2015/03/21 v1.41.\MessageBreak%
+ Found version: \csname ver at acronym.sty\endcsname .\MessageBreak%
+ Please update your acronym package!%
+ }}}}
\endinput
%%
%% End of file `undolabl.sty'.
More information about the tex-live-commits
mailing list.