diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-15 22:59:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-15 22:59:15 +0000 |
commit | 2e36532bb99dce0d6c5fba60f7adba7e2bfb7c37 (patch) | |
tree | cc660828dba6c726fdb074cf8863c67909b4c12b /Master/texmf-dist/source/latex/base/ltclass.dtx | |
parent | 3921a22f73049427dc715ed4969798cd28ba9142 (diff) |
latex2e (15apr17, ltnews27)
git-svn-id: svn://tug.org/texlive/trunk@43813 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ltclass.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/base/ltclass.dtx | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/base/ltclass.dtx b/Master/texmf-dist/source/latex/base/ltclass.dtx index ecbcbfff2cf..b1d81c5d6bf 100644 --- a/Master/texmf-dist/source/latex/base/ltclass.dtx +++ b/Master/texmf-dist/source/latex/base/ltclass.dtx @@ -33,7 +33,7 @@ %<*driver> % \fi \ProvidesFile{ltclass.dtx} - [2016/11/09 v1.2b LaTeX Kernel (Class & Package Interface)] + [2017/03/08 v1.2c LaTeX Kernel (Class & Package Interface)] % \iffalse \documentclass{ltxdoc} \GetFileInfo{ltclass.dtx} @@ -631,8 +631,22 @@ % % \changes{v1.1j}{2016/06/20} % {don't declare as \cs{@onlypreamble}} +% \changes{v1.2c}{2017/03/08} +% {add \cs{@parse@version@dash} to support yyyy-mm-dd as well as yyyy/mm/dd } % \begin{macrocode} -\def\@parse@version#1/#2/#3#4#5\@nil{#1#2#3#4 } +%</2ekernel> +%<*2ekernel|isodate> +\def\@parse@version#1/#2/#3#4#5\@nil{% +\@parse@version@dash#1-#2-#3#4\@nil +} +% \end{macrocode} +% +% The |\if| test here ensures that an argument with no |/| or |-| produces 0 (actually 00). +% \begin{macrocode} +\def\@parse@version@dash#1-#2-#3#4#5\@nil{% + \if\relax#2\relax\else#1\fi#2#3#4 } +%</2ekernel|isodate> +%<*2ekernel> % \end{macrocode} % \end{macro} % \end{macro} @@ -794,7 +808,6 @@ % \wlog{File: #1 #2}% % \expandafter\xdef\csname ver@#1\endcsname{#2}% % \endgroup} -% \end{macrocode} %\end{verbatim} % \end{macro} % \end{macro} |