From 2ec229998534f6c520bc3f1fba3370eef0bad755 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 24 Jan 2020 21:47:22 +0000 Subject: clrstrip (24jan20) git-svn-id: svn://tug.org/texlive/trunk@53537 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/latex/clrstrip') 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}% -- cgit v1.2.3