texlive[56413] Master: ltxcmds (23sep20)

commits+karl at tug.org commits+karl at tug.org
Wed Sep 23 23:18:00 CEST 2020


Revision: 56413
          http://tug.org/svn/texlive?view=revision&revision=56413
Author:   karl
Date:     2020-09-23 23:18:00 +0200 (Wed, 23 Sep 2020)
Log Message:
-----------
ltxcmds (23sep20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/latex/ltxcmds/ltxcmds.dtx
    trunk/Master/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
    trunk/Master/tlpkg/libexec/ctan2tds

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/generic/ltxcmds/
    trunk/Master/texmf-dist/doc/generic/ltxcmds/README.md
    trunk/Master/texmf-dist/doc/generic/ltxcmds/ltxcmds.pdf

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/ltxcmds/

Added: trunk/Master/texmf-dist/doc/generic/ltxcmds/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/ltxcmds/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/generic/ltxcmds/README.md	2020-09-23 21:18:00 UTC (rev 56413)
@@ -0,0 +1,14 @@
+# ltxcmds package for latex
+
+Version: 2020-05-10 v1.25
+
+The package ltxcmds exports some utility macros
+from the LaTeX kernel into a separate namespace and
+also provides them for other formats such as plain-TeX.
+
+## Copyright (C)
+* 2007, 2009-2011  Heiko Oberdiek
+* 2016-2020        Oberdiek Package Support Group
+
+## License
+LATEX Project Public License, version 1.3c or later.


Property changes on: trunk/Master/texmf-dist/doc/generic/ltxcmds/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/generic/ltxcmds/ltxcmds.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/generic/ltxcmds/ltxcmds.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/generic/ltxcmds/ltxcmds.pdf	2020-09-23 21:09:56 UTC (rev 56412)
+++ trunk/Master/texmf-dist/doc/generic/ltxcmds/ltxcmds.pdf	2020-09-23 21:18:00 UTC (rev 56413)

Property changes on: trunk/Master/texmf-dist/doc/generic/ltxcmds/ltxcmds.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/source/latex/ltxcmds/ltxcmds.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/ltxcmds/ltxcmds.dtx	2020-09-23 21:09:56 UTC (rev 56412)
+++ trunk/Master/texmf-dist/source/latex/ltxcmds/ltxcmds.dtx	2020-09-23 21:18:00 UTC (rev 56413)
@@ -1,12 +1,12 @@
 % \iffalse meta-comment
 %
 % File: ltxcmds.dtx
-% Version: 2019/12/15 v1.24
+% Version: 2020-05-10 v1.25
 % Info: LaTeX kernel commands for general use
 %
 % Copyright (C)
 %    2009-2011 Heiko Oberdiek
-%    2016-2019 Oberdiek Package Support Group
+%    2016-2020 Oberdiek Package Support Group
 %    https://github.com/ho-tex/ltxcmds/issues
 %
 % This work may be distributed and/or modified under the
@@ -86,7 +86,7 @@
 \input docstrip.tex
 \Msg{************************************************************************}
 \Msg{* Installation}
-\Msg{* Package: ltxcmds 2019/12/15 v1.24 LaTeX kernel commands for general use (HO)}
+\Msg{* Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO)}
 \Msg{************************************************************************}
 
 \keepsilent
@@ -98,11 +98,11 @@
 This is a generated file.
 
 Project: ltxcmds
-Version: 2019/12/15 v1.24
+Version: 2020-05-10 v1.25
 
 Copyright (C)
    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
@@ -166,7 +166,7 @@
 %<*driver>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltxcmds.drv}%
-  [2019/12/15 v1.24 LaTeX kernel commands for general use (HO)]%
+  [2020-05-10 v1.25 LaTeX kernel commands for general use (HO)]%
 \documentclass{ltxdoc}
 \usepackage{holtxdoc}[2011/11/22]
 \usepackage{zref-savepos}
@@ -183,7 +183,7 @@
 % \GetFileInfo{ltxcmds.drv}
 %
 % \title{The \xpackage{ltxcmds} package}
-% \date{2019/12/15 v1.24}
+% \date{2020-05-10 v1.25}
 % \author{Heiko Oberdiek\thanks
 % {Please report any issues at \url{https://github.com/ho-tex/ltxcmds/issues}}}
 %
@@ -334,7 +334,7 @@
 % \end{declcs}
 %
 % Macros with uppercase letters are expandable in two expansion steps.
-% Changes in version 2019/12/15 v1.24:
+% Changes in version 2020-05-10 v1.25:
 % \begin{itemize}
 % \item
 %   Macros \cs{ltx at carsecond}, \cs{ltx at carthird}, \cs{ltx at carfourth},
@@ -701,7 +701,7 @@
   \fi
 \expandafter\x\csname ver at ltxcmds.sty\endcsname
 \ProvidesPackage{ltxcmds}%
-  [2019/12/15 v1.24 LaTeX kernel commands for general use (HO)]%
+  [2020-05-10 v1.25 LaTeX kernel commands for general use (HO)]%
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -1486,103 +1486,46 @@
 %    \end{macro}
 %
 % \subsubsection{Version date check}
-%
-%    \begin{macro}{\ltx at iffilelater}
+%  changed 2020-05-10 to adapt to dates with dashes (ISO)
+%  The core of the commands are copies from the latex commands.
+%    \begin{macro}{\ltx at ifl@ter}
+%    \begin{macro}{\ltx at parse@version@}
 %    \begin{macrocode}
-\def\ltx at iffilelater#1#2{%
-  \ltx at iffileloaded{#1}{%
-    \expandafter\LTXcmds at IfLater\expandafter{%
-      \number
-      \expandafter\expandafter\expandafter\LTXcmds at ParseVersion
-      \expandafter\expandafter\expandafter{%
-        \csname ver@#1\endcsname
-      }%
-    \expandafter}\expandafter{%
-      \number
-      \expandafter\LTXcmds at ParseVersion\expandafter{#2}%
-    }%
-  }\ltx at secondoftwo
+\def\ltx at ifl@ter#1#2{%
+  \expandafter\ltx at ifl@t at r
+    \csname ver@#2.#1\endcsname}
+\def\ltx at ifl@t at r#1#2{%
+  \ifnum\expandafter\ltx at parse@version@#1//00\@nil<%
+        \expandafter\ltx at parse@version@#2//00\@nil
+    \expandafter\@secondoftwo
+  \else
+    \expandafter\@firstoftwo
+  \fi}
+\def\ltx at parse@version@#1{\ltx at parse@version0#1}
+\def\ltx at parse@version#1/#2/#3#4#5\@nil{%
+\ltx at parse@version at dash#1-#2-#3#4\@nil
 }
+\def\ltx at parse@version at dash#1-#2-#3#4#5\@nil{%
+  \if\relax#2\relax\else#1\fi#2#3#4 }
 %    \end{macrocode}
 %    \end{macro}
-%    \begin{macro}{\LTXcmds at IfLater}
+%    \end{macro}
+%    \begin{macro}{\ltx at iffilelater}
 %    \begin{macrocode}
-\def\LTXcmds at IfLater#1#2{%
-  \ifcase 0%
-      \ifnum#1<19940101 %
-      \else
-        \ifnum#2<19940101 %
-        \else
-          \ifnum#2>#1 %
-          \else
-            1%
-          \fi
-        \fi
-      \fi
-      \ltx at space
-    \expandafter\ltx at secondoftwo
-  \else
-    \expandafter\ltx at firstoftwo
-  \fi
-}
+\def\ltx at iffilelater#1{\expandafter\ltx at ifl@t at r\csname ver@#1\endcsname}
 %    \end{macrocode}
 %    \end{macro}
 %    \begin{macro}{\ltx at ifclasslater}
 %    \begin{macrocode}
-\def\ltx at ifclasslater#1{%
-  \ltx at iffilelater{#1.\ltx at clsextension}%
-}
+\def\ltx at ifclasslater{\ltx at ifl@ter\ltx at clsextension}
 %    \end{macrocode}
 %    \end{macro}
 %    \begin{macro}{\ltx at ifpackagelater}
 %    \begin{macrocode}
-\def\ltx at ifpackagelater#1{%
-  \ltx at iffilelater{#1.\ltx at pkgextension}%
-}
+\def\ltx at ifpackagelater{\ltx at ifl@ter\ltx at pkgextension}
 %    \end{macrocode}
 %    \end{macro}
 %
-%    \begin{macrocode}
-\ltx at IfUndefined{pdfmatch}{%
-%    \end{macrocode}
-%    \begin{macro}{\LTXcmds at ParseVersion}
-%    \begin{macrocode}
-  \def\LTXcmds at ParseVersion#1{%
-    \LTXcmds@@ParseVersion#10000/00/00\@nil
-  }%
-%    \end{macrocode}
-%    \end{macro}
-%    \begin{macro}{\LTXcmds@@ParseVersion}
-%    \begin{macrocode}
-  \def\LTXcmds@@ParseVersion#1#2#3#4/#5#6/#7#8#9\@nil{%
-    #1#2#3#4#5#6#7#8%
-  }%
-%    \end{macrocode}
-%    \end{macro}
-%    \begin{macrocode}
-}{%
-%    \end{macrocode}
-%    \begin{macro}{\LTXcmds at ParseVersion}
-%    \begin{macrocode}
-  \def\LTXcmds at ParseVersion#1{%
-    \ifnum\pdfmatch{%
-      ^%
-      (199[4-9]|[2-9][0-9][0-9][0-9])/%
-      (0[1-9]|1[0-2])/%
-      (0[1-9]|[1-2][0-9]|3[0-1])%
-    }{#1}=1 %
-      \ltx at StripPrefix\pdflastmatch1 %
-      \ltx at StripPrefix\pdflastmatch2 %
-      \ltx at StripPrefix\pdflastmatch3 %
-    \else
-      0%
-    \fi
-  }%
-%    \end{macrocode}
-%    \end{macro}
-%    \begin{macrocode}
-}
-%    \end{macrocode}
 %
 % \subsection{Macro additions}
 %
@@ -2040,28 +1983,9 @@
 % \end{description}
 %
 %
-% \paragraph{Bundle.} All the packages of the bundle `ltxcmds'
-% are also available in a TDS compliant ZIP archive. There
-% the packages are already unpacked and the documentation files
-% are generated. The files and directories obey the TDS standard.
-% \begin{description}
-% \item[\CTANinstall{install/macros/latex/contrib/ltxcmds.tds.zip}]
-% \end{description}
-% \emph{TDS} refers to the standard ``A Directory Structure
-% for \TeX\ Files'' (\CTANpkg{tds}). Directories
-% with \xfile{texmf} in their name are usually organized this way.
-%
-% \subsection{Bundle installation}
-%
-% \paragraph{Unpacking.} Unpack the \xfile{ltxcmds.tds.zip} in the
-% TDS tree (also known as \xfile{texmf} tree) of your choice.
-% Example (linux):
-% \begin{quote}
-%   |unzip ltxcmds.tds.zip -d ~/texmf|
-% \end{quote}
-%
 % \subsection{Package installation}
-%
+% The package is at best installed with the package manager of the \TeX~system.
+% Manual installation is possible too:
 % \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
 % \docstrip\ archive. The files are extracted by running the
 % \xfile{.dtx} through \plainTeX:
@@ -2417,6 +2341,13 @@
 %   \item
 %     Documentation updates.
 %   \end{Version}
+%   \begin{Version}{2020-05-10 v1.25}
+%   \item Changed the definitions of \cs{ltx at iffilelater}, \cs{ltx at ifpackagelater}
+%   and \cs{ltx at ifclasslater} to support dates in ISO format in same way as the
+%   LaTeX kernel does it since 2017. The commands now use the same test as the
+%   LaTeX kernel. \cs{pdfmatch} is no longer used with pdftex, and the tests for dates before
+%   1994 have been removed
+%   \end{Version}
 % \end{History}
 %
 % \PrintIndex

Modified: trunk/Master/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty	2020-09-23 21:09:56 UTC (rev 56412)
+++ trunk/Master/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty	2020-09-23 21:18:00 UTC (rev 56413)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: ltxcmds
-%% Version: 2019/12/15 v1.24
+%% Version: 2020-05-10 v1.25
 %% 
 %% Copyright (C)
 %%    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
@@ -31,7 +31,6 @@
 %% Heiko Oberdiek and the Oberdiek Package Support Group
 %% https://github.com/ho-tex/ltxcmds/issues
 %% 
-%% 
 %% The Base Interpreter refers to any `TeX-Format',
 %% because some files are installed in TDS:tex/generic//.
 %% 
@@ -109,7 +108,7 @@
   \fi
 \expandafter\x\csname ver at ltxcmds.sty\endcsname
 \ProvidesPackage{ltxcmds}%
-  [2019/12/15 v1.24 LaTeX kernel commands for general use (HO)]%
+  [2020-05-10 v1.25 LaTeX kernel commands for general use (HO)]%
 \begingroup\catcode61\catcode48\catcode32=10\relax%
   \catcode13=5 % ^^M
   \endlinechar=13 %
@@ -416,67 +415,25 @@
 \def\ltx at ifpackageloaded#1{%
   \ltx at iffileloaded{#1.\ltx at pkgextension}%
 }
-\def\ltx at iffilelater#1#2{%
-  \ltx at iffileloaded{#1}{%
-    \expandafter\LTXcmds at IfLater\expandafter{%
-      \number
-      \expandafter\expandafter\expandafter\LTXcmds at ParseVersion
-      \expandafter\expandafter\expandafter{%
-        \csname ver@#1\endcsname
-      }%
-    \expandafter}\expandafter{%
-      \number
-      \expandafter\LTXcmds at ParseVersion\expandafter{#2}%
-    }%
-  }\ltx at secondoftwo
-}
-\def\LTXcmds at IfLater#1#2{%
-  \ifcase 0%
-      \ifnum#1<19940101 %
-      \else
-        \ifnum#2<19940101 %
-        \else
-          \ifnum#2>#1 %
-          \else
-            1%
-          \fi
-        \fi
-      \fi
-      \ltx at space
-    \expandafter\ltx at secondoftwo
+\def\ltx at ifl@ter#1#2{%
+  \expandafter\ltx at ifl@t at r
+    \csname ver@#2.#1\endcsname}
+\def\ltx at ifl@t at r#1#2{%
+  \ifnum\expandafter\ltx at parse@version@#1//00\@nil<%
+        \expandafter\ltx at parse@version@#2//00\@nil
+    \expandafter\@secondoftwo
   \else
-    \expandafter\ltx at firstoftwo
-  \fi
+    \expandafter\@firstoftwo
+  \fi}
+\def\ltx at parse@version@#1{\ltx at parse@version0#1}
+\def\ltx at parse@version#1/#2/#3#4#5\@nil{%
+\ltx at parse@version at dash#1-#2-#3#4\@nil
 }
-\def\ltx at ifclasslater#1{%
-  \ltx at iffilelater{#1.\ltx at clsextension}%
-}
-\def\ltx at ifpackagelater#1{%
-  \ltx at iffilelater{#1.\ltx at pkgextension}%
-}
-\ltx at IfUndefined{pdfmatch}{%
-  \def\LTXcmds at ParseVersion#1{%
-    \LTXcmds@@ParseVersion#10000/00/00\@nil
-  }%
-  \def\LTXcmds@@ParseVersion#1#2#3#4/#5#6/#7#8#9\@nil{%
-    #1#2#3#4#5#6#7#8%
-  }%
-}{%
-  \def\LTXcmds at ParseVersion#1{%
-    \ifnum\pdfmatch{%
-      ^%
-      (199[4-9]|[2-9][0-9][0-9][0-9])/%
-      (0[1-9]|1[0-2])/%
-      (0[1-9]|[1-2][0-9]|3[0-1])%
-    }{#1}=1 %
-      \ltx at StripPrefix\pdflastmatch1 %
-      \ltx at StripPrefix\pdflastmatch2 %
-      \ltx at StripPrefix\pdflastmatch3 %
-    \else
-      0%
-    \fi
-  }%
-}
+\def\ltx at parse@version at dash#1-#2-#3#4#5\@nil{%
+  \if\relax#2\relax\else#1\fi#2#3#4 }
+\def\ltx at iffilelater#1{\expandafter\ltx at ifl@t at r\csname ver@#1\endcsname}
+\def\ltx at ifclasslater{\ltx at ifl@ter\ltx at clsextension}
+\def\ltx at ifpackagelater{\ltx at ifl@ter\ltx at pkgextension}
 \long\def\ltx at GlobalAppendToMacro#1#2{%
   \ifx\ltx at undefined#1%
     \let#1\ltx at empty

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2020-09-23 21:09:56 UTC (rev 56412)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2020-09-23 21:18:00 UTC (rev 56413)
@@ -1683,6 +1683,7 @@
  'letterspacing','generic',
  'levy',        'generic',  # one .sty, one .tex
  'lollipop',	'lollipop',
+ 'ltxcmds',	'generic',
  'luatexja',    'luatex',
  'luaxml',      'luatex',
  'lyluatex',	'luatex',
@@ -2367,6 +2368,7 @@
  'lh',                  'fonts',
  'latex-notes-zh-cn',   'generic',
  'lollipop',            'otherformats',
+ 'ltxcmds',		'generic',
  'lua-alt-getopt',      'support',
  'lua2dox',             'support',
  'luaintro',            'luatex',
@@ -2866,6 +2868,7 @@
  'listings'     => 'latex',  # requires interaction
  'lmake'        => 'latex',  # requires interaction
  'lni'		=> 'tex --8bit',
+ 'ltxcmds'	=> 'etex',
  'lua-ul'	=> 'etex',
  'luaindex'     => 'lualatex --shell-escape',
  'luatexja'     => 'lualatex',



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