[latex3-commits] [l3svn] 01/08: Make version optional in \ProvidesExpl...

noreply at latex-project.org noreply at latex-project.org
Sun Mar 19 21:45:27 CET 2017


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit 86ac35ec506596a51a774adcf04b3738271e109d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Mar 19 08:55:06 2017 +0000

    Make version optional in \ProvidesExpl...
    
    A blank version should not add "v" to the data string.
---
 l3kernel/expl3.dtx       |    6 +++---
 l3kernel/l3bootstrap.dtx |    7 +++++--
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/l3kernel/expl3.dtx b/l3kernel/expl3.dtx
index f774a34..97436c4 100644
--- a/l3kernel/expl3.dtx
+++ b/l3kernel/expl3.dtx
@@ -1225,17 +1225,17 @@
 %    \begin{macrocode}
 \protected\def\ProvidesExplPackage#1#2#3#4%
   {%
-    \ProvidesPackage{#1}[#2 v#3 #4]%
+    \ProvidesPackage{#1}[#2 \ifx\relax#3\relax\else v#3\space\fi #4]%
     \ExplSyntaxOn
   }
 \protected\def\ProvidesExplClass#1#2#3#4%
   {%
-    \ProvidesClass{#1}[#2 v#3 #4]%
+    \ProvidesClass{#1}[#2 \ifx\relax#3\relax\else v#3\space\fi #4]%
     \ExplSyntaxOn
   }
 \protected\def\ProvidesExplFile#1#2#3#4%
   {%
-    \ProvidesFile{#1}[#2 v#3 #4]%
+    \ProvidesFile{#1}[#2 \ifx\relax#3\relax\else v#3\space\fi #4]%
     \ExplSyntaxOn
   }
 %    \end{macrocode}
diff --git a/l3kernel/l3bootstrap.dtx b/l3kernel/l3bootstrap.dtx
index 0f1579b..aff771a 100644
--- a/l3kernel/l3bootstrap.dtx
+++ b/l3kernel/l3bootstrap.dtx
@@ -172,7 +172,8 @@
 %   reverts to the document category code r\'{e}gime.
 % \end{function}
 %
-% \begin{function}{\ProvidesExplPackage, \ProvidesExplClass, \ProvidesExplFile}
+% \begin{function}[updated = 2017-03-19]
+%   {\ProvidesExplPackage, \ProvidesExplClass, \ProvidesExplFile}
 %   \begin{syntax}
 %     |\RequirePackage{expl3}| \\
 %     \cs{ProvidesExplPackage} \Arg{package} \Arg{date} \Arg{version} \Arg{description}
@@ -185,7 +186,9 @@
 %   end of the file, \cs{ExplSyntaxOff} will be called to reverse this.
 %   (This is the same concept as \LaTeXe{} provides in turning on
 %   \tn{makeatletter} within package and class code.) The \meta{date} should
-%   be given in the format \meta{year}/\meta{month}/\meta{day}.
+%   be given in the format \meta{year}/\meta{month}/\meta{day}. If the
+%   \meta{version} is given then it will be prefixed with \texttt{v} in
+%   the package identifier line.
 % \end{function}
 %
 % \begin{function}[updated = 2012-06-04]{\GetIdInfo}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list