texlive[53537] Master/texmf-dist: clrstrip (24jan20)
commits+karl at tug.org
commits+karl at tug.org
Fri Jan 24 22:47:22 CET 2020
Revision: 53537
http://tug.org/svn/texlive?view=revision&revision=53537
Author: karl
Date: 2020-01-24 22:47:22 +0100 (Fri, 24 Jan 2020)
Log Message:
-----------
clrstrip (24jan20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/clrstrip/README.md
trunk/Master/texmf-dist/doc/latex/clrstrip/clrstrip.pdf
trunk/Master/texmf-dist/source/latex/clrstrip/clrstrip.dtx
trunk/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty
Modified: trunk/Master/texmf-dist/doc/latex/clrstrip/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/clrstrip/README.md 2020-01-24 21:47:06 UTC (rev 53536)
+++ trunk/Master/texmf-dist/doc/latex/clrstrip/README.md 2020-01-24 21:47:22 UTC (rev 53537)
@@ -1,6 +1,6 @@
clrstrip: place contents into a full width colour strip
-Copyright (C) 2018-2019 by Jonathan P. Spratte
+Copyright (C) 2018-2020 by Jonathan P. Spratte
This package may be distributed and/or modified under the conditions of the
LaTeX Project Public License (LPPL), either version 1.3c of this license or (at
Modified: trunk/Master/texmf-dist/doc/latex/clrstrip/clrstrip.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/clrstrip/clrstrip.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/clrstrip/clrstrip.dtx 2020-01-24 21:47:06 UTC (rev 53536)
+++ trunk/Master/texmf-dist/source/latex/clrstrip/clrstrip.dtx 2020-01-24 21:47:22 UTC (rev 53537)
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% File: clrstrip.dtx Copyright (C) 2018-2019 Jonathan P. Spratte
+% File: clrstrip.dtx Copyright (C) 2018-2020 Jonathan P. Spratte
%
% It may be distributed and/or modified under the conditions of the LaTeX
% Project Public License (LPPL), either version 1.3c of this license or (at your
@@ -26,7 +26,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
@@ -65,6 +65,8 @@
\usepackage{clrstrip}
\usepackage{duckuments}
\usepackage[oldstyle,notextcomp,nott]{kpfonts}
+\input{glyphtounicode}
+\pdfgentounicode=1
^^A fix \duckuments at enquote in latest released version
\makeatletter
\ExplSyntaxOn
@@ -86,10 +88,10 @@
\end{document}
%</driver>
%<*pkg>
-\newcommand*\clrstrip at date{2019-11-03}
+\newcommand*\clrstrip at date{2020-01-23}
\ProvidesPackage{clrstrip}
[\clrstrip at date\space place contents into a full width colour strip]
-\RequirePackage{keyval}
+\RequirePackage{expkv}
%</pkg>
% \fi
%
@@ -129,7 +131,7 @@
% \section{Examples}
%
% The following is an example showing the results of
-% \begin{colorstrip}{gray!15}[inner bot=0pt, inner top=2ex]
+% \begin{colorstrip}{gray!15}[inner bot=0pt, inner top=2ex, outer bot=2pt]
%\begin{verbatim}
% \begin{colorstrip}{red!5}
% \blindduck
@@ -142,7 +144,7 @@
% \end{colorstrip}
%
% The title of this documentation was typeset with
-% \begin{colorstrip}{gray!15}[inner bot=0pt, inner top=2ex]
+% \begin{colorstrip}{gray!15}[inner bot=0pt, inner top=2ex, outer bot=2pt]
%\begin{verbatim}
% \vspace*{-6cm}%
% \begin{colorstrip}{blue!15}
@@ -161,7 +163,7 @@
% \end{colorstrip}
% and the code boxes in this section (except this one) are surrounded by
% \begin{colorstrip}{gray!15}[inner=2ex]
-% |\begin{colorstrip}{gray!15}[inner bot=0pt, inner top=2ex]|\\
+% |\begin{colorstrip}{gray!15}[inner bot=0pt, inner top=2ex, outer bot=2pt]|\\
% |\begin{verbatim}|\\
% |\end{verbatim} |\\
% |\end{colorstrip}|
@@ -226,23 +228,32 @@
% contents. If \meta{skip} is |1sp| (which is the initial value) the
% \cs{vbox} is horizontally centred (not its contents).
% \item[afterheading]
-% Ignores every value given to it. If used the indentation of the first line
-% in a \env{colorstrip} will be prevented using the \LaTeX\ macros
+% Doesn't accept any value. If used the indentation of the first line in a
+% \env{colorstrip} will be prevented using the \LaTeX\ macros
% \cs{@afterindentfalse} and \cs{@afterheading}. This is the package default
-% since version 2018-09-25.
+% since version 2018-09-25. There was another change to this key in version
+% 2020-01-23, since which the key will throw an error if you provide a
+% value.
% \item[noindent]
-% Ignores every value given to it. If used the indentation of the first line
-% in a \env{colorstrip} will be prevented using the \TeX\ primitives
+% Doesn't accept any value. If used the indentation of the first line in a
+% \env{colorstrip} will be prevented using the \TeX\ primitives
% \cs{noindent} and \cs{ignorespaces}. This was the package default before
-% version 2018-09-25.
+% version 2018-09-25. There was another change to this key in version
+% 2020-01-23, since which the key will throw an error if you provide a
+% value.
% \end{options}
%
% \subsection{Dependencies}
%
-% \pkg{clrstrip} depends on the \pkg{keyval} package. In addition it needs a
-% package defining \cs{color} such as \pkg{color} or \pkg{xcolor} but doesn't
-% load one on its own.
+% \pkg{clrstrip} depends on the \pkg{expkv} package. This has changed since
+% version 2020-01-23, before that version \pkg{clrstrip} had been using
+% \pkg{keyval}. Though \pkg{keyval} is faster than \pkg{expkv}, \pkg{expkv} is
+% \emph{a lot} faster than \pkg{xkevyal} which replaces \pkg{keyval} and its
+% performance as soon as any other package is loaded.
%
+% In addition \pkg{clrstrip} needs a package defining \cs{color} such as
+% \pkg{color} or \pkg{xcolor} but doesn't load one on its own.
+%
% \end{documentation}
%
% \begin{implementation}
@@ -323,10 +334,11 @@
%
% \subsection{Internal Macros}
%
-% \begin{macro}{\clrstrip at key}
-% Shortcut to define new keys with \pkg{keyval}.
+% \begin{macro}{\clrstrip at key,\clrstrip at keyNV}
+% Shortcut to define new keys with \pkg{expkv}.
% \begin{macrocode}
-\newcommand*\clrstrip at key{\define at key{clrstrip}}
+\newcommand*\clrstrip at key{\protected\ekvdef{clrstrip}}
+\newcommand*\clrstrip at keyNV{\protected\ekvdefNoVal{clrstrip}}
% \end{macrocode}
% \end{macro}
%
@@ -378,16 +390,16 @@
\clrstrip at key{outer bot}{\clrstrip at outerB#1\relax}
\clrstrip at key{width}{\clrstrip at width#1\relax}
\clrstrip at key{left}{\clrstrip at left#1\relax}
-\clrstrip at key{afterheading}[]{\let\clrstrip at preventIndent\clrstrip at afterheading}
-\clrstrip at key{noindent}[]{\let\clrstrip at preventIndent\clrstrip at noindent}
+\clrstrip at keyNV{afterheading}{\let\clrstrip at preventIndent\clrstrip at afterheading}
+\clrstrip at keyNV{noindent}{\let\clrstrip at preventIndent\clrstrip at noindent}
% \end{macrocode}
%
% \subsection{User Level Macros}
%
% \begin{macro}{\colorstripSet}
-% Shortcut for \pkg{keyval}'s \cs{setkeys}.
+% Shortcut for \pkg{expkv}'s \cs{ekvset}.
% \begin{macrocode}
-\newcommand*\colorstripSet{\setkeys{clrstrip}}
+\protected\def\colorstripSet{\ekvset{clrstrip}}
% \end{macrocode}
% \end{macro}
%
Modified: trunk/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty 2020-01-24 21:47:06 UTC (rev 53536)
+++ trunk/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty 2020-01-24 21:47:22 UTC (rev 53537)
@@ -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 at date{2019-11-03}
+\newcommand*\clrstrip at date{2020-01-23}
\ProvidesPackage{clrstrip}
[\clrstrip at date\space place contents into a full width colour strip]
-\RequirePackage{keyval}
+\RequirePackage{expkv}
\newsavebox\clrstrip at box
\newlength\clrstrip at innerT
\clrstrip at innerT\medskipamount
@@ -46,7 +46,8 @@
\newlength\clrstrip at left
\clrstrip at left1sp
\newcommand*\clrstrip at arg{}
-\newcommand*\clrstrip at key{\define at key{clrstrip}}
+\newcommand*\clrstrip at key{\protected\ekvdef{clrstrip}}
+\newcommand*\clrstrip at keyNV{\protected\ekvdefNoVal{clrstrip}}
\newcommand\clrstrip at start[1][]
{%
\colorstripSet{#1}%
@@ -71,9 +72,9 @@
\clrstrip at key{outer bot}{\clrstrip at outerB#1\relax}
\clrstrip at key{width}{\clrstrip at width#1\relax}
\clrstrip at key{left}{\clrstrip at left#1\relax}
-\clrstrip at key{afterheading}[]{\let\clrstrip at preventIndent\clrstrip at afterheading}
-\clrstrip at key{noindent}[]{\let\clrstrip at preventIndent\clrstrip at noindent}
-\newcommand*\colorstripSet{\setkeys{clrstrip}}
+\clrstrip at keyNV{afterheading}{\let\clrstrip at preventIndent\clrstrip at afterheading}
+\clrstrip at keyNV{noindent}{\let\clrstrip at preventIndent\clrstrip at noindent}
+\protected\def\colorstripSet{\ekvset{clrstrip}}
\newenvironment{colorstrip}[2][]
{%
\def\clrstrip at arg{#1}%
More information about the tex-live-commits
mailing list