[latex3-commits] [git/LaTeX3-latex3-latex2e] main: Update xparse to 2021-03-12 (fd0db679)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Mar 12 15:27:23 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : main
Link       : https://github.com/latex3/latex2e/commit/fd0db679d8281efb3dace9efc3e69323e52168ea

>---------------------------------------------------------------

commit fd0db679d8281efb3dace9efc3e69323e52168ea
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Mar 12 14:26:51 2021 +0000

    Update xparse to 2021-03-12


>---------------------------------------------------------------

fd0db679d8281efb3dace9efc3e69323e52168ea
 texmf/tex/latex/l3packages/xparse/xparse.ltx | 10 ++++++++--
 texmf/tex/latex/l3packages/xparse/xparse.sty | 14 ++++++++++----
 2 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/texmf/tex/latex/l3packages/xparse/xparse.ltx b/texmf/tex/latex/l3packages/xparse/xparse.ltx
index 8c6b1eff..eea16b67 100644
--- a/texmf/tex/latex/l3packages/xparse/xparse.ltx
+++ b/texmf/tex/latex/l3packages/xparse/xparse.ltx
@@ -24,13 +24,19 @@
 \def\@parse at version@dash#1-#2-#3#4#5\@nil{%
   \if\relax#2\relax\else#1\fi#2#3#4 }
 \ExplSyntaxOn
+\cs_set_protected:Npn \__cmd_tmp:w #1
+  {
+    \DeclareOption* { \PassOptionsToPackage { \CurrentOption } {#1} }
+    \ProcessOptions \relax
+    \RequirePackage {#1}
+  }
 \cs_if_free:NTF \NewDocumentCommand
   {
     \ExplSyntaxOff
     \ifnum\expandafter
         \@parse at version\fmtversion//00\@nil <
         \@parse at version 2020-10-01//00\@nil
-      \RequirePackage{xparse-2018-04-12}
+      \__cmd_tmp:w { xparse-2018-04-12 }
     \else
       \@@input xparse-generic.tex ~
     \fi
@@ -40,7 +46,7 @@
     \ExplSyntaxOff
     \cs_if_exist:NF \__cmd_start:nNNnnn
       {
-        \RequirePackage{xparse-2020-10-01}
+        \__cmd_tmp:w { xparse-2020-10-01 }
         \file_input_stop:
       }
   }
diff --git a/texmf/tex/latex/l3packages/xparse/xparse.sty b/texmf/tex/latex/l3packages/xparse/xparse.sty
index eb1ba711..049e1de4 100644
--- a/texmf/tex/latex/l3packages/xparse/xparse.sty
+++ b/texmf/tex/latex/l3packages/xparse/xparse.sty
@@ -33,15 +33,21 @@
     \endinput
   }
 \ExplSyntaxOn
+\cs_set_protected:Npn \__cmd_tmp:w #1
+  {
+    \DeclareOption* { \PassOptionsToPackage { \CurrentOption } {#1} }
+    \ProcessOptions \relax
+    \RequirePackage {#1}
+  }
 \cs_if_free:NTF \NewDocumentCommand
   {
     \ExplSyntaxOff
     \ifnum\expandafter
         \@parse at version\fmtversion//00\@nil <
         \@parse at version 2020-10-01//00\@nil
-      \RequirePackage{xparse-2018-04-12}
+      \__cmd_tmp:w { xparse-2018-04-12 }
     \else
-      \RequirePackage{xparse-2020-10-01}
+      \__cmd_tmp:w { xparse-2020-10-01 }
     \fi
     \file_input_stop:
   }
@@ -49,12 +55,12 @@
     \ExplSyntaxOff
     \cs_if_exist:NF \__cmd_start:nNNnnn
       {
-        \RequirePackage{xparse-2020-10-01}
+        \__cmd_tmp:w { xparse-2020-10-01 }
         \file_input_stop:
       }
   }
 \ExplSyntaxOff
-\ProvidesExplPackage{xparse}{2021-02-02}{}
+\ProvidesExplPackage{xparse}{2021-03-12}{}
   {L3 Experimental document command parser}
 \clist_new:N \l__cmd_options_clist
 \DeclareOption* { \clist_put_right:NV \l__cmd_options_clist \CurrentOption }





More information about the latex3-commits mailing list.