diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty | 15 |
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}% |