diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/base/latexrelease.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/base/latexrelease.dtx | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/base/latexrelease.dtx b/Master/texmf-dist/source/latex/base/latexrelease.dtx index 3a129e981b2..02194cee116 100644 --- a/Master/texmf-dist/source/latex/base/latexrelease.dtx +++ b/Master/texmf-dist/source/latex/base/latexrelease.dtx @@ -40,7 +40,7 @@ %<*!fixltx2e> % \fi % \ProvidesFile{latexrelease.dtx} - [2018/02/18 v1.0j LaTeX release emulation and tests + [2018/05/08 v1.0k LaTeX release emulation and tests (including releases up to \latexreleaseversion)] % \iffalse %</!fixltx2e> @@ -108,6 +108,12 @@ % the commands defined here to adjust their definitions to the % specified date as described below. % +% Note that the \Lpack{latexrelease} package is intended for use +% at the start of a \emph{document}. Package and class code should not +% include this package as loading a package should not normally globally +% reset the effective version of \LaTeX\ that is in force, so affecting all +% other packages used in the document. +% % % The bulk of this package, after some initial setup and option % handling consists of a series of |\IncludeInRelease| commands @@ -123,16 +129,27 @@ % package has no information will generate a warning. Dates % earlier than 2015 will work but will roll back to some point in 2015 % when the method was introduced. +% |\IncludeInRelease| command is defined. +% The |\requestedLaTeXdate| is set to the normalized date argument +% so that package rollback defaults to the specified date. % % \item% % |current| This is the default behaviour, it does not change the % effective date of the format but does ensure that the % |\IncludeInRelease| command is defined. +% the |\requestedLaTeXdate| is reset to 0 so that package rollback +% does not use the implicit date. +% |\IncludeInRelease| command is defined. +% The |\requestedLaTeXdate| macro is reset to 0 so that package rollback +% does not use the implicit date. % % \item % |latest| sets the effective date of the format to the release date % of this file, so in an older format applies all patches currently % available. +% |\IncludeInRelease| command is defined. +% The |\requestedLaTeXdate| macro is reset to 0 so that package rollback +% does not use the implicit date. % \end{itemize} % % @@ -379,18 +396,21 @@ % \end{macro} % % \changes{v1.0c}{2015/02/19}{Swap argument order} +% \changes{v1.0k}{2018/05/08}{reset \cs{\requestedLaTeXdate} for current and latest options, gitub issue 43} % \begin{macrocode} \DeclareOption*{% \def\@IncludeInRelease#1[#2]{\@IncludeInRele@se{#1}}% \let\requestedpatchdate\CurrentOption} \DeclareOption{latest}{% - \let\requestedpatchdate\latexreleaseversion} + \let\requestedpatchdate\latexreleaseversion + \AtEndOfPackage{\def\requestedLaTeXdate{0}}} \DeclareOption{current}{% - \let\requestedpatchdate\fmtversion} + \let\requestedpatchdate\fmtversion + \AtEndOfPackage{\def\requestedLaTeXdate{0}}} % \end{macrocode} % % \begin{macrocode} -\ExecuteOptions{current} +\let\requestedpatchdate\fmtversion \ProcessOptions\relax % \end{macrocode} % |