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.ltx30
1 files changed, 25 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx
index 386d9dc09e7..8c6b1eff62e 100644
--- a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx
+++ b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx
@@ -6,7 +6,7 @@
%%
%% xparse.dtx (with options: `2ekernel')
%%
-%% Copyright (C) 2009-2020 The LaTeX3 Project
+%% Copyright (C) 2009-2021 The LaTeX Project
%%
%% It may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License (LPPL), either version 1.3c of
@@ -19,11 +19,31 @@
%% and all files in that bundle must be distributed together.
%%
%% File: xparse.dtx
-\everyjob\expandafter{\the\everyjob
- \message{xparse <2020-03-03>}%
-}
+\def\@parse@version#1/#2/#3#4#5\@nil{%
+ \@parse@version@dash#1-#2-#3#4\@nil}
+\def\@parse@version@dash#1-#2-#3#4#5\@nil{%
+ \if\relax#2\relax\else#1\fi#2#3#4 }
\ExplSyntaxOn
-\input xparse-generic.tex ~
+\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}
+ \else
+ \@@input xparse-generic.tex ~
+ \fi
+ \file_input_stop:
+ }
+ {
+ \ExplSyntaxOff
+ \cs_if_exist:NF \__cmd_start:nNNnnn
+ {
+ \RequirePackage{xparse-2020-10-01}
+ \file_input_stop:
+ }
+ }
\ExplSyntaxOff
%%
%%