[latex3-commits] [git/LaTeX3-latex3-latex2e] PDFmanagement: fixfor #640 (c49987cd)

Frank Mittelbach frank.mittelbach at latex-project.org
Sun Aug 8 12:13:06 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : PDFmanagement
Link       : https://github.com/latex3/latex2e/commit/c49987cdbb11301d831a4dd7d9847f41b0d3ddaf

>---------------------------------------------------------------

commit c49987cdbb11301d831a4dd7d9847f41b0d3ddaf
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Sun Aug 8 12:13:06 2021 +0200

    fixfor #640


>---------------------------------------------------------------

c49987cdbb11301d831a4dd7d9847f41b0d3ddaf
 base/changes.txt |  5 +++++
 base/ltfinal.dtx | 36 ++++++++++++++++++++++++++++++++++--
 2 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 2c7c7a34..117dd466 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.
 ================================================================================
 
+2021-08-08  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltfinal.dtx (subsection{Prepare for suporting PDF management in backends}):
+	Default definition for \IfPDFManagementActiveTF added (gh/640)
+
 2021-07-31  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltoutput.dtx (subsubsection{Float control}):
diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index 19f82934..bb8dc867 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltfinal.dtx}
-             [2021/04/18 v2.2o LaTeX Kernel (Final Settings)]
+             [2021/08/08 v2.2p LaTeX Kernel (Final Settings)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltfinal.dtx}
@@ -1244,6 +1244,38 @@
 % \end{macro}
 % \end{macro}
 %
+%  \subsection{Prepare for suporting PDF management in backends}
+%
+%    At the current point in time support for PDF management in
+%    backends is not part of \LaTeX{} core but provided by external.
+%    packages. At some time in the future that work will be placed
+%    into the kernel but for now it is separate and has to be
+%    explicitly loaded in the document.
+%
+%    There is a command \cs{IfPDFManagementActiveTF} in that code
+%    which checks if the PDF management code is activated, which can
+%    be used by packages to execute different code branches depending
+%    on the state.
+%
+%    To make this also work properly if the external package is not
+%    loaded at all this command is already made available in the
+%    kernel (with a trivial definition) so that other packages can
+%    query the state in a circumstances.  Once the PDF management
+%    support moves to the kernel this definition here will vanish
+%    again or rather will be replaced by a real test.
+%
+% 
+%  \begin{macro}{\IfPDFManagementActiveTF}
+%    While the PDF management code is not loaded, the test will
+%    alsways return the false branch. Once this code is loaded, it
+%    is replaced by a real test (as then it is possible that the
+%    management code is activate or not activated).
+% \changes{v2.2p}{2021/08/08}{Default definition added (gh/640)}
+%    \begin{macrocode}
+\let \IfPDFManagementActiveTF \@secondoftwo
+%    \end{macrocode}
+%  \end{macro}
+%
 %
 %
 % \subsection{Do some temporary work for pre-release}
@@ -1253,7 +1285,7 @@
 %    \begin{macrocode}
 %    \end{macrocode}
 %
-%    \subsection{Some last minute initializations \ldots}
+% \subsection{Some last minute initializations \ldots}
 %
 %    Load the first aid set of definitions for external packages that await updates.
 % \changes{v2.2j}{2020/09/26}





More information about the latex3-commits mailing list.