summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/thmtools/thm-kv.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-07 22:52:57 +0000
committerKarl Berry <karl@freefriends.org>2012-05-07 22:52:57 +0000
commit5ed19c50b43e9e945556079d31e5e88c4e2f4990 (patch)
tree0733fb4ed566e938f6227356f7b73c440ccbab67 /Master/texmf-dist/tex/latex/thmtools/thm-kv.sty
parentf9c2085ff0cc9743608e6247e8e061343c6025d0 (diff)
thmtools (7may12)
git-svn-id: svn://tug.org/texlive/trunk@26251 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/thmtools/thm-kv.sty')
-rw-r--r--Master/texmf-dist/tex/latex/thmtools/thm-kv.sty48
1 files changed, 44 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/thmtools/thm-kv.sty b/Master/texmf-dist/tex/latex/thmtools/thm-kv.sty
index 63553d27871..55002e49f04 100644
--- a/Master/texmf-dist/tex/latex/thmtools/thm-kv.sty
+++ b/Master/texmf-dist/tex/latex/thmtools/thm-kv.sty
@@ -11,7 +11,7 @@
%% The `thmtools' package has the LPPL maintenance status: maintained.
%% Current Maintainer is Ulrich M. Schwarz, ulmi@absatzen.de
%%
-%% Copyright (C) 2008-2011 by Ulrich M. Schwarz.
+%% Copyright (C) 2008-2012 by Ulrich M. Schwarz.
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, version 1.3a.
@@ -20,7 +20,7 @@
%%
%%
\NeedsTeXFormat {LaTeX2e}
-\ProvidesPackage {thm-kv}[2011/11/27 v62]
+\ProvidesPackage {thm-kv}[2012/05/04 v63]
\let\@xa\expandafter
\let\@nx\noexpand
@@ -71,7 +71,47 @@
\fi
}
-\@ifpackagelater{kvsetkeys}{2011/04/06}{%
+\@ifpackagelater{kvsetkeys}{2012/04/23}{%
+ \PackageInfo{thm-kv}{kvsetkeys patch (v1.16 or later)}%
+ \long\def\tmp@KVS@PD#1#2#3{%
+ \def \kv@fam {#1}%
+ \unless \ifcsname KV@#1@#2\endcsname
+ \unless \ifcsname KVS@#1@handler\endcsname
+ \kv@error@unknownkey {#1}{#2}%
+ \else
+ \kv@handled@true
+ \csname KVS@#1@handler\endcsname {#2}{#3}\relax
+ \ifkv@handled@ \else
+ \kv@error@unknownkey {#1}{#2}%
+ \fi
+ \fi
+ \else
+ \ifx \kv@value \relax
+ \unless \ifcsname KV@#1@#2@default\endcsname
+ \kv@error@novalue {#1}{#2}%
+ \else
+ \csname KV@#1@#2@default\endcsname \relax
+ \fi
+ \else
+ \csname KV@#1@#2\endcsname {#3}%
+ \fi
+ \fi
+ }%
+ \ifx\tmp@KVS@PD\KVS@ProcessorDefault
+ \let\KVS@ProcessorDefault\thmt@kv@processor@default
+ \def\kv@processor@default#1#2{%
+ \begingroup
+ \csname @safe@activestrue\endcsname
+ \@xa\let\csname ifincsname\@xa\endcsname\csname iftrue\endcsname
+ \edef\KVS@temp{\endgroup
+ \noexpand\KVS@ProcessorDefault{#1}{\etex@unexpanded{#2}}%
+ }%
+ \KVS@temp
+ }%
+ \else
+ \PackageError{thm-kv}{kvsetkeys patch failed}{Try kvsetkeys v1.16 or earlier}
+ \fi
+}{\@ifpackagelater{kvsetkeys}{2011/04/06}{%
% Patch has disappeared somewhere... thanksalot.
\PackageInfo{thm-kv}{kvsetkeys patch (v1.13 or later)}
\long\def\tmp@KVS@PD#1#2#3{% no non-etex-support here...
@@ -113,7 +153,7 @@
\RequirePackage{etex}
\PackageInfo{thm-kv}{kvsetkeys patch applied (pre-1.13)}%
\let\kv@processor@default\thmt@kv@processor@default
-}
+}}
\newcommand\thmt@mkignoringkeyhandler[1]{%
\kv@set@family@handler{#1}{%