[latex3-commits] [git/LaTeX3-latex3-graphics-def] master: initialize hook for pagecolor, add missing brace in test (7fe2fae)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun Oct 4 23:55:10 CEST 2020


Repository : https://github.com/latex3/graphics-def
On branch  : master
Link       : https://github.com/latex3/graphics-def/commit/7fe2fae4cee9fd9eb7658b4e0f6e3e13a4546c24

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

commit 7fe2fae4cee9fd9eb7658b4e0f6e3e13a4546c24
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun Oct 4 23:55:10 2020 +0200

    initialize hook for pagecolor, add missing brace in test


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

7fe2fae4cee9fd9eb7658b4e0f6e3e13a4546c24
 luatex.def | 3 ++-
 pdftex.def | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/luatex.def b/luatex.def
index 04d3621..c000933 100644
--- a/luatex.def
+++ b/luatex.def
@@ -139,6 +139,7 @@
     \def\set at page@color{%
      \global\GPT at pagecolortrue
      \global\let\current at page@color\current at color
+     \IfHookEmptyTF{shipout/background}{\AddToHook{shipout/background}{\relax}}{}%
     }%
     \g at addto@macro\@kernel at before@shipout at background
      {%
@@ -151,7 +152,7 @@
           }%
       \fi
      }%
-  }%
+  }{}%
  }
 \AtBeginDocument{%
   \def\KV at Gin@bbllx{%
diff --git a/pdftex.def b/pdftex.def
index ac6ca6f..0c66da0 100644
--- a/pdftex.def
+++ b/pdftex.def
@@ -154,6 +154,7 @@ E     \else
     \def\set at page@color{%
      \global\GPT at pagecolortrue
      \global\let\current at page@color\current at color
+     \IfHookEmptyTF{shipout/background}{\AddToHook{shipout/background}{\relax}}{}%
     }%
     \g at addto@macro\@kernel at before@shipout at background
      {%
@@ -166,7 +167,7 @@ E     \else
           }%
       \fi
      }%
-  }%
+  }{}%
  }
 \AtBeginDocument{%
   \def\KV at Gin@bbllx{%





More information about the latex3-commits mailing list.