[latex3-commits] [git/LaTeX3-latex3-graphics-def] fixpagecolor: change pagecolor to use new hook with pdftex (cbf5d45)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Aug 26 09:28:41 CEST 2020
Repository : https://github.com/latex3/graphics-def
On branch : fixpagecolor
Link : https://github.com/latex3/graphics-def/commit/cbf5d4561cc3627c3227fc0be1cf6063cbcab5c7
>---------------------------------------------------------------
commit cbf5d4561cc3627c3227fc0be1cf6063cbcab5c7
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Aug 26 09:28:41 2020 +0200
change pagecolor to use new hook with pdftex
>---------------------------------------------------------------
cbf5d4561cc3627c3227fc0be1cf6063cbcab5c7
pdftex.def | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/pdftex.def b/pdftex.def
index 3e4ec02..7a31afb 100644
--- a/pdftex.def
+++ b/pdftex.def
@@ -140,6 +140,33 @@ E \else
\def\no at page@color{%
\global\GPT at pagecolorfalse
}
+
+\def\@tempa{LaTeX2e}%
+\ifx\fmtname\@tempa
+ \expandafter\@firstofone
+\else
+ \expandafter\@gobble
+\fi
+ {%
+ \@ifl at t@r\fmtversion{2020/10/01}
+ {%
+ \def\set at page@color{%
+ \global\GPT at pagecolortrue
+ \global\let\current at page@color\current at color
+ }%
+ \g at addto@macro\@kernel at before@shipout at background
+ {%
+ \ifGPT at pagecolor
+ \put(-\hoffset,-\pdfpageheight+\voffset)%
+ {%
+ \pdfcolorstack\@pdfcolorstack push{\current at page@color}%
+ \aftergroup\reset at color
+ \rule{\pdfpagewidth}{\pdfpageheight}%
+ }%
+ \fi
+ }%
+ }%
+ }
\AtBeginDocument{%
\def\KV at Gin@bbllx{%
\PackageError{pdftex.def}{%
More information about the latex3-commits
mailing list.