diff options
author | Karl Berry <karl@freefriends.org> | 2015-03-30 23:04:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-03-30 23:04:32 +0000 |
commit | 01a985ede67216a0656c5bf2ac6d9cfb018fa827 (patch) | |
tree | 18812546204615523ced5186109a6c06abc408f0 /Master | |
parent | bc1d8cd685177e278fd22ad398c977521936a915 (diff) |
undolabl (30mar15)
git-svn-id: svn://tug.org/texlive/trunk@36681 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/undolabl/README | 78 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/undolabl/undolabl-example.pdf | bin | 48342 -> 48824 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/undolabl/undolabl-example.tex | 23 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/undolabl/undolabl.pdf | bin | 299603 -> 304222 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/undolabl/undolabl.drv | 24 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/undolabl/undolabl.dtx | 356 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/undolabl/undolabl.ins | 42 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/undolabl/undolabl.sty | 88 |
8 files changed, 361 insertions, 250 deletions
diff --git a/Master/texmf-dist/doc/latex/undolabl/README b/Master/texmf-dist/doc/latex/undolabl/README index d35e80014ea..981f752eaa6 100644 --- a/Master/texmf-dist/doc/latex/undolabl/README +++ b/Master/texmf-dist/doc/latex/undolabl/README @@ -1,4 +1,4 @@ -README for undolabl package, 2012/01/01, v1.0k +README for undolabl package, 2015/03/29, v1.0l TABLE OF CONTENTS @@ -20,8 +20,9 @@ TABLE OF CONTENTS This LaTeX package allows to override existing labels, especially automatically generated ones. -Note: The main code of this package was invented by -Ulrich Diez (eu_angelion AT web DOT de) and first published in the +The main code of this package was invented by +Ulrich Diez (eu_angelion AT web DOT de) +and first published in the comp.text.tex newsgroup at Sun, 20 Apr 2008 16:39:26 +0200, with subject: Re: How to undefine/overwrite a label? (see e.g. http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source). @@ -31,38 +32,32 @@ publication of his code. Therefore: Thanks! I (H.-Martin Münch) submitted this package to CTAN (after some updates of the documentation, mainly layout, typos and such things.) -This material is subject to the LaTeX Project Public License -(LPPL). See http://www.ctan.org/tex-archive/help/Catalogue/ -licenses.lppl.html for the details of that license. + +This material is published under the LPPL 1.3c: This work may be +distributed and/or modified under the conditions of the LaTeX Project +Public License, either version 1.3c of this license or (at your option) any +later version. This version of this license is in +http://www.latex-project.org/lppl/lppl-1-3c.txt +and the latest version of this license is in +http://www.latex-project.org/lppl.txt +and version 1.3c or later is part of all distributions of LaTeX version +2005/12/01 or later. 2 DOWNLOAD ========== `undolabl' is available on CTAN: - CTAN:macros/latex/contrib/undolabl/ - -Running -tex undolabl.dtx -generates the files -undolabl.ins, undolabl.drv, undolabl.sty, -and undolabl-example.tex. - -Also a ZIP file is provided that contains these files, -the manual (undolabl.pdf), the compiled example -(undolabl-example.pdf), and this README, already -sorted in a TDS tree: - CTAN:install/macros/latex/contrib/undolabl.tds.zip - -`CTAN:' means one of the `Comprehensive TeX Archive Network' -nodes or one of its mirrors. This is explained in - http://www.tex.ac.uk/cgi-bin/texfaq2html?label=archives +https://www.ctan.org/pkg/undolabl -The CTAN stuff will be mirrored automatically from the -ftp server, so - ftp://ftp.tug.org/pub/tex/undolabl/ -corresponds to - CTAN:macros/latex/contrib/undolabl/ +Also a ZIP file is provided that contains the files: +the manual (undolabl.pdf), the example (undolabl-example.tex), +the compiled example (undolabl-example.pdf), +driver (undolabl.drv), undolabl.dtx, +installation file (undolabl.ins), +the style file (undolabl.sty), +and this README, already sorted in a TDS tree: +http://mirrors.ctan.org/install/macros/latex/contrib/undolabl.tds.zip 3 INSTALLATION @@ -73,7 +68,8 @@ Installation with ZIP file in TDS format The ZIP file `undolabl.tds.zip' contains the files sorted in a TDS tree. Thus you can directly unpack the ZIP file inside a TDS tree. -(See CTAN:tds.zip for an explanation of TDS.) +See https://www.ctan.org/TDS-guidelines for an explanation +of TDS. Example: cd /...somewhere.../texmf unzip /...downloadpath.../undolabl.tds.zip @@ -92,15 +88,15 @@ c) Install the file `*.sty' in your TDS tree: cp *.sty TDS:tex/latex/undolabl/ Replace `TDS:' by the prefix of your TDS tree (texmf directory). -d) Create the documentation (if necessary), e.g. +d) Create the documentation, if necessary, e.g. pdflatex undolabl.dtx makeindex -s gind.ist undolabl.idx pdflatex undolabl.dtx makeindex -s gind.ist undolabl.idx pdflatex undolabl.dtx -e) Update the databases if necessary, e.g. for teTeX: +e) Update the databases, if necessary, e.g. for teTeX: mktexlsr .../texmf -f) Create the undolabl-example.pdf (if necessary), e.g. +f) Create the undolabl-example.pdf, if necessary, e.g. pdflatex undolabl-example.tex pdflatex undolabl-example.tex pdflatex undolabl-example.tex @@ -115,22 +111,30 @@ g) Copy the documentation files to undolabl itself does not load other packages, but working with labels usually means using -* hyperref, http://ctan.org/pkg/hyperref +* hyperref, https://www.ctan.org/pkg/hyperref which again loads other packages (see the result of the \listfiles command in the log-file - of the example). +of the example). +Also the undolabl.dtx loads other packages +(for unpacking and constructing the documentation), +see "5.1 Downloads" in the manual +http://mirrors.ctan.org/macros/latex/contrib/undolabl/undolabl.pdf 5 PACKAGE COMPATIBILITY ======================= -There are no known incompatibilities. +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 -6 AUTHOR/MAINTAINER +6 AUTHORS/MAINTAINER ===================== -* Author of the original main code: Ulrich Diez (Thanks!) +* Author of the original main code: + Ulrich Diez (Thanks!) * Author of the recent package and current maintainer: H.-Martin Münch diff --git a/Master/texmf-dist/doc/latex/undolabl/undolabl-example.pdf b/Master/texmf-dist/doc/latex/undolabl/undolabl-example.pdf Binary files differindex 90d3e4abdef..4979248c8d6 100644 --- a/Master/texmf-dist/doc/latex/undolabl/undolabl-example.pdf +++ b/Master/texmf-dist/doc/latex/undolabl/undolabl-example.pdf diff --git a/Master/texmf-dist/doc/latex/undolabl/undolabl-example.tex b/Master/texmf-dist/doc/latex/undolabl/undolabl-example.tex index 8ae37a862fa..45c7c7d8956 100644 --- a/Master/texmf-dist/doc/latex/undolabl/undolabl-example.tex +++ b/Master/texmf-dist/doc/latex/undolabl/undolabl-example.tex @@ -9,9 +9,9 @@ %% This is a generated file. %% %% Project: undolabl -%% Version: 2012/01/01 v1.0k +%% Version: 2015/03/29 v1.0l %% -%% Copyright (C) 2010 - 2012 by +%% Copyright (C) 2010 - 2015 by %% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> %% Portions of code copyrighted by other people as marked. %% @@ -34,9 +34,10 @@ %% %% The Current Maintainer of this work is H.-Martin Muench. %% -%% The main code of this package was invented by Ulrich Diez -%% (eu_angelion AT web DOT de) and first published in the comp.text.tex -%% newsgroup at Sun, 20 Apr 2008 16:39:26 +0200, with subject: +%% The main code of this package was invented by +%% Ulrich Diez (eu_angelion AT web DOT de) +%% and first published in the comp.text.tex newsgroup +%% at Sun, 20 Apr 2008 16:39:26 +0200, with subject: %% Re: How to undefine/overwrite a label? (see e.g. %% http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source %% ). While Ulrich Diez neither wanted to create a package himself yet @@ -49,9 +50,13 @@ %% undolabl.ins, undolabl.drv, %% undolabl-example.tex, undolabl-example.pdf. %% +%% In memoriam +%% Claudia Simone Barth + 1996/01/30 +%% Tommy Muench + 2014/01/02 +%% Hans-Klaus Muench + 2014/08/24 +%% \documentclass[british]{article}[2007/10/19]% v1.4h -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\usepackage{undolabl}[2012/01/01]% v1.0k +\usepackage{undolabl}[2015/03/29]% v1.0l %% There are no options for the undolabl package. %% \usepackage[% extension=pdf,% @@ -67,7 +72,7 @@ pdfstartview=FitH,% pdfpagelayout=OneColumn,% bookmarksopen=true% -]{hyperref}[2011/12/04]% v6.82m; when you want to use nameref +]{hyperref}[2012/11/06]% v6.83m; when you want to use nameref \gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \listfiles \begin{document} @@ -75,7 +80,7 @@ \section*{Example for undolabl} This example demonstrates the use of package\newline -\textsf{undolabl}, v1.0k as of 2012/01/01 (HMM).\newline +\textsf{undolabl}, v1.0l as of 2015/03/29 (HMM).\newline For details please see the documentation!\newline \noindent Save per page about $200\unit{ml}$~water, diff --git a/Master/texmf-dist/doc/latex/undolabl/undolabl.pdf b/Master/texmf-dist/doc/latex/undolabl/undolabl.pdf Binary files differindex ea1cedcf345..e9d80337222 100644 --- a/Master/texmf-dist/doc/latex/undolabl/undolabl.pdf +++ b/Master/texmf-dist/doc/latex/undolabl/undolabl.pdf diff --git a/Master/texmf-dist/source/latex/undolabl/undolabl.drv b/Master/texmf-dist/source/latex/undolabl/undolabl.drv index f92873d39b2..06482ee85db 100644 --- a/Master/texmf-dist/source/latex/undolabl/undolabl.drv +++ b/Master/texmf-dist/source/latex/undolabl/undolabl.drv @@ -9,9 +9,9 @@ %% This is a generated file. %% %% Project: undolabl -%% Version: 2012/01/01 v1.0k +%% Version: 2015/03/29 v1.0l %% -%% Copyright (C) 2010 - 2012 by +%% Copyright (C) 2010 - 2015 by %% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> %% Portions of code copyrighted by other people as marked. %% @@ -34,9 +34,10 @@ %% %% The Current Maintainer of this work is H.-Martin Muench. %% -%% The main code of this package was invented by Ulrich Diez -%% (eu_angelion AT web DOT de) and first published in the comp.text.tex -%% newsgroup at Sun, 20 Apr 2008 16:39:26 +0200, with subject: +%% The main code of this package was invented by +%% Ulrich Diez (eu_angelion AT web DOT de) +%% and first published in the comp.text.tex newsgroup +%% at Sun, 20 Apr 2008 16:39:26 +0200, with subject: %% Re: How to undefine/overwrite a label? (see e.g. %% http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source %% ). While Ulrich Diez neither wanted to create a package himself yet @@ -49,11 +50,16 @@ %% undolabl.ins, undolabl.drv, %% undolabl-example.tex, undolabl-example.pdf. %% -\NeedsTeXFormat{LaTeX2e}[2011/06/27] +%% In memoriam +%% Claudia Simone Barth + 1996/01/30 +%% Tommy Muench + 2014/01/02 +%% Hans-Klaus Muench + 2014/08/24 +%% +\NeedsTeXFormat{LaTeX2e}[2014/05/01] \ProvidesFile{undolabl.drv}% - [2012/01/01 v1.0k Overriding labels (HMM)] -\documentclass{ltxdoc}[2007/11/11]% v2.0u -\usepackage{holtxdoc}[2011/02/04]% v0.21 + [2015/03/29 v1.0l Overriding labels (HMM)] +\documentclass{ltxdoc}[2014/09/29]% v2.0u +\usepackage{holtxdoc}[2012/03/21]% v0.24 %% undolabl may work with earlier versions of LaTeX2e and those %% class and package, but this was not tested. %% Please consider updating your LaTeX, class, and package diff --git a/Master/texmf-dist/source/latex/undolabl/undolabl.dtx b/Master/texmf-dist/source/latex/undolabl/undolabl.dtx index c8dcfc951dc..180876aefde 100644 --- a/Master/texmf-dist/source/latex/undolabl/undolabl.dtx +++ b/Master/texmf-dist/source/latex/undolabl/undolabl.dtx @@ -1,15 +1,15 @@ % \iffalse meta-comment % % File: undolabl.dtx -% Version: 2012/01/01 v1.0k +% Version: 2015/03/29 v1.0l % -% Copyright (C) 2010 - 2012 by +% Copyright (C) 2010 - 2015 by % H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> % Portions of code copyrighted by other people as marked. % -% The main code of this package was invented by -% Ulrich Diez (eu_angelion AT web DOT de) and first published in the -% comp.text.tex newsgroup at Sun, 20 Apr 2008 16:39:26 +0200, with subject: +% The main code of this package was invented by Ulrich Diez +% and first published in the comp.text.tex newsgroup +% at Sun, 20 Apr 2008 16:39:26 +0200, with subject: % Re: How to undefine/overwrite a label? (see e.g. % http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source % ). While Ulrich Diez neither wanted to create a package himself yet @@ -36,48 +36,12 @@ % undolabl.ins, undolabl.drv, % undolabl-example.tex, undolabl-example.pdf. % -% Distribution: -% CTAN:macros/latex/contrib/undolabl/undolabl.dtx -% CTAN:macros/latex/contrib/undolabl/undolabl.pdf -% CTAN:install/macros/latex/contrib/undolabl.tds.zip -% -% Cf. http://ctan.org/pkg/undolabl and -% http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/undolabl.html -% -% Unpacking: -% (a) If undolabl.ins is present: -% tex undolabl.ins -% (b) Without undolabl.ins: -% tex undolabl.dtx -% (c) If you insist on using LaTeX -% latex \let\install=y\input{undolabl.dtx} -% (quote the arguments according to the demands of your shell) -% -% Documentation: -% (a) If undolabl.drv is present: -% (pdf)latex undolabl.drv -% makeindex -s gind.ist undolabl.idx -% (pdf)latex undolabl.drv -% makeindex -s gind.ist undolabl.idx -% (pdf)latex undolabl.drv -% (b) Without undolabl.drv: -% (pdf)latex undolabl.dtx -% makeindex -s gind.ist undolabl.idx -% (pdf)latex undolabl.dtx -% makeindex -s gind.ist undolabl.idx -% (pdf)latex undolabl.dtx -% -% The class ltxdoc loads the configuration file ltxdoc.cfg -% if available. Here you can specify further options, e.g. -% use DIN A4 as paper format: -% \PassOptionsToClass{a4paper}{article} -% -% Installation: -% TDS:tex/latex/undolabl/undolabl.sty -% TDS:doc/latex/undolabl/undolabl.pdf -% TDS:doc/latex/undolabl/undolabl-example.tex -% TDS:doc/latex/undolabl/undolabl-example.pdf -% TDS:source/latex/undolabl/undolabl.dtx +% 'undolabl' is available on CTAN: +% https://www.ctan.org/pkg/undolabl +% +% Also a TDS.ZIP file is provided that contains all the files +% already sorted in a TDS tree: +% http://mirrors.ctan.org/install/macros/latex/contrib/undolabl.tds.zip % %<*ignore> \begingroup @@ -92,10 +56,10 @@ %</ignore> %<*install> \input docstrip.tex -\Msg{**************************************************************} -\Msg{* Installation *} -\Msg{* Package: undolabl 2012/01/01 v1.0k Overriding labels (HMM) *} -\Msg{**************************************************************} +\Msg{************************************************************} +\Msg{* Installation} +\Msg{* Package: undolabl 2015/03/29 v1.0l Overriding labels (HMM)} +\Msg{************************************************************} \keepsilent \askforoverwritefalse @@ -106,9 +70,9 @@ This is a generated file. Project: undolabl -Version: 2012/01/01 v1.0k +Version: 2015/03/29 v1.0l -Copyright (C) 2010 - 2012 by +Copyright (C) 2010 - 2015 by H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> Portions of code copyrighted by other people as marked. @@ -131,9 +95,10 @@ This work has the LPPL maintenance status "maintained". The Current Maintainer of this work is H.-Martin Muench. -The main code of this package was invented by Ulrich Diez -(eu_angelion AT web DOT de) and first published in the comp.text.tex -newsgroup at Sun, 20 Apr 2008 16:39:26 +0200, with subject: +The main code of this package was invented by +Ulrich Diez (eu_angelion AT web DOT de) +and first published in the comp.text.tex newsgroup +at Sun, 20 Apr 2008 16:39:26 +0200, with subject: Re: How to undefine/overwrite a label? (see e.g. http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source ). While Ulrich Diez neither wanted to create a package himself yet @@ -146,6 +111,11 @@ the README, and the derived files undolabl.ins, undolabl.drv, undolabl-example.tex, undolabl-example.pdf. +In memoriam + Claudia Simone Barth + 1996/01/30 + Tommy Muench + 2014/01/02 + Hans-Klaus Muench + 2014/08/24 + \endpreamble \let\MetaPrefix\DoubleperCent @@ -165,7 +135,7 @@ the README, and the derived files \Msg{* To finish the installation you have to move the following} \Msg{* file into a directory searched by TeX:} \Msg{*} -\Msg{* undolabl.sty} +\Msg{* undolabl.sty} \Msg{*} \Msg{* To produce the documentation run the file `undolabl.drv'} \Msg{* through (pdf)LaTeX, e.g.} @@ -191,7 +161,7 @@ the README, and the derived files % \section{The documentation driver file} % % The next bit of code contains the documentation driver file for -% \TeX{}, i.\,e., the file that will produce the documentation you +% \TeX , i.\,e., the file that will produce the documentation you % are currently reading. It will be extracted from this file by the % \texttt{docstrip} programme. That is, run \LaTeX{} on \texttt{docstrip} % and specify the \texttt{driver} option when \texttt{docstrip} @@ -199,11 +169,11 @@ the README, and the derived files % % \begin{macrocode} %<*driver> -\NeedsTeXFormat{LaTeX2e}[2011/06/27] +\NeedsTeXFormat{LaTeX2e}[2014/05/01] \ProvidesFile{undolabl.drv}% - [2012/01/01 v1.0k Overriding labels (HMM)] -\documentclass{ltxdoc}[2007/11/11]% v2.0u -\usepackage{holtxdoc}[2011/02/04]% v0.21 + [2015/03/29 v1.0l Overriding labels (HMM)] +\documentclass{ltxdoc}[2014/09/29]% v2.0u +\usepackage{holtxdoc}[2012/03/21]% v0.24 %% undolabl may work with earlier versions of LaTeX2e and those %% class and package, but this was not tested. %% Please consider updating your LaTeX, class, and package @@ -237,7 +207,7 @@ the README, and the derived files % % \fi % -% \CheckSum{79} +% \CheckSum{107} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -272,7 +242,7 @@ the README, and the derived files % }%^^A % \expandafter\endgroup\x % -% \DoNotIndex{\\} +% \DoNotIndex{\",\-,\,,\\,\noindent} % \DoNotIndex{\documentclass,\usepackage,\ProvidesPackage,\begin,\end} % \DoNotIndex{\MessageBreak} % \DoNotIndex{\NeedsTeXFormat,\DoNotIndex,\verb} @@ -287,13 +257,13 @@ the README, and the derived files % \DoNotIndex{\Large} % % \title{The \xpackage{undolabl} package} -% \date{2012/01/01 v1.0k} +% \date{2015/03/29 v1.0l} % \author{H.-Martin M\"{u}nch\\\xemail{Martin.Muench at Uni-Bonn.de}} % % \maketitle % % \begin{abstract} -% This \LaTeX{} package allows to override existing labels, +% \noindent This \LaTeX{} package allows to override existing labels, % especially automatically generated ones. % \end{abstract} % @@ -306,13 +276,13 @@ the README, and the derived files % updated by removing the second argument of |\undonewlabel|, i.\,e. the |{\on@line}|.\\ % % \noindent Note: The main code of this package was invented by\\ -% \textbf{ULRICH DIEZ} (\texttt{eu\_angelion@web.de})\\ +% \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. -% \url{http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source} +% \url{http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source}% % ).\\ -% While \textsc{Ulrich Diez} neither wanted to create a~package himself yet +% 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, @@ -468,7 +438,7 @@ the README, and the derived files % changed although that might not be a correct statement. % \end{description} % -% \textsc{Ulrich Diez} decided to catch this up by his |\undolabl@testdef| command. +% \textbf{ULRICH DIEZ} decided to catch this up by his |\undolabl@testdef| command. % The |\undolabl@testdef|-comparison-mechanism gets enhanced via % \textquotedblleft replacing\textquotedblright{}. This works as follows: % When the \xfile{.aux} file is read at the beginning of the \LaTeX{}-run, @@ -503,8 +473,7 @@ the README, and the derived files % \begin{macrocode} %<*example> \documentclass[british]{article}[2007/10/19]% v1.4h -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\usepackage{undolabl}[2012/01/01]% v1.0k +\usepackage{undolabl}[2015/03/29]% v1.0l %% There are no options for the undolabl package. %% \usepackage[% extension=pdf,% @@ -520,7 +489,7 @@ the README, and the derived files pdfstartview=FitH,% pdfpagelayout=OneColumn,% bookmarksopen=true% -]{hyperref}[2011/12/04]% v6.82m; when you want to use nameref +]{hyperref}[2012/11/06]% v6.83m; when you want to use nameref \gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \listfiles \begin{document} @@ -528,7 +497,7 @@ the README, and the derived files \section*{Example for undolabl} This example demonstrates the use of package\newline -\textsf{undolabl}, v1.0k as of 2012/01/01 (HMM).\newline +\textsf{undolabl}, v1.0l as of 2015/03/29 (HMM).\newline For details please see the documentation!\newline \noindent Save per page about $200\unit{ml}$~water, @@ -592,9 +561,9 @@ name-reference: \nameref{testlabel}%% -> Still another test % \end{macrocode} % % \begin{macrocode} -\NeedsTeXFormat{LaTeX2e}[2011/06/27] -\ProvidesPackage{undolabl}[2012/01/01 v1.0k - Overriding labels (HMM)] +\NeedsTeXFormat{LaTeX2e}[2014/05/01] +\ProvidesPackage{undolabl}% + [2015/03/29 v1.0l Overriding labels (HMM)] %% undolabl may work with earlier versions of LaTeX2e, %% but this was not tested. Please consider updating %% your LaTeX2e to the most recent version @@ -602,8 +571,79 @@ name-reference: \nameref{testlabel}%% -> Still another test % \end{macrocode} % +% \begin{macro}{\AtBeginDocument} +% +% |\AtBeginDocument| 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} +\AtBeginDocument{% + \if@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% + \@ifpackageloaded{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} +% +% \newpage +% +% 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} + \@ifpackageloaded{acronym}% + {\@ifpackagelater{acronym}{2015/03/20}% + {% 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} +% \end{macro} +% % \DescribeMacro{\overridelabel} -% In order to override a label, first you need to write to the +% In order to override a label, first one needs to write to the % \xfile{.aux} file to silently undefine the associated |\r@<label>|-macro % if it is already defined. That is why |\overridelabel| writes in % terms of |\protected@write| to the \xfile{.aux} file: @@ -613,9 +653,10 @@ name-reference: \nameref{testlabel}%% -> Still another test % % \begin{macrocode} \newcommand\overridelabel[1]{% -\@bsphack - \protected@write\@auxout{}{\string\undonewlabel{#1}}% - \@overriddenmessage s{#1}% +\@bsphack% + \if@filesw% + \protected@write\@auxout{}{\string\undonewlabel{#1}}% + \@overriddenmessage s{#1}% % \end{macrocode} % % Then |\overridelabel| can call |\label{<label>}| again @@ -623,9 +664,10 @@ name-reference: \nameref{testlabel}%% -> Still another test % \xfile{.aux} file. % % \begin{macrocode} - \label{#1}% + \label{#1}% + \fi% \@esphack% -} + } % \end{macrocode} % @@ -649,21 +691,22 @@ name-reference: \nameref{testlabel}%% -> Still another test }{% % \end{macrocode} % -% \noindent otherwise:\\ +% \pagebreak +% +% \noindent otherwise:\newline % Undefine |\r@label| via letting it equal to |\relax|: % % \begin{macrocode} \expandafter\global \expandafter\let - \csname #1@#2\endcsname\relax + \csname #1@#2\endcsname\relax% }% } % \end{macrocode} % -% \pagebreak -% % \DescribeMacro{\@overriddenmessage} +% % Command for the notification of overriding a label: % % \begin{macrocode} @@ -683,14 +726,14 @@ name-reference: \nameref{testlabel}%% -> Still another test \@ifundefined{s@#2}\@secondoftwo\@firstofone{% \expandafter\ifx\csname s@#2\endcsname\empty \expandafter\@firstofone - \else + \else% \expandafter\xdef\csname s@#2\endcsname{% \expandafter\expandafter \expandafter\@gobble \csname s@#2\endcsname }% \expandafter\@gobble - \fi + \fi% }{\@testdef{#1}{#2}{#3}% }% } @@ -700,7 +743,9 @@ name-reference: \nameref{testlabel}%% -> Still another test % \DescribeMacro{\protected@write\\@auxout} % % \begin{macrocode} -\protected@write\@auxout{}{\string\reset@newl@bel} +\if@filesw% + \protected@write\@auxout{}{\string\reset@newl@bel}% +\fi% % \end{macrocode} % @@ -708,10 +753,10 @@ name-reference: \nameref{testlabel}%% -> Still another test % % \begin{macrocode} \newcommand\reset@newl@bel{% - \ifx\@newl@bel\@testdef - \let\@newl@bel\undolabl@testdef - \let\undonewlabel\@gobble - \fi + \ifx\@newl@bel\@testdef% + \let\@newl@bel\undolabl@testdef% + \let\undonewlabel\@gobble% + \fi% } % \end{macrocode} @@ -726,46 +771,46 @@ name-reference: \nameref{testlabel}%% -> Still another test % % \subsection{Downloads\label{ss:Downloads}} % -% Everything is available on \CTAN{}, \url{http://www.ctan.org/tex-archive/}, +% Everything is available at \url{https://www.ctan.org} % but may need additional packages themselves.\\ % % \DescribeMacro{undolabl.dtx} % For unpacking the |undolabl.dtx| file and constructing the documentation % it is required: % \begin{description} -% \item[-] \TeX{} Format \LaTeXe{}, \url{http://www.CTAN.org/} +% \item[-] \TeX{} Format \LaTeXe{}, \url{https://www.CTAN.org} % -% \item[-] document class \xpackage{ltxdoc}, 2007/11/11, v2.0u, -% \url{http://ctan.org/pkg/ltxdoc} +% \item[-] document class \xpackage{ltxdoc}, 2014/09/29, v2.0u, +% \url{https://www.ctan.org/pkg/ltxdoc} % -% \item[-] package \xpackage{holtxdoc}, 2011/02/04, v0.21, -% \url{http://ctan.org/pkg/holtxdoc} +% \item[-] package \xpackage{holtxdoc}, 2012/03/21, v0.24, +% \url{https://www.ctan.org/pkg/holtxdoc} % -% \item[-] package \xpackage{hypdoc}, 2010/03/26, v1.9, -% \url{http://ctan.org/pkg/hypdoc} +% \item[-] package \xpackage{hypdoc}, 2011/08/19, v1.11, +% \url{https://www.ctan.org/pkg/hypdoc} % \end{description} % % \DescribeMacro{undolabl.sty} % The |undolabl.sty| for \LaTeXe{} (i.\,e.~each document using % the \xpackage{undolabl} package) requires: % \begin{description} -% \item[-] \TeX{} Format \LaTeXe{}, \url{http://www.CTAN.org/} +% \item[-] \TeX{} Format \LaTeXe{}, \url{https://www.CTAN.org} % \end{description} % % \DescribeMacro{undolabl-example.tex} % The |undolabl-example.tex| requires the same files as all % documents using the \xpackage{undolabl} package and additionally: % \begin{description} -% \item[-] class \xpackage{article}, 2007/10/19, v1.4h, from \xpackage{classes.dtx}:\\ -% \CTAN{macros/latex/base/classes.dtx} +% \item[-] class \xpackage{article}, 2014/09/29, v1.4h, +% \url{https://www.ctan.org/pkg/article} % -% \item[-] package \xpackage{hyperref}, 2011/12/04,~v6.82m: -% \url{http://ctan.org/pkg/hyperref},\\ -% if |\nameref| shall be used\\ -% (and when the references shall be hyperlinked, of course) +% \item[-] package \xpackage{hyperref}, 2012/11/06, v6.83m: +% \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}, 2012/01/01, v1.0k, -% \url{http://ctan.org/pkg/undolabl}\\ +% \item[-] package \xpackage{undolabl}, 2015/03/29, v1.0l, +% \url{https://www.ctan.org/pkg/undolabl}\\ % (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?) @@ -777,37 +822,29 @@ name-reference: \nameref{testlabel}%% -> Still another test % All packages of \textsc{Heiko Oberdiek}'s bundle `oberdiek' % (especially \xpackage{holtxdoc} and \xpackage{hypdoc}) % are also available in a TDS compliant ZIP archive:\\ -% \CTAN{install/macros/latex/contrib/oberdiek.tds.zip}.\\ +% \url{http://mirrors.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} -% \noindent \xpackage{hyperref} is not included in that bundle and needs to be +% \xpackage{hyperref} is not included in that bundle and needs to be % downloaded separately,\\ % \url{http://mirror.ctan.org/install/macros/latex/contrib/hyperref.tds.zip}.\\ % % \DescribeMacro{M\"{u}nch} -% A hyperlinked list of my (other) packages can be found at -% \url{http://www.Uni-Bonn.de/~uzs5pv/LaTeX.html}.\\ +% A hyperlinked list of my (other) packages can be found at\\ +% \url{https://www.ctan.org/author/muench-hm}. % % \pagebreak +% % \subsection{Package, unpacking TDS} -% \paragraph{Package.} This package is available on \CTAN{} -% \begin{description} -% \item[\CTAN{macros/latex/contrib/undolabl/undolabl.dtx}]\hspace*{0.1cm} \\ -% The source file. -% \item[\CTAN{macros/latex/contrib/undolabl/undolabl.pdf}]\hspace*{0.1cm} \\ -% The documentation. -% \item[\CTAN{macros/latex/contrib/undolabl/undolabl-example.pdf}]\hspace*{0.1cm} \\ -% The compiled example file, as it should look like. -% \item[\CTAN{macros/latex/contrib/undolabl/README}]\hspace*{0.1cm} \\ -% The README file. -% \end{description} +% \paragraph{Package.} This package is available at +% \url{https://www.ctan.org/pkg/undolabl}, especially +% the manual (README, undolabl.pdf), the example (source: undolabl-example.tex, +% compiled: undolabl-example.pdf), and the undolabl.dtx. % There is also an undolabl.tds.zip available: -% \begin{description} -% \item[\CTAN{install/macros/latex/contrib/undolabl.tds.zip}]\hspace*{0.1cm} \\ -% Everything in \xfile{TDS} compliant, compiled format. -% \end{description} +% \url{http://mirrors.ctan.org/install/macros/latex/contrib/undolabl.tds.zip} +% (everything in \xfile{TDS} compliant, compiled format), % which additionally contains\\ % \begin{tabular}{ll} % undolabl.ins & The installation file.\\ @@ -827,7 +864,7 @@ name-reference: \nameref{testlabel}%% -> Still another test % \verb|tex undolabl.dtx| % \end{quote} % -% About generating the documentation see paragraph~\ref{GenDoc} below.\\ +% \noindent About generating the documentation see paragraph~\ref{GenDoc} below.\\ % % \paragraph{TDS.} Now the different files must be moved into % the different directories in your installation TDS tree @@ -952,45 +989,47 @@ name-reference: \nameref{testlabel}%% -> Still another test % % \section{Acknowledgements} % -% The main code of this package was invented by \textbf{Ulrich Diez} -% (\texttt{eu\_angelion@web.de}) and first published in the \Newsgroup{comp.text.tex} -% newsgroup at\\ +% The main code of this package was invented by \\ +% \textbf{ULRICH DIEZ} (\texttt{eu\_angelion@web.de})\\ +% 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. % \url{http://groups.google.de/group/comp.text.tex/msg/5ba8d4722e5cd326?dmode=source} % as well as \linebreak % \url{http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source}).\\ -% I (\textsc{H.-Martin M\"{u}nch}) would like to thank \textsc{Ulrich Diez} -% for this as well as for his permission to publish it on \CTAN{} as well as +% I (\textsc{H.-Martin M\"{u}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. % I also thank those anonymous people who had published the package somewhere else % on the internet, where I found it first. % Further I would like to thank \textsc{Rainer Wintermute} for explaining the % |\CheckSum|, \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), \textsc{Robin Fairbairns} and everybody of the \CTAN{} team -% for managing \CTAN{}, and the \Newsgroup{comp.text.tex} and \Newsgroup{de.comp.text.tex} +% OK, say it: copying), \textsc{Robin Fairbairns} and everybody of the CTAN team +% for managing CTAN, and the \Newsgroup{comp.text.tex} and \Newsgroup{de.comp.text.tex} % newsgroups for their help in all things \TeX{}. % % \pagebreak % % \phantomsection % \begin{History}\label{History} +% +% Some old versions have been archived at\\ +% \url{http://ctanhg.scharrer-online.de/pkg/undolabl.html}. +% % \begin{Version}{2008/04/20 v0.3(a)} -% \item created by \textsc{Ulrich Diez} +% \item created by \textbf{ULRICH DIEZ} % \end{Version} % \begin{Version}{2010/04/08 v0.3b} % \item \xfile{.dtx} updated by \textsc{H.-Martin M\"{u}nch}, -% submitted to \CTAN{}\\ -% (no changes in the style code). +% submitted to CTAN (no changes in the style code). % \end{Version} % \begin{Version}{2010/06/01 v1.0(a)} -% \item \xfile{.dtx} updated by \textsc{H.-Martin M\"{u}nch}: some minor -% corrections in the documentation, an internal renaming for possible -% better compatibility with other packages. -% \item The main code of this package was invented in 2008 by \textsc{Ulrich Diez} +% \item \xfile{.dtx} updated: some minor corrections in the documentation, +% an internal renaming for possible better compatibility with other packages. +% \item The main code of this package was invented in 2008 by \textbf{ULRICH DIEZ} % (\texttt{eu\_angelion@web.de}) and published on the internet. -% Because \textsc{Ulrich Diez} neither wanted to create a package himself yet +% Because \textbf{ULRICH DIEZ} neither wanted to create a package himself yet % nor have one published under his name, % but granted the publication of his code (Thanks!), % I had to change author/maintainer of this package and resubmit it. @@ -1009,23 +1048,19 @@ name-reference: \nameref{testlabel}%% -> Still another test % \item Updated references to other packages: \xpackage{hyperref} and % \xpackage{pagesLTS} (which has been renamed to \xpackage{pageslts} % and is no longer referenced since v1.0h). -% \item Added a list of my other packages. % \end{Version} % \begin{Version}{2010/07/15 v1.0d} -% \item There was another update by \textsc{Ulrich Diez} on +% \item There was another update by \textbf{ULRICH DIEZ} on % \Newsgroup{comp.text.tex} at % \texttt{Mon,~21~Apr~2008~23:04:03~+0200}, see e.\,g.\\ % \url{http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source}, % which now has been included in this package. -% \item Put more emphasis on \textbf{Ulrich Diez} writing the initial code. -% \item Updated references to other packages: \xpackage{hyperref} and -% \xpackage{pagesLTS} (which has been renamed to \xpackage{pageslts} -% and is no longer referenced since v1.0h). -% \item Corrected the given location of the \textsf{undolabl.tds.zip} file -% at \CTAN{}. +% \item Put more emphasis on \textbf{ULRICH DIEZ} writing the initial code. +% \item Updated references to other packages and corrected the given location +% of the \textsf{undolabl.tds.zip} file at CTAN.org. % \end{Version} % \begin{Version}{2010/07/25 v1.0e} -% \item Bugs reported by \textsc{Ulrich Diez} on \Newsgroup{comp.text.tex} at\\ +% \item Bugs reported by \textbf{ULRICH DIEZ} on \Newsgroup{comp.text.tex} at\\ % \texttt{Sat,~17~Jul~2010~12:27:10~+0200}, % subject \texttt{Re:~CTAN~Update:~undolabl}, see e.\,g. % \url{http://groups.google.com/group/comp.text.tex/msg/d366821ce4f8b62e?dmode=source}, @@ -1046,9 +1081,6 @@ name-reference: \nameref{testlabel}%% -> Still another test % \begin{Version}{2011/02/01 v1.0h} % \item Updated to new version of the \xpackage{hyperref} package. % \item Removed |/muench/| from the path at diverse locations. -% \item Replaced the list of my packages with a link to a web page list of -% those, which has the advantage of showing the recent versions of -% all those packages. % \item Some small changes. % \end{Version} % \begin{Version}{2011/06/26 v1.0i} @@ -1070,11 +1102,17 @@ name-reference: \nameref{testlabel}%% -> Still another test % but was recovered now). % \item Update of documentation, README, and \xfile{dtx} internals. % \end{Version} +% \begin{Version}{2015/03/29 v1.0l} +% \item Incompatibility with \textsf{acronym} package fixed -- +% 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. +% \end{Version} % \end{History} % % \bigskip % -% When you find a mistake or have a suggestion for an improvement of this package, +% \noindent When you find a mistake or have a suggestion for an improvement of this package, % please send an e-mail to the maintainer, thanks! (Please see BUG REPORTS in the README.) % % \bigskip diff --git a/Master/texmf-dist/source/latex/undolabl/undolabl.ins b/Master/texmf-dist/source/latex/undolabl/undolabl.ins index a54114d2c9d..f2dc12a2fc9 100644 --- a/Master/texmf-dist/source/latex/undolabl/undolabl.ins +++ b/Master/texmf-dist/source/latex/undolabl/undolabl.ins @@ -9,9 +9,9 @@ %% This is a generated file. %% %% Project: undolabl -%% Version: 2012/01/01 v1.0k +%% Version: 2015/03/29 v1.0l %% -%% Copyright (C) 2010 - 2012 by +%% Copyright (C) 2010 - 2015 by %% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> %% Portions of code copyrighted by other people as marked. %% @@ -34,9 +34,10 @@ %% %% The Current Maintainer of this work is H.-Martin Muench. %% -%% The main code of this package was invented by Ulrich Diez -%% (eu_angelion AT web DOT de) and first published in the comp.text.tex -%% newsgroup at Sun, 20 Apr 2008 16:39:26 +0200, with subject: +%% The main code of this package was invented by +%% Ulrich Diez (eu_angelion AT web DOT de) +%% and first published in the comp.text.tex newsgroup +%% at Sun, 20 Apr 2008 16:39:26 +0200, with subject: %% Re: How to undefine/overwrite a label? (see e.g. %% http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source %% ). While Ulrich Diez neither wanted to create a package himself yet @@ -49,11 +50,16 @@ %% undolabl.ins, undolabl.drv, %% undolabl-example.tex, undolabl-example.pdf. %% +%% In memoriam +%% Claudia Simone Barth + 1996/01/30 +%% Tommy Muench + 2014/01/02 +%% Hans-Klaus Muench + 2014/08/24 +%% \input docstrip.tex -\Msg{**************************************************************} -\Msg{* Installation *} -\Msg{* Package: undolabl 2012/01/01 v1.0k Overriding labels (HMM) *} -\Msg{**************************************************************} +\Msg{************************************************************} +\Msg{* Installation} +\Msg{* Package: undolabl 2015/03/29 v1.0l Overriding labels (HMM)} +\Msg{************************************************************} \keepsilent \askforoverwritefalse @@ -64,9 +70,9 @@ This is a generated file. Project: undolabl -Version: 2012/01/01 v1.0k +Version: 2015/03/29 v1.0l -Copyright (C) 2010 - 2012 by +Copyright (C) 2010 - 2015 by H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> Portions of code copyrighted by other people as marked. @@ -89,9 +95,10 @@ This work has the LPPL maintenance status "maintained". The Current Maintainer of this work is H.-Martin Muench. -The main code of this package was invented by Ulrich Diez -(eu_angelion AT web DOT de) and first published in the comp.text.tex -newsgroup at Sun, 20 Apr 2008 16:39:26 +0200, with subject: +The main code of this package was invented by +Ulrich Diez (eu_angelion AT web DOT de) +and first published in the comp.text.tex newsgroup +at Sun, 20 Apr 2008 16:39:26 +0200, with subject: Re: How to undefine/overwrite a label? (see e.g. http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source ). While Ulrich Diez neither wanted to create a package himself yet @@ -104,6 +111,11 @@ the README, and the derived files undolabl.ins, undolabl.drv, undolabl-example.tex, undolabl-example.pdf. +In memoriam + Claudia Simone Barth + 1996/01/30 + Tommy Muench + 2014/01/02 + Hans-Klaus Muench + 2014/08/24 + \endpreamble \let\MetaPrefix\DoubleperCent @@ -123,7 +135,7 @@ the README, and the derived files \Msg{* To finish the installation you have to move the following} \Msg{* file into a directory searched by TeX:} \Msg{*} -\Msg{* undolabl.sty} +\Msg{* undolabl.sty} \Msg{*} \Msg{* To produce the documentation run the file `undolabl.drv'} \Msg{* through (pdf)LaTeX, e.g.} diff --git a/Master/texmf-dist/tex/latex/undolabl/undolabl.sty b/Master/texmf-dist/tex/latex/undolabl/undolabl.sty index 0c7aacfc8e1..60b520cf53f 100644 --- a/Master/texmf-dist/tex/latex/undolabl/undolabl.sty +++ b/Master/texmf-dist/tex/latex/undolabl/undolabl.sty @@ -9,9 +9,9 @@ %% This is a generated file. %% %% Project: undolabl -%% Version: 2012/01/01 v1.0k +%% Version: 2015/03/29 v1.0l %% -%% Copyright (C) 2010 - 2012 by +%% Copyright (C) 2010 - 2015 by %% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> %% Portions of code copyrighted by other people as marked. %% @@ -34,9 +34,10 @@ %% %% The Current Maintainer of this work is H.-Martin Muench. %% -%% The main code of this package was invented by Ulrich Diez -%% (eu_angelion AT web DOT de) and first published in the comp.text.tex -%% newsgroup at Sun, 20 Apr 2008 16:39:26 +0200, with subject: +%% The main code of this package was invented by +%% Ulrich Diez (eu_angelion AT web DOT de) +%% and first published in the comp.text.tex newsgroup +%% at Sun, 20 Apr 2008 16:39:26 +0200, with subject: %% Re: How to undefine/overwrite a label? (see e.g. %% http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source %% ). While Ulrich Diez neither wanted to create a package himself yet @@ -49,22 +50,65 @@ %% undolabl.ins, undolabl.drv, %% undolabl-example.tex, undolabl-example.pdf. %% +%% In memoriam +%% Claudia Simone Barth + 1996/01/30 +%% Tommy Muench + 2014/01/02 +%% Hans-Klaus Muench + 2014/08/24 +%% -\NeedsTeXFormat{LaTeX2e}[2011/06/27] -\ProvidesPackage{undolabl}[2012/01/01 v1.0k - Overriding labels (HMM)] +\NeedsTeXFormat{LaTeX2e}[2014/05/01] +\ProvidesPackage{undolabl}% + [2015/03/29 v1.0l Overriding labels (HMM)] %% undolabl may work with earlier versions of LaTeX2e, %% but this was not tested. Please consider updating %% your LaTeX2e to the most recent version %% (if it is not already the most recent version). +\AtBeginDocument{% + \if@filesw% + \else% + \@ifpackageloaded{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% + \@ifpackageloaded{acronym}% + {\@ifpackagelater{acronym}{2015/03/20}% + {% 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 - \protected@write\@auxout{}{\string\undonewlabel{#1}}% - \@overriddenmessage s{#1}% - \label{#1}% +\@bsphack% + \if@filesw% + \protected@write\@auxout{}{\string\undonewlabel{#1}}% + \@overriddenmessage s{#1}% + \label{#1}% + \fi% \@esphack% -} + } \newcommand\undonewlabel{\@und@newl@bel r} @@ -76,7 +120,7 @@ }{% \expandafter\global \expandafter\let - \csname #1@#2\endcsname\relax + \csname #1@#2\endcsname\relax% }% } @@ -91,25 +135,27 @@ \@ifundefined{s@#2}\@secondoftwo\@firstofone{% \expandafter\ifx\csname s@#2\endcsname\empty \expandafter\@firstofone - \else + \else% \expandafter\xdef\csname s@#2\endcsname{% \expandafter\expandafter \expandafter\@gobble \csname s@#2\endcsname }% \expandafter\@gobble - \fi + \fi% }{\@testdef{#1}{#2}{#3}% }% } -\protected@write\@auxout{}{\string\reset@newl@bel} +\if@filesw% + \protected@write\@auxout{}{\string\reset@newl@bel}% +\fi% \newcommand\reset@newl@bel{% - \ifx\@newl@bel\@testdef - \let\@newl@bel\undolabl@testdef - \let\undonewlabel\@gobble - \fi + \ifx\@newl@bel\@testdef% + \let\@newl@bel\undolabl@testdef% + \let\undonewlabel\@gobble% + \fi% } \endinput |