summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx')
-rw-r--r--Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx
index 8c6b1eff62e..eea16b67952 100644
--- a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx
+++ b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx
@@ -24,13 +24,19 @@
\def\@parse@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@version\fmtversion//00\@nil <
\@parse@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:
}
}