texlive[56609] Master/texmf-dist: kvoptions (9oct20)

commits+karl at tug.org commits+karl at tug.org
Fri Oct 9 22:21:10 CEST 2020


Revision: 56609
          http://tug.org/svn/texlive?view=revision&revision=56609
Author:   karl
Date:     2020-10-09 22:21:09 +0200 (Fri, 09 Oct 2020)
Log Message:
-----------
kvoptions (9oct20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/kvoptions/README.md
    trunk/Master/texmf-dist/doc/latex/kvoptions/example-mycolorsetup.sty
    trunk/Master/texmf-dist/doc/latex/kvoptions/kvoptions.pdf
    trunk/Master/texmf-dist/source/latex/kvoptions/kvoptions.dtx
    trunk/Master/texmf-dist/tex/latex/kvoptions/kvoptions-patch.sty
    trunk/Master/texmf-dist/tex/latex/kvoptions/kvoptions.sty

Modified: trunk/Master/texmf-dist/doc/latex/kvoptions/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/kvoptions/README.md	2020-10-09 20:20:49 UTC (rev 56608)
+++ trunk/Master/texmf-dist/doc/latex/kvoptions/README.md	2020-10-09 20:21:09 UTC (rev 56609)
@@ -1,7 +1,13 @@
-# kvoptions
+# kvoptions package for LaTeX
 
-kvoptions package for LaTeX
+Version: 2020-10-07 v3.14
 
 This package is intended for package authors who want to
 use options in key value format for their package options.
 
+## Copyright (C)
+* 2007, 2009-2011  Heiko Oberdiek
+* 2016-2020        Oberdiek Package Support Group
+
+## License
+LATEX Project Public License, version 1.3c or later.

Modified: trunk/Master/texmf-dist/doc/latex/kvoptions/example-mycolorsetup.sty
===================================================================
--- trunk/Master/texmf-dist/doc/latex/kvoptions/example-mycolorsetup.sty	2020-10-09 20:20:49 UTC (rev 56608)
+++ trunk/Master/texmf-dist/doc/latex/kvoptions/example-mycolorsetup.sty	2020-10-09 20:21:09 UTC (rev 56609)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: kvoptions
-%% Version: 2019/11/29 v3.13
+%% Version: 2020-10-07 v3.14
 %% 
 %% Copyright (C)
 %%    2004, 2006, 2007, 2009-2011 Heiko Oberdiek
-%%    2016-2019 Oberdiek Package Support Group
+%%    2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -138,6 +138,7 @@
     \textcolor{\MCS at emph}{#1}%
   }
 \fi
+
 \endinput
 %%
 %% End of file `example-mycolorsetup.sty'.

Modified: trunk/Master/texmf-dist/doc/latex/kvoptions/kvoptions.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/kvoptions/kvoptions.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/kvoptions/kvoptions.dtx	2020-10-09 20:20:49 UTC (rev 56608)
+++ trunk/Master/texmf-dist/source/latex/kvoptions/kvoptions.dtx	2020-10-09 20:21:09 UTC (rev 56609)
@@ -1,12 +1,12 @@
 % \iffalse meta-comment
 %
 % File: kvoptions.dtx
-% Version: 2019/11/29 v3.13
+% Version: 2020-10-07 v3.14
 % Info: Key value format for package options
 %
 % Copyright (C)
 %    2004, 2006, 2007, 2009-2011 Heiko Oberdiek
-%    2016-2019 Oberdiek Package Support Group
+%    2016-2020 Oberdiek Package Support Group
 %    https://github.com/ho-tex/kvoptions/issues
 %
 % This work may be distributed and/or modified under the
@@ -85,7 +85,7 @@
 \input docstrip.tex
 \Msg{************************************************************************}
 \Msg{* Installation}
-\Msg{* Package: kvoptions 2019/11/29 v3.13 Key value format for package options (HO)}
+\Msg{* Package: kvoptions 2020-10-07 v3.14 Key value format for package options (HO)}
 \Msg{************************************************************************}
 
 \keepsilent
@@ -97,11 +97,11 @@
 This is a generated file.
 
 Project: kvoptions
-Version: 2019/11/29 v3.13
+Version: 2020-10-07 v3.14
 
 Copyright (C)
    2004, 2006, 2007, 2009-2011 Heiko Oberdiek
-   2016-2019 Oberdiek Package Support Group
+   2016-2020 Oberdiek Package Support Group
 
 This work may be distributed and/or modified under the
 conditions of the LaTeX Project Public License, either
@@ -145,10 +145,6 @@
 %  \file{kvoptions-test3.tex}{\from{kvoptions.dtx}{test3}}%
 %  \file{kvoptions-test4.tex}{\from{kvoptions.dtx}{test4}}%
 %  \file{kvoptions-test4.sty}{\from{kvoptions.dtx}{test4pkg}}%
-  \nopreamble
-  \nopostamble
-%  \usedir{source/latex/kvoptions/catalogue}%
-%  \file{kvoptions.xml}{\from{kvoptions.dtx}{catalogue}}%
 }
 
 \catcode32=13\relax% active space
@@ -175,7 +171,7 @@
 %<*driver>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{kvoptions.drv}%
-  [2019/11/29 v3.13 Key value format for package options (HO)]%
+  [2020-10-07 v3.14 Key value format for package options (HO)]%
 \documentclass{ltxdoc}
 \usepackage{holtxdoc}[2011/11/22]
 \begin{document}
@@ -185,26 +181,11 @@
 % \fi
 %
 %
-% \CharacterTable
-%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%   Digits        \0\1\2\3\4\5\6\7\8\9
-%   Exclamation   \!     Double quote  \"     Hash (number) \#
-%   Dollar        \$     Percent       \%     Ampersand     \&
-%   Acute accent  \'     Left paren    \(     Right paren   \)
-%   Asterisk      \*     Plus          \+     Comma         \,
-%   Minus         \-     Point         \.     Solidus       \/
-%   Colon         \:     Semicolon     \;     Less than     \<
-%   Equals        \=     Greater than  \>     Question mark \?
-%   Commercial at \@     Left bracket  \[     Backslash     \\
-%   Right bracket \]     Circumflex    \^     Underscore    \_
-%   Grave accent  \`     Left brace    \{     Vertical bar  \|
-%   Right brace   \}     Tilde         \~}
 %
 % \GetFileInfo{kvoptions.drv}
 %
 % \title{The \xpackage{kvoptions} package}
-% \date{2019/11/29 v3.13}
+% \date{2020-10-07 v3.14}
 % \author{Heiko Oberdiek\thanks
 % {Please report any issues at \url{https://github.com/ho-tex/kvoptions/issues}}}
 %
@@ -883,6 +864,11 @@
 %
 % \subsection{Package \xpackage{kvoptions-patch}}
 %
+% \begin{description}
+% \item[Change in version v3.14:] \xpackage{kvoptions-patch} is not compatible with a
+% \LaTeX\ 2020-10-01 or newer and will abort loading if it detects it!
+% \end{description}
+%
 % \LaTeX's system of package/class options has some severe limitations
 % that especially affects the value part if options are used as
 % pair of key and value.
@@ -1075,7 +1061,19 @@
 % }
 %
 % \section{Implementation}
-%
+% \subsection{Disabling the patches for newer LaTeX}
+%  \xpackage{kvoptions-patch} is not compatible with \LaTeX{} 2020-10-01 and newer
+%  so it is disabled and issues a warning.
+%    \begin{macrocode}
+%<*patch>
+\providecommand\IfFormatAtLeastTF{\@ifl at t@r\fmtversion}
+\IfFormatAtLeastTF{2020/10/01}{\PackageWarning{kvoptions-patch}%
+ {kvoptions-patch is not compatible with \MessageBreak
+  LaTeX \fmtversion\MessageBreak Loading is aborted}{}}{}
+\IfFormatAtLeastTF{2020/10/01}{\endinput}{}
+%</patch>
+%    \end{macrocode}
+
 % \subsection{Preamble}
 %
 %    \begin{macrocode}
@@ -1154,7 +1152,7 @@
   \fi
 \expandafter\x\csname ver at kvoptions.sty\endcsname
 \ProvidesPackage{kvoptions}%
-  [2019/11/29 v3.13 Key value format for package options (HO)]%
+  [2020-10-07 v3.14 Key value format for package options (HO)]%
 %    \end{macrocode}
 %
 % \paragraph{Catcodes}
@@ -2288,7 +2286,7 @@
 \TMP at EnsureCode{124}{12}% |
 \edef\KVO at AtEnd{\KVO at AtEnd\noexpand\endinput}
 \ProvidesPackage{kvoptions-patch}%
-  [2019/11/29 v3.13 LaTeX patch for keyval options (HO)]%
+  [2020-10-07 v3.14 LaTeX patch for keyval options (HO)]%
 %    \end{macrocode}
 %
 %    Check for \eTeX.
@@ -2789,253 +2787,6 @@
 \KVO at AtEnd%
 %</patch>
 %    \end{macrocode}
-%
-% \section{Test}
-%
-% \subsection{Preface for standard catcode check}
-%
-%    \begin{macrocode}
-%<*test1>
-\input miniltx.tex\relax
-%</test1>
-%    \end{macrocode}
-%
-% \subsection{Catcode checks for loading}
-%
-%    \begin{macrocode}
-%<*test1>
-%    \end{macrocode}
-%    \begin{macrocode}
-\catcode`\{=1 %
-\catcode`\}=2 %
-\catcode`\#=6 %
-\catcode`\@=11 %
-\expandafter\ifx\csname count@\endcsname\relax
-  \countdef\count@=255 %
-\fi
-\expandafter\ifx\csname @gobble\endcsname\relax
-  \long\def\@gobble#1{}%
-\fi
-\expandafter\ifx\csname @firstofone\endcsname\relax
-  \long\def\@firstofone#1{#1}%
-\fi
-\expandafter\ifx\csname loop\endcsname\relax
-  \expandafter\@firstofone
-\else
-  \expandafter\@gobble
-\fi
-{%
-  \def\loop#1\repeat{%
-    \def\body{#1}%
-    \iterate
-  }%
-  \def\iterate{%
-    \body
-      \let\next\iterate
-    \else
-      \let\next\relax
-    \fi
-    \next
-  }%
-  \let\repeat=\fi
-}%
-\def\RestoreCatcodes{}
-\count@=0 %
-\loop
-  \edef\RestoreCatcodes{%
-    \RestoreCatcodes
-    \catcode\the\count@=\the\catcode\count@\relax
-  }%
-\ifnum\count@<255 %
-  \advance\count@ 1 %
-\repeat
-
-\def\RangeCatcodeInvalid#1#2{%
-  \count@=#1\relax
-  \loop
-    \catcode\count@=15 %
-  \ifnum\count@<#2\relax
-    \advance\count@ 1 %
-  \repeat
-}
-\def\RangeCatcodeCheck#1#2#3{%
-  \count@=#1\relax
-  \loop
-    \ifnum#3=\catcode\count@
-    \else
-      \errmessage{%
-        Character \the\count@\space
-        with wrong catcode \the\catcode\count@\space
-        instead of \number#3%
-      }%
-    \fi
-  \ifnum\count@<#2\relax
-    \advance\count@ 1 %
-  \repeat
-}
-\def\space{ }
-\expandafter\ifx\csname LoadCommand\endcsname\relax
-  \def\LoadCommand{\input kvoptions.sty\relax}%
-\fi
-\def\Test{%
-  \RangeCatcodeInvalid{0}{47}%
-  \RangeCatcodeInvalid{58}{64}%
-  \RangeCatcodeInvalid{91}{96}%
-  \RangeCatcodeInvalid{123}{255}%
-  \catcode`\@=12 %
-  \catcode`\\=0 %
-  \catcode`\%=14 %
-  \LoadCommand
-  \RangeCatcodeCheck{0}{36}{15}%
-  \RangeCatcodeCheck{37}{37}{14}%
-  \RangeCatcodeCheck{38}{47}{15}%
-  \RangeCatcodeCheck{48}{57}{12}%
-  \RangeCatcodeCheck{58}{63}{15}%
-  \RangeCatcodeCheck{64}{64}{12}%
-  \RangeCatcodeCheck{65}{90}{11}%
-  \RangeCatcodeCheck{91}{91}{15}%
-  \RangeCatcodeCheck{92}{92}{0}%
-  \RangeCatcodeCheck{93}{96}{15}%
-  \RangeCatcodeCheck{97}{122}{11}%
-  \RangeCatcodeCheck{123}{255}{15}%
-  \RestoreCatcodes
-}
-\Test
-\csname @@end\endcsname
-\end
-%    \end{macrocode}
-%    \begin{macrocode}
-%</test1>
-%    \end{macrocode}
-%
-%    \begin{macrocode}
-%<*test2>
-\NeedsTeXFormat{LaTeX2e}
-\makeatletter
-\catcode`\@=11 %
-\def\RestoreCatcodes{}
-\count@=0 %
-\loop
-  \edef\RestoreCatcodes{%
-    \RestoreCatcodes
-    \catcode\the\count@=\the\catcode\count@\relax
-  }%
-\ifnum\count@<255 %
-  \advance\count@\@ne
-\repeat
-
-\def\RangeCatcodeInvalid#1#2{%
-  \count@=#1\relax
-  \loop
-    \catcode\count@=15 %
-  \ifnum\count@<#2\relax
-    \advance\count@\@ne
-  \repeat
-}
-\def\Test#1{%
-  \RangeCatcodeInvalid{0}{47}%
-  \RangeCatcodeInvalid{58}{64}%
-  \RangeCatcodeInvalid{91}{96}%
-  \RangeCatcodeInvalid{123}{255}%
-  \catcode`\@=12 %
-  \catcode`\\=0 %
-  \catcode`\{=1 %
-  \catcode`\}=2 %
-  \catcode`\#=6 %
-  \catcode`\[=12 %
-  \catcode`\]=12 %
-  \catcode`\%=14 %
-  \catcode`\ =10 %
-  \catcode13=5 %
-  #1\relax
-  \RestoreCatcodes
-}
-\Test{\RequirePackage{kvoptions-patch}}%
-\Test{\RequirePackage{kvoptions}}%
-\csname @@end\endcsname
-%</test2>
-%    \end{macrocode}
-%
-%    \begin{macrocode}
-%<*test3>
-\NeedsTeXFormat{LaTeX2e}
-\makeatletter
-\RequirePackage{kvoptions}[2019/11/29]
-\def\msg#{\immediate\write16}
-\define at key{testfamily}{testkey}{%
-  \msg{[testfamily/testkey/#1]}%
-}
-\define at key{testfamily}{testdefaultkey}[testdefault]{%
-  \msg{[testfamily/testdefaultkey/#1]}%
-}
-\AddToKeyvalOption{testfamily}{testkey}{%
-  \msg{[addition/#1]}%
-}
-\AddToKeyvalOption{testfamily}{testdefaultkey}{%
-  \msg{[addition/#1]}%
-}
-\setkeys{testfamily}{%
-  testkey=testA,%
-  testdefaultkey=testB,%
-  testdefaultkey,%
-}
-\SetupKeyvalOptions{%
-  family=testfamily%
-}
-\AddToKeyvalOption*{testkey}{%
-  \msg{[star addition/#1]}%
-}
-\AddToKeyvalOption*{testdefaultkey}{%
-  \msg{[star addition/#1]}%
-}
-\setkeys{testfamily}{%
-  testkey=testA,%
-  testdefaultkey=testB,%
-  testdefaultkey,%
-}
-\@@end
-%</test3>
-%    \end{macrocode}
-%
-%    \begin{macrocode}
-%<*test4pkg>
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{kvoptions-test4}[2019/11/29 package for testing]
-\RequirePackage{kvoptions}[2019/11/29]
-\SetupKeyvalOptions{%
-  family=FOO,%
-  prefix=foo,%
-  setkeys=\kvsetkeys,%
-}
-\DeclareStringOption{str}
-\define at key{FOO}{set}{%
-  \setkeys{BAR}{strbar={#1}}%
-}
-\define at key{BAR}{strbar}{%
-  \def\foostr{[BAR:#1]}%
-}
-\ProcessKeyvalOptions*
-%</test4pkg>
-%    \end{macrocode}
-%    \begin{macrocode}
-%<*test4>
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesFile{kvoptions-test4.tex}[2019/11/29 test file]
-\RequirePackage[%
-  str=A,set=B,str=C,%
-]{kvoptions-test4}[2019/11/29]
-\def\TestExpected{C}
-\ifx\foostr\TestExpected
-  \typeout{* Test ok.}%
-\else
-  \typeout{* Result: [\foostr]}%
-  \typeout{* Expected: [\TestExpected]}%
-  \errmessage{Test failed!}%
-\fi
-\csname @@end\endcsname\end
-%</test4>
-%    \end{macrocode}
-%
 % \section{Installation}
 %
 % \subsection{Download}
@@ -3368,6 +3119,11 @@
 %   \item
 %     Documentation updates.
 %   \end{Version}
+%   \begin{Version}{2020-10-07 v3.14}
+%   \item \xpackage{kvoptions-patch} is not compatible with a
+%     \LaTeX\ 2020-10-01 or newer and so it will abort loading if it detects it.
+%     This fixes github issue \#5.
+%   \end{Version}
 % \end{History}
 %
 % \PrintIndex

Modified: trunk/Master/texmf-dist/tex/latex/kvoptions/kvoptions-patch.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/kvoptions/kvoptions-patch.sty	2020-10-09 20:20:49 UTC (rev 56608)
+++ trunk/Master/texmf-dist/tex/latex/kvoptions/kvoptions-patch.sty	2020-10-09 20:21:09 UTC (rev 56609)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: kvoptions
-%% Version: 2019/11/29 v3.13
+%% Version: 2020-10-07 v3.14
 %% 
 %% Copyright (C)
 %%    2004, 2006, 2007, 2009-2011 Heiko Oberdiek
-%%    2016-2019 Oberdiek Package Support Group
+%%    2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -43,6 +43,12 @@
 %% No we don't need the option 'color'.
 %% With color support option 'emphcolor' will dynamically
 %% change the color of \emph statements.
+\providecommand\IfFormatAtLeastTF{\@ifl at t@r\fmtversion}
+\IfFormatAtLeastTF{2020/10/01}{\PackageWarning{kvoptions-patch}%
+ {kvoptions-patch is not compatible with \MessageBreak
+  LaTeX \fmtversion\MessageBreak Loading is aborted}{}}{}
+\IfFormatAtLeastTF{2020/10/01}{\endinput}{}
+
 \def\KVO at IfDefThen#1#2{%
   \ifx#1\ltx at undefined
   \else
@@ -118,7 +124,7 @@
 \TMP at EnsureCode{124}{12}% |
 \edef\KVO at AtEnd{\KVO at AtEnd\noexpand\endinput}
 \ProvidesPackage{kvoptions-patch}%
-  [2019/11/29 v3.13 LaTeX patch for keyval options (HO)]%
+  [2020-10-07 v3.14 LaTeX patch for keyval options (HO)]%
 \begingroup\expandafter\expandafter\expandafter\endgroup
 \expandafter\ifx\csname eTeXversion\endcsname\relax
   \PackageWarningNoLine{kvoptions-patch}{%

Modified: trunk/Master/texmf-dist/tex/latex/kvoptions/kvoptions.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/kvoptions/kvoptions.sty	2020-10-09 20:20:49 UTC (rev 56608)
+++ trunk/Master/texmf-dist/tex/latex/kvoptions/kvoptions.sty	2020-10-09 20:21:09 UTC (rev 56609)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: kvoptions
-%% Version: 2019/11/29 v3.13
+%% Version: 2020-10-07 v3.14
 %% 
 %% Copyright (C)
 %%    2004, 2006, 2007, 2009-2011 Heiko Oberdiek
-%%    2016-2019 Oberdiek Package Support Group
+%%    2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -43,6 +43,7 @@
 %% No we don't need the option 'color'.
 %% With color support option 'emphcolor' will dynamically
 %% change the color of \emph statements.
+
 \begingroup\catcode61\catcode48\catcode32=10\relax%
   \catcode13=5 % ^^M
   \endlinechar=13 %
@@ -109,7 +110,7 @@
   \fi
 \expandafter\x\csname ver at kvoptions.sty\endcsname
 \ProvidesPackage{kvoptions}%
-  [2019/11/29 v3.13 Key value format for package options (HO)]%
+  [2020-10-07 v3.14 Key value format for package options (HO)]%
 \begingroup\catcode61\catcode48\catcode32=10\relax%
   \catcode13=5 % ^^M
   \endlinechar=13 %



More information about the tex-live-commits mailing list.