From 33fdc16a2b39e210cbc8433ec00a4c842ca5529f Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 30 Aug 2021 03:02:01 +0000 Subject: CTAN sync 202108300301 --- macros/latex/contrib/clrstrip/README.md | 2 +- macros/latex/contrib/clrstrip/clrstrip.dtx | 72 ++++++++++++++--------------- macros/latex/contrib/clrstrip/clrstrip.pdf | Bin 196215 -> 198936 bytes 3 files changed, 37 insertions(+), 37 deletions(-) (limited to 'macros/latex/contrib/clrstrip') diff --git a/macros/latex/contrib/clrstrip/README.md b/macros/latex/contrib/clrstrip/README.md index 733ad8d1b9..4a482cab36 100644 --- a/macros/latex/contrib/clrstrip/README.md +++ b/macros/latex/contrib/clrstrip/README.md @@ -1,6 +1,6 @@ clrstrip: place contents into a full width colour strip -Copyright (C) 2018-2020 by Jonathan P. Spratte +Copyright (C) 2018-2021 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 diff --git a/macros/latex/contrib/clrstrip/clrstrip.dtx b/macros/latex/contrib/clrstrip/clrstrip.dtx index a968ddf609..fb7fd40647 100644 --- a/macros/latex/contrib/clrstrip/clrstrip.dtx +++ b/macros/latex/contrib/clrstrip/clrstrip.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% File: clrstrip.dtx Copyright (C) 2018-2020 Jonathan P. Spratte +% File: clrstrip.dtx Copyright (C) 2018-2021 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 @@ Released under the LaTeX Project Public License v1.3c or later See http://www.latex-project.org/lppl.txt -------------------------------------------------------------- -Copyright (C) 2018-2020 Jonathan P. Spratte +Copyright (C) 2018-2021 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 @@ -88,7 +88,7 @@ and the derived files clrstrip.pdf and \end{document} % %<*pkg> -\newcommand*\clrstrip@date{2020-01-23} +\newcommand*\clrstrip@date{2021-08-28} \ProvidesPackage{clrstrip} [\clrstrip@date\space place contents into a full width colour strip] \RequirePackage{expkv} @@ -249,7 +249,7 @@ and the derived files clrstrip.pdf and % 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. +% performance as soon as it's 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. @@ -266,48 +266,48 @@ and the derived files clrstrip.pdf and % % \subsection{Initializing Variables} % -% \begin{variable}{\clrstrip@box} +% \begin{variable}[internal]{\clrstrip@box} % Stores the contents of \env{colorstrip}. % \begin{macrocode} \newsavebox\clrstrip@box % \end{macrocode} % \end{variable} % -% \begin{variable}{\clrstrip@innerT} +% \begin{variable}[internal]{\clrstrip@innerT} % Stores the upper inner padding. Gets reused to store the overall height of % the colour strip locally. % \begin{macrocode} \newlength\clrstrip@innerT -\clrstrip@innerT\medskipamount +\clrstrip@innerT=\medskipamount % \end{macrocode} % \end{variable} % -% \begin{variable}{\clrstrip@innerB} +% \begin{variable}[internal]{\clrstrip@innerB} % Stores the lower inner padding. Gets reused to store the overall depth of % the colour strip locally. % \begin{macrocode} \newlength\clrstrip@innerB -\clrstrip@innerB\clrstrip@innerT +\clrstrip@innerB=\clrstrip@innerT % \end{macrocode} % \end{variable} % -% \begin{variable}{\clrstrip@outerT} +% \begin{variable}[internal]{\clrstrip@outerT} % Stores the upper outer padding. % \begin{macrocode} \newlength\clrstrip@outerT -\clrstrip@outerT\clrstrip@innerT +\clrstrip@outerT=\clrstrip@innerT % \end{macrocode} % \end{variable} % -% \begin{variable}{\clrstrip@outerB} +% \begin{variable}[internal]{\clrstrip@outerB} % Stores the lower outer padding. % \begin{macrocode} \newlength\clrstrip@outerB -\clrstrip@outerB\clrstrip@innerT +\clrstrip@outerB=\clrstrip@innerT % \end{macrocode} % \end{variable} % -% \begin{variable}{\clrstrip@width} +% \begin{variable}[internal]{\clrstrip@width} % Stores the width the text block inside of the colour strip should be wide. % Might be reused to calculate the skip to centre the text block locally. % \begin{macrocode} @@ -315,16 +315,16 @@ and the derived files clrstrip.pdf and % \end{macrocode} % \end{variable} % -% \begin{variable}{\clrstrip@left} +% \begin{variable}[internal]{\clrstrip@left} % Stores the left skip from the left border of the text field. Might be reused % to store the necessary left skip for centred alignment locally. % \begin{macrocode} \newlength\clrstrip@left -\clrstrip@left1sp +\clrstrip@left=1sp % \end{macrocode} % \end{variable} % -% \begin{variable}{\clrstrip@arg} +% \begin{variable}[internal]{\clrstrip@arg} % Stores the first optional and the mandatory argument to \env{colorstrip} for % later use. % \begin{macrocode} @@ -334,7 +334,7 @@ and the derived files clrstrip.pdf and % % \subsection{Internal Macros} % -% \begin{macro}{\clrstrip@key,\clrstrip@keyNV} +% \begin{macro}[internal]{\clrstrip@key,\clrstrip@keyNV} % Shortcut to define new keys with \pkg{expkv}. % \begin{macrocode} \newcommand*\clrstrip@key{\protected\ekvdef{clrstrip}} @@ -342,7 +342,7 @@ and the derived files clrstrip.pdf and % \end{macrocode} % \end{macro} % -% \begin{macro}{\clrstrip@start} +% \begin{macro}[internal]{\clrstrip@start} % Used to grab the second optional argument to \env{colorstrip}. Sets the % specified keys and starts the grabbing of the contents inside the \cs{vbox}. % \begin{macrocode} @@ -350,18 +350,18 @@ and the derived files clrstrip.pdf and {% \colorstripSet{#1}% \ifdim\clrstrip@width=\z@ - \clrstrip@width\linewidth + \clrstrip@width=\linewidth \fi \setbox\clrstrip@box\vbox\bgroup - \hsize\clrstrip@width - \linewidth\hsize + \hsize=\clrstrip@width + \linewidth=\hsize \color@setgroup \clrstrip@preventIndent } % \end{macrocode} % \end{macro} % -% \begin{macro}{\clrstrip@afterheading,\clrstrip@noindent} +% \begin{macro}[internal]{\clrstrip@afterheading,\clrstrip@noindent} % These two macros are the two options to suppress the indentation in a % \env{colorstrip}. % \begin{macrocode} @@ -370,7 +370,7 @@ and the derived files clrstrip.pdf and % \end{macrocode} % \end{macro} % -% \begin{macro}{\clrstrip@preventIndent} +% \begin{macro}[internal]{\clrstrip@preventIndent} % Used to prevent the indentation of the first line in a \env{colorstrip}. It % will be let to one of \cs{clrstrip@afterheading} or \cs{clrstrip@noindent}. % \begin{macrocode} @@ -382,14 +382,14 @@ and the derived files clrstrip.pdf and % \subsection{Initializing Keys} % % \begin{macrocode} -\clrstrip@key{inner}{\clrstrip@innerT#1\relax\clrstrip@innerB#1\relax} -\clrstrip@key{outer}{\clrstrip@outerT#1\relax\clrstrip@outerB#1\relax} -\clrstrip@key{inner top}{\clrstrip@innerT#1\relax} -\clrstrip@key{inner bot}{\clrstrip@innerB#1\relax} -\clrstrip@key{outer top}{\clrstrip@outerB#1\relax} -\clrstrip@key{outer bot}{\clrstrip@outerB#1\relax} -\clrstrip@key{width}{\clrstrip@width#1\relax} -\clrstrip@key{left}{\clrstrip@left#1\relax} +\clrstrip@key{inner}{\clrstrip@innerT=#1\relax\clrstrip@innerB=\clrstrip@innerT} +\clrstrip@key{outer}{\clrstrip@outerT=#1\relax\clrstrip@outerB=\clrstrip@outerT} +\clrstrip@key{inner top}{\clrstrip@innerT=#1\relax} +\clrstrip@key{inner bot}{\clrstrip@innerB=#1\relax} +\clrstrip@key{outer top}{\clrstrip@outerB=#1\relax} +\clrstrip@key{outer bot}{\clrstrip@outerB=#1\relax} +\clrstrip@key{width}{\clrstrip@width=#1\relax} +\clrstrip@key{left}{\clrstrip@left=#1\relax} \clrstrip@keyNV{afterheading}{\let\clrstrip@preventIndent\clrstrip@afterheading} \clrstrip@keyNV{noindent}{\let\clrstrip@preventIndent\clrstrip@noindent} % \end{macrocode} @@ -399,7 +399,7 @@ and the derived files clrstrip.pdf and % \begin{macro}{\colorstripSet} % Shortcut for \pkg{expkv}'s \cs{ekvset}. % \begin{macrocode} -\protected\def\colorstripSet{\ekvset{clrstrip}} +\protected\ekvsetdef\colorstripSet{clrstrip} % \end{macrocode} % \end{macro} % @@ -447,9 +447,9 @@ and the derived files clrstrip.pdf and {% \hskip-\paperwidth \vrule - width 2\paperwidth + width 2\paperwidth height \clrstrip@innerT - depth \clrstrip@innerB + depth \clrstrip@innerB }% \endgroup % \end{macrocode} @@ -457,7 +457,7 @@ and the derived files clrstrip.pdf and % \begin{macrocode} \ifdim\clrstrip@left=1sp \advance\clrstrip@width-\linewidth - \clrstrip@left-.5\clrstrip@width + \clrstrip@left=-.5\clrstrip@width \fi \rlap{\hskip\clrstrip@left\copy\clrstrip@box}% % \end{macrocode} diff --git a/macros/latex/contrib/clrstrip/clrstrip.pdf b/macros/latex/contrib/clrstrip/clrstrip.pdf index 775626fdd5..ab9086207e 100644 Binary files a/macros/latex/contrib/clrstrip/clrstrip.pdf and b/macros/latex/contrib/clrstrip/clrstrip.pdf differ -- cgit v1.2.3