Skip to content

Commit

Permalink
platexrelease.dtx: force override
Browse files Browse the repository at this point in the history
  • Loading branch information
aminophen committed Jan 8, 2023
1 parent 757d3a1 commit 8c805b4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Copyright (c) 2010 ASCII MEDIA WORKS
Copyright (c) 2016-2022 Japanese TeX Development Community
Copyright (c) 2016-2023 Japanese TeX Development Community
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
17 changes: 12 additions & 5 deletions platexrelease.dtx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% \iffalse meta-comment
%% File: platexrelease.dtx
%
% Copyright (c) 2016-2022 Japanese TeX Development Community
% Copyright (c) 2016-2023 Japanese TeX Development Community
%
% This file is part of the pLaTeX2e system (community edition).
% -------------------------------------------------------------
Expand Down Expand Up @@ -34,6 +34,7 @@
% \changes{v1.0n}{2020/03/28}{$B@h$K(Blatexrelease$B$,FI$_9~$^$l$F$$$?$i7Y9p(B}
% \changes{v1.0o}{2021/02/13}{\cs{sourcepLaTeXdate} added
% (sync with latexrelease.dtx 2021/01/23 v1.0l)}
% \changes{v1.0p}{2023/01/08}{latexrelease$B$,?7$7$$>l9g$O>o$K>e=q$-(B}
% \fi
%
% \iffalse
Expand All @@ -43,7 +44,7 @@
\ProvidesFile{platexrelease.dtx}
%</driver>
%<platexrelease>\ProvidesPackage{platexrelease}
[2021/02/13 v1.0o latexrelease support for pLaTeX Kernel
[2023/01/08 v1.0p latexrelease support for pLaTeX Kernel
(including releases up to \platexreleaseversion)]
%<*driver>
\RequirePackage{plautopatch}
Expand Down Expand Up @@ -226,13 +227,19 @@
%
% $BFI$_9~$s$@(B\Lpack{latexrelease}$B%Q%C%1!<%8$N%P!<%8%g%s$r3NG'$7!"(B
% \Lpack{platexrelease}$B$,L$BP1~$N?7$7$$$b$N$G$"$C$?>l9g$K7Y9p$7$^$9!#(B
% $B$3$N>l9g$O!"(B\Lpack{latexrelease}$B$K$h$C$F(Bp\LaTeX{}$B$,>e=q$-$5$l$F(B
% $B2u$l$k$N$rKI$0$?$a!"LdEzL5MQ$G(Bp\LaTeX{}$B$G:FEY>e=q$-$7$^$9!#(B
% \changes{v1.0b}{2016/02/16}{latexrelease$B$N%P!<%8%g%s3NG'$rF3F~(B}
% \changes{v1.0p}{2023/01/08}{latexrelease$B$,?7$7$$>l9g$O>o$K>e=q$-(B}
% \begin{macrocode}
\ifnum\expandafter\@parse@version\latexreleaseversion//00\@nil
>\expandafter\@parse@version\p@known@latexreleaseversion//00\@nil
\PackageWarningNoLine{platexrelease}{%
Version of `latexrelease' is newer than\MessageBreak
what `platexrelease' knows}
\let\pltx@maybe@gobble\@gobble
\else
\let\pltx@maybe@gobble\@firstofone
\fi
% \end{macrocode}
%
Expand Down Expand Up @@ -293,7 +300,7 @@
\ifnum\requestedpLaTeXdate=\currentpLaTeXdate
\PackageWarningNoLine{platexrelease}{%
Current format date selected, no patches applied}
\expandafter\endinput
\pltx@maybe@gobble{\expandafter\endinput}
\fi
% \end{macrocode}
%
Expand All @@ -308,7 +315,7 @@
The current package is for an older pLaTeX format:\MessageBreak
pLaTeX \platexreleaseversion\space\MessageBreak
Obtain a newer version of this package!}
\expandafter\endinput
\pltx@maybe@gobble{\expandafter\endinput}
\fi
% \end{macrocode}
%
Expand All @@ -322,7 +329,7 @@ The current package is for pLaTeX \platexreleaseversion:\MessageBreak
It has no patches beyond that date\MessageBreak
There may be an updated version\MessageBreak
of this package available from CTAN}
\expandafter\endinput
\pltx@maybe@gobble{\expandafter\endinput}
\fi
% \end{macrocode}
%
Expand Down
12 changes: 8 additions & 4 deletions platexrelease.sty
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
%% File: platexrelease.dtx
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{platexrelease}
[2021/02/13 v1.0o latexrelease support for pLaTeX Kernel
[2023/01/08 v1.0p latexrelease support for pLaTeX Kernel
(including releases up to \platexreleaseversion)]
\ifx\p@warn@latexrelease\@undefined\else
\let\p@warn@latexrelease\relax
Expand All @@ -87,6 +87,9 @@
\PackageWarningNoLine{platexrelease}{%
Version of `latexrelease' is newer than\MessageBreak
what `platexrelease' knows}
\let\pltx@maybe@gobble\@gobble
\else
\let\pltx@maybe@gobble\@firstofone
\fi
\edef\sourcepLaTeXdate{%
\expandafter\@parse@version\pfmtversion//00\@nil}
Expand Down Expand Up @@ -119,15 +122,15 @@
\ifnum\requestedpLaTeXdate=\currentpLaTeXdate
\PackageWarningNoLine{platexrelease}{%
Current format date selected, no patches applied}
\expandafter\endinput
\pltx@maybe@gobble{\expandafter\endinput}
\fi
\ifnum\currentpLaTeXdate
>\expandafter\@parse@version\platexreleaseversion//00\@nil
\PackageWarningNoLine{platexrelease}{%
The current package is for an older pLaTeX format:\MessageBreak
pLaTeX \platexreleaseversion\space\MessageBreak
Obtain a newer version of this package!}
\expandafter\endinput
\pltx@maybe@gobble{\expandafter\endinput}
\fi
\ifnum\requestedpLaTeXdate
>\expandafter\@parse@version\platexreleaseversion//00\@nil
Expand All @@ -136,7 +139,7 @@ The current package is for pLaTeX \platexreleaseversion:\MessageBreak
It has no patches beyond that date\MessageBreak
There may be an updated version\MessageBreak
of this package available from CTAN}
\expandafter\endinput
\pltx@maybe@gobble{\expandafter\endinput}
\fi
\let\pfmtversion\requestedplpatchdate
\let\currentpLaTeXdate\requestedpLaTeXdate
Expand All @@ -146,6 +149,7 @@ of this package available from CTAN}
some critical bugs. We advise you to\MessageBreak
select another format date}
\plIncludeInRelease{2017/10/28}{\PackageWarning}{pLaTeX Info}%
% * <2021-11-15>+1
% * <2021-11-15>
% * <2021-06-01>+2
% * <2021-06-01>+1
Expand Down

0 comments on commit 8c805b4

Please sign in to comment.