summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-03-30 23:04:32 +0000
committerKarl Berry <karl@freefriends.org>2015-03-30 23:04:32 +0000
commit01a985ede67216a0656c5bf2ac6d9cfb018fa827 (patch)
tree18812546204615523ced5186109a6c06abc408f0 /Master/texmf-dist/tex/latex
parentbc1d8cd685177e278fd22ad398c977521936a915 (diff)
undolabl (30mar15)
git-svn-id: svn://tug.org/texlive/trunk@36681 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/undolabl/undolabl.sty88
1 files changed, 67 insertions, 21 deletions
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