diff options
author | Norbert Preining <norbert@preining.info> | 2020-09-23 03:03:31 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-09-23 03:03:31 +0000 |
commit | 6639178e654b36f7065a0cdbab783d687550e896 (patch) | |
tree | 409157d10a0e6d3d9c828b926a60d23195eb4abb /macros/latex/contrib/ltxcmds | |
parent | 1a37a060977fa92be44dcee0fb99c59e46023afe (diff) |
CTAN sync 202009230303
Diffstat (limited to 'macros/latex/contrib/ltxcmds')
-rw-r--r-- | macros/latex/contrib/ltxcmds/README.md | 12 | ||||
-rw-r--r-- | macros/latex/contrib/ltxcmds/ltxcmds.dtx | 155 | ||||
-rw-r--r-- | macros/latex/contrib/ltxcmds/ltxcmds.pdf | bin | 393914 -> 397106 bytes |
3 files changed, 51 insertions, 116 deletions
diff --git a/macros/latex/contrib/ltxcmds/README.md b/macros/latex/contrib/ltxcmds/README.md index 9cc3a34e32..2aef65aa3a 100644 --- a/macros/latex/contrib/ltxcmds/README.md +++ b/macros/latex/contrib/ltxcmds/README.md @@ -1,10 +1,14 @@ -# ltxcmds - -ltxcmds package for latex - +# 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. diff --git a/macros/latex/contrib/ltxcmds/ltxcmds.dtx b/macros/latex/contrib/ltxcmds/ltxcmds.dtx index f9169a21db..9940671d4d 100644 --- a/macros/latex/contrib/ltxcmds/ltxcmds.dtx +++ b/macros/latex/contrib/ltxcmds/ltxcmds.dtx @@ -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 @@ and the derived files %<*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 @@ and the derived files % \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 @@ and the derived files % \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@carsecond}, \cs{ltx@carthird}, \cs{ltx@carfourth}, @@ -701,7 +701,7 @@ and the derived files \fi \expandafter\x\csname ver@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 @@ and the derived files % \end{macro} % % \subsubsection{Version date check} -% -% \begin{macro}{\ltx@iffilelater} -% \begin{macrocode} -\def\ltx@iffilelater#1#2{% - \ltx@iffileloaded{#1}{% - \expandafter\LTXcmds@IfLater\expandafter{% - \number - \expandafter\expandafter\expandafter\LTXcmds@ParseVersion - \expandafter\expandafter\expandafter{% - \csname ver@#1\endcsname - }% - \expandafter}\expandafter{% - \number - \expandafter\LTXcmds@ParseVersion\expandafter{#2}% - }% - }\ltx@secondoftwo +% 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@ifl@ter} +% \begin{macro}{\ltx@parse@version@} +% \begin{macrocode} +\def\ltx@ifl@ter#1#2{% + \expandafter\ltx@ifl@t@r + \csname ver@#2.#1\endcsname} +\def\ltx@ifl@t@r#1#2{% + \ifnum\expandafter\ltx@parse@version@#1//00\@nil<% + \expandafter\ltx@parse@version@#2//00\@nil + \expandafter\@secondoftwo + \else + \expandafter\@firstoftwo + \fi} +\def\ltx@parse@version@#1{\ltx@parse@version0#1} +\def\ltx@parse@version#1/#2/#3#4#5\@nil{% +\ltx@parse@version@dash#1-#2-#3#4\@nil } +\def\ltx@parse@version@dash#1-#2-#3#4#5\@nil{% + \if\relax#2\relax\else#1\fi#2#3#4 } % \end{macrocode} % \end{macro} -% \begin{macro}{\LTXcmds@IfLater} +% \end{macro} +% \begin{macro}{\ltx@iffilelater} % \begin{macrocode} -\def\LTXcmds@IfLater#1#2{% - \ifcase 0% - \ifnum#1<19940101 % - \else - \ifnum#2<19940101 % - \else - \ifnum#2>#1 % - \else - 1% - \fi - \fi - \fi - \ltx@space - \expandafter\ltx@secondoftwo - \else - \expandafter\ltx@firstoftwo - \fi -} +\def\ltx@iffilelater#1{\expandafter\ltx@ifl@t@r\csname ver@#1\endcsname} % \end{macrocode} % \end{macro} % \begin{macro}{\ltx@ifclasslater} % \begin{macrocode} -\def\ltx@ifclasslater#1{% - \ltx@iffilelater{#1.\ltx@clsextension}% -} +\def\ltx@ifclasslater{\ltx@ifl@ter\ltx@clsextension} % \end{macrocode} % \end{macro} % \begin{macro}{\ltx@ifpackagelater} % \begin{macrocode} -\def\ltx@ifpackagelater#1{% - \ltx@iffilelater{#1.\ltx@pkgextension}% -} +\def\ltx@ifpackagelater{\ltx@ifl@ter\ltx@pkgextension} % \end{macrocode} % \end{macro} % -% \begin{macrocode} -\ltx@IfUndefined{pdfmatch}{% -% \end{macrocode} -% \begin{macro}{\LTXcmds@ParseVersion} -% \begin{macrocode} - \def\LTXcmds@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@ParseVersion} -% \begin{macrocode} - \def\LTXcmds@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@StripPrefix\pdflastmatch1 % - \ltx@StripPrefix\pdflastmatch2 % - \ltx@StripPrefix\pdflastmatch3 % - \else - 0% - \fi - }% -% \end{macrocode} -% \end{macro} -% \begin{macrocode} -} -% \end{macrocode} % % \subsection{Macro additions} % @@ -2040,28 +1983,9 @@ $ \next % \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 @@ $ \next % \item % Documentation updates. % \end{Version} +% \begin{Version}{2020-05-10 v1.25} +% \item Changed the definitions of \cs{ltx@iffilelater}, \cs{ltx@ifpackagelater} +% and \cs{ltx@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 diff --git a/macros/latex/contrib/ltxcmds/ltxcmds.pdf b/macros/latex/contrib/ltxcmds/ltxcmds.pdf Binary files differindex dc3eabc9e7..1dfb9104f3 100644 --- a/macros/latex/contrib/ltxcmds/ltxcmds.pdf +++ b/macros/latex/contrib/ltxcmds/ltxcmds.pdf |