[latex3-commits] [git/LaTeX3-latex3-latex2e] master: Allow for package substitution when saving version data (89dc3324)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Oct 1 14:14:20 CEST 2020
Repository : https://github.com/latex3/latex2e
On branch : master
Link : https://github.com/latex3/latex2e/commit/89dc3324c02ac90bfb913631dd7a7529a894ad78
>---------------------------------------------------------------
commit 89dc3324c02ac90bfb913631dd7a7529a894ad78
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Oct 1 13:14:20 2020 +0100
Allow for package substitution when saving version data
>---------------------------------------------------------------
89dc3324c02ac90bfb913631dd7a7529a894ad78
base/changes.txt | 5 +++++
base/ltclass.dtx | 23 +++++++++++++++++++----
2 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 136bfe3d..00407db4 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================
+2020-10-01 Joseph Wright <Joseph.Wright at latex-project.org>
+
+ * ltclass.dtx:
+ Allow for package substitution when saving version data
+
2020-09-30 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* ltfssini.dtx (section{Custom series settings for main document families}):
diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index 44fe0f88..7760eb27 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltclass.dtx}
- [2020/09/06 v1.3q LaTeX Kernel (Class & Package Interface)]
+ [2020/10/01 v1.3r LaTeX Kernel (Class & Package Interface)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltclass.dtx}
@@ -906,14 +906,17 @@
% be cautious when handling the identification string in case it
% contains UTF-8 characters.
% \changes{v1.3e}{2019/11/29}{Protect package info text (gh/52)}
+% \changes{v1.3r}{2020/10/01}{Allow for package subsitution}
% \begin{macrocode}
%</2ekernel>
%<*2ekernel|latexrelease>
-%<latexrelease>\IncludeInRelease{2020/02/02}%
-%<latexrelease> {\@pr at videpackage}{Protection for package info}%
+%<latexrelease>\IncludeInRelease{2020/10/01}%
+%<latexrelease> {\@pr at videpackage}{Allow for package subsitution}%
\def\@pr at videpackage[#1]{%
\expandafter\protected at xdef % <-- protected...
- \csname ver@\@currname.\@currext\endcsname{#1}%
+ \csname ver@\@currname.\@currext\endcsname{#1}% Loaded package
+ \expandafter\protected at xdef % <-- protected...
+ \csname ver@\@currpkg at reqd\endcsname{#1}% Requested package
\ifx\@currext\@clsextension
\typeout{Document Class: \@gtempa\space#1}%
\else
@@ -938,6 +941,18 @@
% \begin{macrocode}
%</2ekernel|latexrelease>
%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{2020/02/02}%
+%<latexrelease> {\@pr at videpackage}{Protection for package info}%
+%<latexrelease>
+%<latexrelease>\def\@pr at videpackage[#1]{%
+%<latexrelease> \expandafter\protected at xdef % <-- protected...
+%<latexrelease> \csname ver@\@currname.\@currext\endcsname{#1}%
+%<latexrelease> \typeout{Document Class: \@gtempa\space#1}%
+%<latexrelease> \else
+%<latexrelease> \protected at wlog{Package: \@gtempa\space#1}% <--- protected
+%<latexrelease> \fi}
+%<latexrelease>
+%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{0000/00/00}%
%<latexrelease> {\@pr at videpackage}{Protection for package info}%
%<latexrelease>
More information about the latex3-commits
mailing list.