[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: fix for #640 (#642) (7f6286a3)

GitHub noreply at github.com
Wed Aug 11 20:57:17 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/7f6286a3648bf53da92c362c1897c590c81b2836

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

commit 7f6286a3648bf53da92c362c1897c590c81b2836
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Wed Aug 11 20:57:17 2021 +0200

    fix for #640 (#642)
    
    * fixfor #640
    
    * fix a couple of typos


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

7f6286a3648bf53da92c362c1897c590c81b2836
 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 eb3d8cc2..86398b92 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -12,6 +12,11 @@ are not part of the distribution.
 	Define missing local copy of flush_list in ltluatex.lua found
 	by Michal Vlasák.
 
+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..7de7b2d8 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 supporting 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 all 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
+%    always 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.