summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/clrstrip
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-01-24 21:47:22 +0000
committerKarl Berry <karl@freefriends.org>2020-01-24 21:47:22 +0000
commit2ec229998534f6c520bc3f1fba3370eef0bad755 (patch)
tree4519ce416260b82703a322521b3b737f9e2da4d4 /Master/texmf-dist/tex/latex/clrstrip
parentd18166aa89e175179683b5c6bd521bdde4ccce35 (diff)
clrstrip (24jan20)
git-svn-id: svn://tug.org/texlive/trunk@53537 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/clrstrip')
-rw-r--r--Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty15
1 files changed, 8 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty b/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty
index 7483077015a..6baafb82824 100644
--- a/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty
+++ b/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty
@@ -13,7 +13,7 @@
%% See http://www.latex-project.org/lppl.txt
%% --------------------------------------------------------------
%%
-%% Copyright (C) 2018-2019 Jonathan P. Spratte
+%% Copyright (C) 2018-2020 Jonathan P. Spratte
%%
%% This work may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License (LPPL), either version 1.3c of this license or
@@ -29,10 +29,10 @@
%% and the derived files clrstrip.pdf and
%% clrstrip.sty.
%%
-\newcommand*\clrstrip@date{2019-11-03}
+\newcommand*\clrstrip@date{2020-01-23}
\ProvidesPackage{clrstrip}
[\clrstrip@date\space place contents into a full width colour strip]
-\RequirePackage{keyval}
+\RequirePackage{expkv}
\newsavebox\clrstrip@box
\newlength\clrstrip@innerT
\clrstrip@innerT\medskipamount
@@ -46,7 +46,8 @@
\newlength\clrstrip@left
\clrstrip@left1sp
\newcommand*\clrstrip@arg{}
-\newcommand*\clrstrip@key{\define@key{clrstrip}}
+\newcommand*\clrstrip@key{\protected\ekvdef{clrstrip}}
+\newcommand*\clrstrip@keyNV{\protected\ekvdefNoVal{clrstrip}}
\newcommand\clrstrip@start[1][]
{%
\colorstripSet{#1}%
@@ -71,9 +72,9 @@
\clrstrip@key{outer bot}{\clrstrip@outerB#1\relax}
\clrstrip@key{width}{\clrstrip@width#1\relax}
\clrstrip@key{left}{\clrstrip@left#1\relax}
-\clrstrip@key{afterheading}[]{\let\clrstrip@preventIndent\clrstrip@afterheading}
-\clrstrip@key{noindent}[]{\let\clrstrip@preventIndent\clrstrip@noindent}
-\newcommand*\colorstripSet{\setkeys{clrstrip}}
+\clrstrip@keyNV{afterheading}{\let\clrstrip@preventIndent\clrstrip@afterheading}
+\clrstrip@keyNV{noindent}{\let\clrstrip@preventIndent\clrstrip@noindent}
+\protected\def\colorstripSet{\ekvset{clrstrip}}
\newenvironment{colorstrip}[2][]
{%
\def\clrstrip@arg{#1}%